Example #1
0
 /// <summary>
 /// Get the entrust state name by a given UFXEntrustState value.
 /// NOTE: it needs to add the Description flag in the UFXEntrustState enum value.
 /// </summary>
 /// <param name="state">The enum value of UFXEntrustState type.</param>
 /// <returns>A string of the entrust state name.</returns>
 public static string GetEntrustState(UFXEntrustState state)
 {
     return(EnumAttributeHelper.GetEnumDescription <UFXEntrustState>(state));
 }
Example #2
0
 /// <summary>
 /// Get the EntrustDirection name from the given UFXEntrustDirection enum type.
 /// NOTE: it needs to add the Description flag in the enum value.
 /// </summary>
 /// <param name="direction">The given UFXEntrustDirection type value.</param>
 /// <returns>A string value of the entrust direction description.</returns>
 public static string GetEntrustDirection(UFXEntrustDirection direction)
 {
     return(EnumAttributeHelper.GetEnumDescription <UFXEntrustDirection>(direction));
 }
Example #3
0
 /// <summary>
 /// Get the market name(exchange) from the given UFXMarketCode type.
 /// NOTE: it needs to add the Description flag in the enum value.
 /// </summary>
 /// <param name="marketCode">The given UFXMarketCode type value.</param>
 /// <returns>A string value of the market name(exchange).</returns>
 public static string GetMarketName(UFXMarketCode marketCode)
 {
     return(EnumAttributeHelper.GetEnumDescription <UFXMarketCode>(marketCode));
 }