protected override void AssignParameters(Request BloombergRequest) { if (listOfSecurities != null) { foreach (string security in listOfSecurities) { BloombergRequest.Append("securities", security); } } BloombergRequest.Set("periodicitySelection", Periodicity); BloombergRequest.Set("startDate", TimeFrom.ToString("yyyyMMdd")); BloombergRequest.Set("endDate", TimeTo.ToString("yyyyMMdd")); }
public string GetTimeDisplay() { if (TimeFrom.Date == DateTime.Now.Date) { return(TimeFrom.ToString("HH:mm")); } if (TimeFrom.Year != DateTime.Now.Year) { return(TimeTo.ToString("dd-MM-yyyy HH:mm")); } else { return(TimeTo.ToString("HH:mm")); } }
public string ToJson() { return($@"{{""job"":""{Job}"",""zone"":""{Zone}"",""aetheryte"":""{Aetheryte}"",""from"":""{TimeFrom.ToString(@"hh\:mm")}"",""to"":""{TimeTo.ToString(@"hh\:mm")}"",""position"":""{Position}"",""name"":""{Name}""}}"); }
public override int GetHashCode() { return((Job + TimeFrom + Zone + Aetheryte + TimeFrom.ToString(@"hh\:mm") + TimeTo.ToString(@"hh\:mm") + Position + Name).GetHashCode()); }