예제 #1
0
 public EventSummary(Event e)
 {
     Id        = e.Id;
     Title     = e.Title;
     StartDate = e.StartDate;
     EndDate   = e.EndDate;
     Vessels   = e.Vessels.Count;
     Location  = new LocationSummary(e.Location);
 }
예제 #2
0
 public EventDetail(Event e)
 {
     Id           = e.Id;
     Title        = e.Title;
     Description  = e.Description;
     StartDate    = e.StartDate;
     EndDate      = e.EndDate;
     VesselEvents = new List <VesselEventDetail>();
     foreach (VesselEvent v in e.Vessels)
     {
         VesselEvents.Add(new VesselEventDetail(v));
     }
     Location = new LocationSummary(e.Location);
 }