/// <summary> /// Initializes a new instance of the <see cref="AccountsApi" /> class /// using a Configuration object and client instance. /// </summary> /// <param name="client">The client interface for synchronous API access.</param> /// <param name="asyncClient">The client interface for asynchronous API access.</param> /// <param name="configuration">The configuration object.</param> public AccountsApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration) { this.Client = client ?? throw new ArgumentNullException(nameof(client)); this.AsynchronousClient = asyncClient ?? throw new ArgumentNullException(nameof(asyncClient)); this.Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); this.ExceptionFactory = Core.Client.Configuration.DefaultExceptionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="WithdrawalApi"/> class /// using a Configuration object and client instance. /// </summary> /// <param name="client">The client interface for synchronous API access.</param> /// <param name="asyncClient">The client interface for asynchronous API access.</param> /// <param name="configuration">The configuration object.</param> public WithdrawalApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration) { if (client == null) { throw new ArgumentNullException("client"); } if (asyncClient == null) { throw new ArgumentNullException("asyncClient"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; this.ExceptionFactory = Io.Gate.GateApi.Client.Configuration.DefaultExceptionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="PetApi"/> class /// using a Configuration object and client instance. /// </summary> /// <param name="client">The client interface for synchronous API access.</param> /// <param name="asyncClient">The client interface for asynchronous API access.</param> /// <param name="configuration">The configuration object.</param> public StatusApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration) { if (client == null) { throw new ArgumentNullException("client"); } if (asyncClient == null) { throw new ArgumentNullException("asyncClient"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; this.ExceptionFactory = Sdcb.Mattermost.DotNetSdk.Client.Configuration.DefaultExceptionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="FeatureServiceApi"/> class /// using a Configuration object and client instance. /// </summary> /// <param name="client">The client interface for synchronous API access.</param> /// <param name="asyncClient">The client interface for asynchronous API access.</param> /// <param name="configuration">The configuration object.</param> public FeatureServiceApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration) { if (client == null) { throw new ArgumentNullException("client"); } if (asyncClient == null) { throw new ArgumentNullException("asyncClient"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; this.ExceptionFactory = SSE.Client.Configuration.DefaultExceptionFactory; }