예제 #1
0
 private static void ConvertDetails(Event even, Objects.GameObjects.Raid raid)
 {
     foreach (var detail in even.Details.RaidStatus.AllStates)
     {
         RaidStatus status = ConvertDetail(detail);
         raid.RaidStates.Add(status);
     }
 }
예제 #2
0
 private static void ConvertEvents(IEnumerable <Event> events, Raids raids)
 {
     foreach (var even in events)
     {
         Objects.GameObjects.Raid raid = ConvertEvent(even);
         raids.Raid.Add(raid);
     }
 }
예제 #3
0
        private static Objects.GameObjects.Raid ConvertEvent(Event even)
        {
            var dateTime = DateTime.SpecifyKind(even.StartDate, DateTimeKind.Local);
            var raid     = new Objects.GameObjects.Raid
            {
                EventID = even.EventID,
                Date    = dateTime
            };

            ConvertDetails(even, raid);

            return(raid);
        }