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;
 }
Exemple #3
0
 public EventDetails(ViewEventInformation information, List <AppointmentDetails> upcomingAppointments, NotificationConfigurationResponse notificationConfigurationResponse)
 {
     Information          = information;
     UpcomingAppointments = upcomingAppointments;
     NotificationConfigurationResponse = notificationConfigurationResponse;
 }