예제 #1
0
 public static ItemDto FromCommandType(CommandType commandType) =>
     new ItemDto((int)commandType,commandType.ToString(),commandType.GetDescription(),
         EventImageUrlResolver.Resolve(commandType.ToString(),true),
         EventImageUrlResolver.Resolve(commandType.ToString()));
예제 #2
0
 public static ItemDto FromEventType(TrackingEventType eventType) =>
     new ItemDto((int)eventType,eventType.ToString(),eventType.GetDescription(),
         EventImageUrlResolver.Resolve(eventType.ToString(),true),
         EventImageUrlResolver.Resolve(eventType.ToString()));