Exemplo n.º 1
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));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get the market code from the given UFXMarketCode enum type.
 /// NOTE: it needs to add the StandardCode flag in the enum value.
 /// </summary>
 /// <param name="marketCode">The given UFXMarketCode type value.</param>
 /// <returns>A string value of the market code(exchange code).</returns>
 public static string GetMarketCode(UFXMarketCode marketCode)
 {
     return(EnumAttributeHelper.GetStandardCode <UFXMarketCode>(marketCode));
 }
Exemplo n.º 3
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));
 }
Exemplo n.º 4
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));
 }