// *********************************** // Delete // *********************************** /// <summary> /// Delete client preference key. /// </summary> /// <param name="clientPreferenceKey">The client preference key to delete.</param> public virtual UpdateDeleteClientPreferenceResponseDTO Delete(ClientPreferenceRequestDTO clientPreferenceKey) { string uriTemplate = "/delete"; return _client.Request<UpdateDeleteClientPreferenceResponseDTO>(RequestMethod.POST,"clientpreference", uriTemplate , new Dictionary<string, object> { { "clientPreferenceKey", clientPreferenceKey} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0),30000,0 ); }
/// <summary> /// Delete client preference key. /// </summary> /// <param name="clientPreferenceKey">The client preference key to delete.</param> /// <param name="callback"></param> /// <param name="state"></param> public virtual void BeginDelete(ClientPreferenceRequestDTO clientPreferenceKey, ReliableAsyncCallback callback, object state) { string uriTemplate = "/delete"; _client.BeginRequest(RequestMethod.POST, "clientpreference", uriTemplate , new Dictionary<string, object> { { "clientPreferenceKey", clientPreferenceKey} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0), 30000,0 ,callback, state); }
// *********************************** // Get // *********************************** /// <summary> /// Get client preferences. /// </summary> /// <param name="clientPreferenceRequestDto">The client preference key to get.</param> public virtual GetClientPreferenceResponseDTO Get(ClientPreferenceRequestDTO clientPreferenceRequestDto) { string uriTemplate = "/get"; return _client.Request<GetClientPreferenceResponseDTO>(RequestMethod.POST,"clientpreference", uriTemplate , new Dictionary<string, object> { { "clientPreferenceRequestDto", clientPreferenceRequestDto} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0),30000,0 ); }