示例#1
0
 /// <summary>
 /// To check, does the order log contain the order matching.
 /// </summary>
 /// <param name="item">Order log item.</param>
 /// <returns><see langword="true" />, if the order log contains order matching, otherwise, <see langword="false" />.</returns>
 public static bool IsMatched(this OrderLogItem item)
 {
     return(item.ToMessage().IsOrderLogMatched());
 }
示例#2
0
 /// <summary>
 /// To check, does the order log contain the order registration.
 /// </summary>
 /// <param name="item">Order log item.</param>
 /// <returns><see langword="true" />, if the order log contains the order registration, otherwise, <see langword="false" />.</returns>
 public static bool IsRegistered(this OrderLogItem item)
 {
     return(item.ToMessage().IsOrderLogRegistered());
 }
示例#3
0
 /// <summary>
 /// To check, does the order log contain the cancelled order.
 /// </summary>
 /// <param name="item">Order log item.</param>
 /// <returns><see langword="true" />, if the order log contain the cancelled order, otherwise, <see langword="false" />.</returns>
 public static bool IsCanceled(this OrderLogItem item)
 {
     return(item.ToMessage().IsOrderLogCanceled());
 }
示例#4
0
 /// <summary>
 /// To get the reason for cancelling order in orders log.
 /// </summary>
 /// <param name="item">Order log item.</param>
 /// <returns>The reason for order cancelling in order log.</returns>
 public static OrderLogCancelReasons GetCancelReason(this OrderLogItem item)
 {
     return(item.ToMessage().GetOrderLogCancelReason());
 }