Knocks/BackEnd/Knoks.Core/Entities/Args/KnokEndedArgs.cs

49 lines
1.5 KiB
C#

using Knoks.Framework.DataAccess;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Knoks.Core.Entities.Args
{
public class KnokEndedArgs : 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; }
public bool? Gaining { get; set; }
public bool? Losing { 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;
}
}
[ProcParamIgnore]
public string[] LoseStatus { get; set; }
public string LoseStatusString
{
get
{
return this.LoseStatus != null ? string.Join(";", this.LoseStatus) : null;
}
}
public string Knokser { get; set; }
}
}