コード例 #1
0
        public RoomsViewModel(TokenResponse tokenResponse)
        {
            _httpToken = tokenResponse;
            BuildImports();
            _httpManager.Authorize(_httpToken.Token);
            _fileManager.Authorize(_httpToken.Token);

            _fileManager.Failed += (m) => ShowNotification(m);

            AddRoomCommand         = new Command(obj => AddRoom());
            SendMessageCommand     = new Command(obj => SendMessage());
            SendFileCommand        = new Command(async obj => await SendFile());
            CopyOrDownloadCommand  = new Command(obj => CopyOrDownload());
            ParticipateRoomCommand = new Command(obj => Participate());
            LeaveRoomCommand       = new Command(obj => Leave());
            LogOutCommand          = new Command(obj => LogOut());

            LoadRooms();
        }