Exemplo n.º 1
0
        public async Task<Room> UpdateRoomAsync(string roomId, UpdateRoomRequest request)
        {
            string url = _baseApiAddress + $"rooms/{roomId}";

#if __IOS__ || __ANDROID__ || NET45
            var content = new StringContent(JsonConvert.SerializeObject(request));
#endif
#if NETFX_CORE
            var content = new HttpStringContent(JsonConvert.SerializeObject(request));
#endif

            return await HttpClient.PutAsync<Room>(url, content);
        }
 public IObservable<Room> UpdateRoom(string roomId, UpdateRoomRequest request)
 {
     return _apiService.UpdateRoomAsync(roomId, request).ToObservable();
 }