public CallViewModel(CallView callView) : base()
 {
     curCallView       = callView;
     EndCallCMD        = new RelayCommand(EndCall);
     BackCommand       = new RelayCommand(BackToMain);
     HideRatingViewCMD = new RelayCommand(HideRatingView);
     SendFeedBackCMD   = new RelayCommand(this.SendFeedBack, this.CanSendFeedBack);
     KeyboardCMD       = new RelayCommand(ShowHideKeyboard);
     DtmfCMD           = new RelayCommand(SendDTMF);
     StopShareCMD      = new RelayCommand(StopShare);
     webex             = ApplicationController.Instance.CurWebexManager.CurWebex;
     shareSourceList   = new ObservableCollection <ShareSource>();
     AuxStreamViews    = new ObservableCollection <AuxStreamView>();
     LoadAuxStreamViews();
 }
Exemple #2
0
        public MessageSessionViewModel()
        {
            BackCommand          = new RelayCommand(BackToMain);
            SndMsgCommand        = new RelayCommand(SendMessage);
            DownloadFileCMD      = new RelayCommand(DownLoadFile);
            DownloadThumbnailCMD = new RelayCommand(DownloadThumbnail);
            AttachFileCMD        = new RelayCommand(AttachFile);
            DeleteMsgCommand     = new RelayCommand(DeleteMsg);
            ListMessageCMD       = new RelayCommand(ListMessage);
            GetMessageCMD        = new RelayCommand(GetMessage);

            webex                  = ApplicationController.Instance.CurWebexManager.CurWebex;
            messageClient          = webex?.Messages;
            messageClient.OnEvent += OnMessageEvent;
            MessageList            = new ObservableCollection <TimelineMessage>();
            AttachedFiles          = new ObservableCollection <string>();

            FilesList = new ObservableCollection <RemoteFile>();

            var address = ApplicationController.Instance.CurWebexManager.CurCalleeAddress;

            if (address.Contains('@') || StringExtention.Base64UrlDecode(address).Contains("PEOPLE"))
            {
                SpaceTitle      = address;
                isDirectMessage = true;
                toPersonEmail   = address;
            }
            else
            {
                webex?.Spaces.Get(address, r =>
                {
                    if (r.IsSuccess)
                    {
                        SpaceTitle = r.Data.Title;
                    }
                });
                toSpaceId = address;
            }
        }