using System;
using System.Collections.Generic;
using System.Text;

namespace XYY.Service.Standard.ChannelApi
{
    public class OrderApiException : Exception
    {

        public OrderApiException(string error, string request, int channelId, OrderApiMethod method) : base(error)
        {
            this.Error = error;
            this.Reqeust = request;
            this.ChannelId = channelId;
            this.Method = method;
        }

        public string Error
        {
            get; set;
        }

        public string Reqeust
        {
            get; set;
        }

        public int ChannelId
        {
            get; set;
        }

        public OrderApiMethod Method
        {
            get; set;
        }

        public string Url
        {
            get; set;
        }
    }

    public enum OrderApiMethod
    {
        授权 = 0,
        下单 = 1,
        查单 = 2,
        下载面单 = 3
    }
}
