コード例 #1
0
        protected override async Task InitializeAsync()
        {
            Appointments.Clear();

            var appointments = await _myHealthClient.
                               AppointmentsService.GetPatientAppointmentsAsync(AppSettings.CurrentPatientId, MaxAppointmentsToList);

            if (appointments.Count > 0)
            {
                Appointments.AddRange(appointments);
            }

            AppointmentSelectedItem = Appointments.FirstOrDefault();
        }
コード例 #2
0
 public AppointmentAggregate(AppointmentSlot slot, IEnumerable <Appointment> appointments)
 {
     Slot = slot;
     Appointments.AddRange(appointments);
 }