Exemple #1
0
 public static VenueInfo MapVenue(Guid venueGuid, VenueDescription venueDescription)
 {
     return(new VenueInfo
     {
         VenueGuid = venueGuid,
         Name = venueDescription?.Name,
         City = venueDescription?.City,
         LastModifiedTicks = venueDescription?.ModifiedDate.Ticks ?? 0
     });
 }
 public static VenueInfo FromEntities(
     Guid venueGuid,
     VenueDescription venueDescription,
     VenueLocation venueLocation = null,
     VenueTimeZone venueTimeZone = null)
 {
     return(new VenueInfo
     {
         VenueGuid = venueGuid,
         Name = venueDescription?.Name,
         City = venueDescription?.City,
         LastModifiedTicks = venueDescription?.ModifiedDate.Ticks ?? 0,
         TimeZone = venueTimeZone?.TimeZone,
         TimeZoneLastModifiedTicks = venueTimeZone?.ModifiedDate.Ticks ?? 0,
         Latitude = venueLocation?.Latitude,
         Longitude = venueLocation?.Longitude,
         LocationLastModifiedTicks = venueLocation?.ModifiedDate.Ticks ?? 0
     });
 }