public EventbriteEvent(EventbriteEventDto eventDto = null, EventbriteVenueDto venueDto = null) { if (eventDto != null) { UpdateEventFields(eventDto); } if (venueDto != null) { UpdateVenueFields(venueDto); } }
private void UpdateEventFields(EventbriteEventDto eventBriteEventDto) { Capacity = eventBriteEventDto.Capacity; Description = eventBriteEventDto.Description; EndUtc = eventBriteEventDto.End.Utc; HideEndDate = eventBriteEventDto.HideEndDate; HideStartDate = eventBriteEventDto.HideStartDate; Name = eventBriteEventDto.Name.Text; Published = eventBriteEventDto.Published; StartUtc = eventBriteEventDto.Start.Utc; Summary = eventBriteEventDto.Summary; Url = eventBriteEventDto.Url; VanityUrl = eventBriteEventDto.VanityUrl; }