// Copyright (c) Microsoft. All rights reserved. using Microsoft.Graph.Models; namespace Plugins; /// /// This class represents an appointment model for the booking plugin. /// internal sealed class Appointment { internal Appointment(BookingAppointment bookingAppointment) { this.Start = bookingAppointment.StartDateTime.ToDateTime(); this.Restaurant = bookingAppointment.ServiceLocation?.DisplayName ?? ""; this.PartySize = bookingAppointment.MaximumAttendeesCount ?? 0; this.ReservationId = bookingAppointment.Id; } /// /// Start date and time of the appointment. /// public DateTime Start { get; set; } /// /// The restaurant name. /// public string? Restaurant { get; set; } /// /// Number of people in the party. /// public int PartySize { get; set; } /// /// The reservation id. /// public string? ReservationId { get; set; } }