예제 #1
0
        public InstantMeetingContentViewModel(InstantMeetingContentView meetingContentView)
        {
            _meetingContentView = meetingContentView;
            _sdkService         = IoC.Get <IMeeting>();

            MeetingRecords = new ObservableCollection <MeetingRecord>();

            CreateMeetingCommand       = DelegateCommand.FromAsyncHandler(CreateMeetingAsync);
            JoinMeetingByNoCommand     = DelegateCommand.FromAsyncHandler(JoinMeetingAsync);
            LoadMeetingListCommand     = DelegateCommand.FromAsyncHandler(LoadMeetingListAsync);
            JoinMeetingFromListCommand = DelegateCommand <string> .FromAsyncHandler(JoinMeetingFromListAsync);
        }
        public InstantMeetingContentViewModel(InstantMeetingContentView meetingContentView)
        {
            _meetingContentView = meetingContentView;
            _sdkService         = DependencyResolver.Current.Container.Resolve <ISdk>();

            MeetingRecords = new ObservableCollection <MeetingRecord>();

            CreateMeetingCommand       = DelegateCommand.FromAsyncHandler(CreateMeetingAsync);
            JoinMeetingByNoCommand     = DelegateCommand.FromAsyncHandler(JoinMeetingAsync);
            LoadMeetingListCommand     = DelegateCommand.FromAsyncHandler(LoadMeetingListAsync);
            JoinMeetingFromListCommand = DelegateCommand <string> .FromAsyncHandler(JoinMeetingFromListAsync);

            RegisterEvents();
        }