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); } }
private static void ConvertEvents(IEnumerable <Event> events, Raids raids) { foreach (var even in events) { Objects.GameObjects.Raid raid = ConvertEvent(even); raids.Raid.Add(raid); } }
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); }