public EventDetails(ViewEventInformation information, List <AppointmentDetails> upcomingAppointments, List <AppointmentFinderDetails> appointmentFinders, NotificationConfigurationResponse notificationConfigurationResponse) { Information = information; UpcomingAppointments = upcomingAppointments; ActualAppointmentFinders = appointmentFinders; NotificationConfigurationResponse = notificationConfigurationResponse; }
public static EventOverviewInformation FromEvent(Event @event, Appointment firstUpcomingAppointment, int currentUserId) { ViewEventInformation viewEventInformation = ViewEventInformation.FromEvent(@event, currentUserId); if (firstUpcomingAppointment == null) { return(new EventOverviewInformation(@event.Id, viewEventInformation, null)); } AppointmentInformation appointmentInformation = AppointmentInformation.FromAppointment(firstUpcomingAppointment, currentUserId, @event.EventParticipations.Count); return(new EventOverviewInformation(@event.Id, viewEventInformation, appointmentInformation)); }
public EventOverviewInformation(int eventId, ViewEventInformation viewEventInformation, AppointmentInformation latestAppointmentInformation) { EventId = eventId; ViewEventInformation = viewEventInformation; LatestAppointmentInformation = latestAppointmentInformation; }