public RestRequest(HttpMethod method, string path, string requestBody, ContentTypeValues contentType, IDictionary<string, string> additionalHeaders) { SDK.Net.ContentTypeValues value = (SDK.Net.ContentTypeValues) Enum.Parse(typeof(SDK.Net.ContentTypeValues), contentType.ToString()); Request = new SDK.Rest.RestRequest(new System.Net.Http.HttpMethod(method.Method), path, requestBody, value, new Dictionary<string, string>(additionalHeaders)); }
public RestRequest(HttpMethod method, string path, string requestBody, ContentTypeValues contentType, IDictionary <string, string> additionalHeaders) { SDK.Net.ContentTypeValues value = (SDK.Net.ContentTypeValues)Enum.Parse(typeof(SDK.Net.ContentTypeValues), contentType.ToString()); Request = new SDK.Rest.RestRequest(new System.Net.Http.HttpMethod(method.Method), path, requestBody, value, new Dictionary <string, string>(additionalHeaders)); }
internal RestRequest(SDK.Rest.RestRequest request) { Request = request; }