예제 #1
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
        // ***********************************
        // 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 );
        }
예제 #2
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
 /// <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);
 }
예제 #3
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
        // ***********************************
        // 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 );
        }