/// <summary> /// Initializes a new instance of the <see cref="UsersApi" /> class. /// See <see cref="Factories.PodApiFactory"/> for conveniently constructing /// an instance. /// </summary> /// <param name="authTokens">Authentication tokens.</param> /// <param name="configuration">Api configuration.</param> /// <param name="apiExecutor">Execution strategy.</param> public UsersApi(IAuthTokens authTokens, string baseUrl, HttpClient httpClient, IApiExecutor apiExecutor) { _usersApi = new AdminClient(baseUrl, httpClient); _userApi = new UserClient(baseUrl, httpClient); _authTokens = authTokens; _apiExecutor = apiExecutor; _log = ApiLogging.LoggerFactory?.CreateLogger <UsersApi>(); }
/// <summary> /// Initializes a new instance of the <see cref="RoomMembershipApi" /> class. /// See <see cref="Factories.PodApiFactory"/> for conveniently constructing /// an instance. /// </summary> /// <param name="authTokens">Authentication tokens.</param> /// <param name="configuration">Api configuration.</param> /// <param name="apiExecutor">Execution strategy.</param> public RoomMembershipApi(IAuthTokens authTokens, string baseUrl, HttpClient httpClient, IApiExecutor apiExecutor) { _roomMembershipApi = new Generated.OpenApi.PodApi.AdminClient(baseUrl, httpClient); _roomApi = new Generated.OpenApi.PodApi.RoomClient(baseUrl, httpClient); _authTokens = authTokens; _apiExecutor = apiExecutor; _log = ApiLogging.LoggerFactory?.CreateLogger <RoomMembershipApi>(); }
/// <summary> /// Initializes a new instance of the <see cref="MessageSuppressionApi" /> class. /// Provides methods for discovering functions available through the API endpoints. /// Encapsulates <see cref="Generated.OpenApi.PodApi.Api.MessageSuppressionApi"/>, /// adding authentication token management and a custom execution strategy. /// </summary> /// <param name="authTokens">Authentication tokens.</param> /// <param name="configuration">Api configuration.</param> /// <param name="apiExecutor">Execution strategy.</param> public MessageSuppressionApi(IAuthTokens authTokens, string baseUrl, HttpClient httpClient, IApiExecutor apiExecutor) { _messageSuppressionApi = new Generated.OpenApi.PodApi.AdminClient(baseUrl, httpClient); _authTokens = authTokens; _apiExecutor = apiExecutor; }
/// <summary> /// Initializes a new instance of the <see cref="SystemApi" /> class. /// Provides methods for discovering functions available through the API endpoints. /// Encapsulates <see cref="Generated.OpenApi.PodApi.Api.SystemApi"/>, /// adding authentication token management and a custom execution strategy. /// </summary> /// <param name="authTokens">Authentication tokens.</param> /// <param name="configuration">Api configuration.</param> /// <param name="apiExecutor">Execution strategy.</param> public SystemApi(IAuthTokens authTokens, string baseUrl, HttpClient httpClient, IApiExecutor apiExecutor) { _systemApi = new Generated.OpenApi.PodApi.AdminClient(baseUrl, httpClient); _authTokens = authTokens; _apiExecutor = apiExecutor; }