using Knoks.Framework.DataAccess;
using Newtonsoft.Json;

namespace Knoks.Core.Entities.Args
{
    public class KnokBaseFilterArgs : IApiArgs
    {
        [ProcParamIgnore, JsonIgnore, AutoInitField]
        public string HttpRequestInfo { get; set; }
        [JsonIgnore, AutoInitField]
        public long UserId { get; set; }
        [ProcParamIgnore, JsonIgnore, AutoInitField]
        public int? OperatorId { get; set; }
        public bool SortOrderAsc { get; set; }
        public int SortField { get; set; }
        [ProcParamIgnore]
        public int[] ExchangesIds { get; set; }
        [ProcParamIgnore]
        public string[] TradingPairs { get; set; }
        public string ExchangesIdsString {
            get {
                return this.ExchangesIds != null ? string.Join(";", this.ExchangesIds) : null;
            }
        }
        public string TradingPairsString
        {
            get
            {
                return this.TradingPairs != null ? string.Join(";", this.TradingPairs) : null;
            }
        }
    }
}
