Smartsheet.Api.Internal.SmartsheetImpl.SmartsheetImpl C# (CSharp) 메소드

SmartsheetImpl() 공개 메소드

Create an instance with given server URI, HttpClient (optional) and JsonSerializer (optional) Exceptions: - IllegalArgumentException : if serverURI/Version/AccessToken is null/empty
public SmartsheetImpl ( string baseURI, string accessToken, Api.Internal.Http.HttpClient httpClient, Api.Internal.Json.JsonSerializer jsonSerializer ) : System
baseURI string the server uri
accessToken string the access token
httpClient Api.Internal.Http.HttpClient the http client (optional)
jsonSerializer Api.Internal.Json.JsonSerializer the Json serializer (optional)
리턴 System
        public SmartsheetImpl(string baseURI, string accessToken, HttpClient httpClient, JsonSerializer jsonSerializer)
        {
            Utils.ThrowIfNull(baseURI);
            Utils.ThrowIfEmpty(baseURI);

            this.baseURI = new Uri(baseURI);
            this.httpClient = httpClient == null ? new DefaultHttpClient() : httpClient;
            this.jsonSerializer = jsonSerializer == null ? new JsonNetSerializer() : jsonSerializer;
            this.accessToken = accessToken;
        }