Esempio n. 1
0
        private async Task LoadMeetingListAsync()
        {
            List <Meeting> meetings = await _sdkService.GetAvailableMeetings();

            if (meetings.Count > 0)
            {
                MeetingRecords.Clear();
            }

            meetings.ForEach((meetingInfo) =>
            {
                DateTime baseDateTime     = new DateTime(1970, 1, 1);
                baseDateTime              = baseDateTime.AddSeconds(double.Parse(meetingInfo.StartTime));
                string formattedStartTime = baseDateTime.ToString("yyyy-MM-dd HH:mm:ss");

                MeetingRecords.Add(new MeetingRecord()
                {
                    CreatorPhoneId           = meetingInfo.CreatorId,
                    CreatorName              = meetingInfo.CreatorName,
                    MeetingNo                = meetingInfo.Id.ToString(),
                    StartTime                = formattedStartTime,
                    JoinMeetingByListCommand = JoinMeetingFromListCommand
                });
            });
        }