Пример #1
0
        public async Task<UpdateWelcomeMessageResponse> UpdateWelcomeMessageAsync(string roomId, UpdateWelcomeMessageRequest request)
        {
            string url = _baseApiAddress + $"rooms/{roomId}/meta/welcome-message";

#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<UpdateWelcomeMessageResponse>(url, content);
        }
 public IObservable<UpdateWelcomeMessageResponse> UpdateWelcomeMessage(string roomId, UpdateWelcomeMessageRequest request)
 {
     return _apiService.UpdateWelcomeMessageAsync(roomId, request).ToObservable();
 }