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"));
 }
Ejemplo n.º 2
0
 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"));
     }
 }
Ejemplo n.º 3
0
 public string ToJson()
 {
     return($@"{{""job"":""{Job}"",""zone"":""{Zone}"",""aetheryte"":""{Aetheryte}"",""from"":""{TimeFrom.ToString(@"hh\:mm")}"",""to"":""{TimeTo.ToString(@"hh\:mm")}"",""position"":""{Position}"",""name"":""{Name}""}}");
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     return((Job + TimeFrom + Zone + Aetheryte + TimeFrom.ToString(@"hh\:mm") + TimeTo.ToString(@"hh\:mm") + Position + Name).GetHashCode());
 }