Esempio n. 1
0
        public void TestStaticGetRoomFiles()
        {
            var roomId     = RoomList != null && RoomList.Any() ? RoomList.First() : Room;
            var parameters = new FilesParameters
            {
                AccountId = AccountId,
            };

            var response = ChatworkClient.GetRoomFiles(Token, roomId, parameters);

            AssertGetFilesResponse(response);
        }
Esempio n. 2
0
        public async void TestStaticGetRoomFilesAsync()
        {
            var roomId     = RoomList != null && RoomList.Any() ? RoomList.First() : Room;
            var parameters = new FilesParameters
            {
                AccountId = AccountId,
            };

            var response = await ChatworkClient.GetRoomFilesAsync(Token, roomId, parameters)
                           .ConfigureAwait(false);

            AssertGetFilesResponse(response);
        }
Esempio n. 3
0
        public void TestGetRoomFilesAsyncCallback()
        {
            var roomId     = RoomList != null && RoomList.Any() ? RoomList.First() : Room;
            var parameters = new FilesParameters
            {
                AccountId = AccountId,
            };

            Client.GetRoomFilesAsync(
                AssertGetFilesResponse,
                roomId,
                parameters);
        }