protected CenterDeviceClientBase(IOAuthInfoProvider oAuthInfoProvider, IRestClientConfiguration configuration, IRestClientErrorHandler errorHandler, string apiVersionPrefix)
 {
     this.errorHandler      = errorHandler;
     this.oAuthInfoProvider = oAuthInfoProvider;
     this.configuration     = configuration;
     this.apiVersionPrefix  = apiVersionPrefix;
 }
 protected CenterDeviceRestClient(IOAuthInfoProvider oauthInfo, IRestClientConfiguration configuration, IRestClientErrorHandler errorHandler, string apiVersionPrefix)
 {
     this.errorHandler      = errorHandler;
     this.oAuthInfoProvider = oauthInfo;
     this.ApiVersionPrefix  = apiVersionPrefix;
     client = new RestClient(configuration.BaseAddress)
     {
         UserAgent = configuration.UserAgent
     };
 }
コード例 #3
0
 public TenantsRestClient(IOAuthInfoProvider oauthInfo, IRestClientConfiguration configuration, IRestClientErrorHandler errorHandler, string apiVersionPrefix) : base(oauthInfo, configuration, errorHandler, apiVersionPrefix)
 {
 }
コード例 #4
0
 public CenterDeviceClient(IOAuthInfoProvider oAuthInfoProvider, IRestClientConfiguration configuration, IRestClientErrorHandler errorHandler) : base(oAuthInfoProvider, configuration, errorHandler, "v2/")
 {
 }
コード例 #5
0
 public UploadLinksRestClient(IOAuthInfoProvider oauthInfo, IRestClientConfiguration configuration, IRestClientErrorHandler errorHandler, string apiVersionPrefix, string uploadLinkBaseUrl) : base(oauthInfo, configuration, errorHandler, apiVersionPrefix)
 {
     this.UploadLinkBaseUrl = uploadLinkBaseUrl;
 }
 public DocumentsRestClient(IOAuthInfoProvider oauthInfoProvider, IRestClientConfiguration configuration, IRestClientErrorHandler errorHandler, IStreamWrapper streamWrapper, string apiVersionPrefix) : base(oauthInfoProvider, configuration, errorHandler, apiVersionPrefix)
 {
     this.streamWrapper = streamWrapper;
 }