Class ApiClient<TSelf, TSettings>
Inheritance
object
RESTClient
CRUDClient<TSelf>
ApiClient<TSelf, TSettings>
Assembly: .dll
Syntax
public abstract class ApiClient<TSelf, TSettings> : CRUDClient<TSelf>, IApiClient where TSelf : ApiClient<TSelf, TSettings>, new() where TSettings : ApiClientSettings
Type Parameters
Name |
Description |
TSelf |
|
TSettings |
|
Constructors
ApiClient(Api)
Declaration
protected ApiClient(Api Api)
Parameters
Type |
Name |
Description |
Api |
Api |
|
Properties
Api
Declaration
Property Value
ChatStreamParser
Declaration
public IChatStreamParser ChatStreamParser { get; }
Property Value
DefaultInstance
Declaration
public static TSelf DefaultInstance { get; }
Property Value
Settings
Declaration
public TSettings Settings { get; }
Property Value
Type |
Description |
TSettings |
|
Methods
CreateCRUDClientSettings()
Declaration
protected abstract CRUDClientSettings CreateCRUDClientSettings()
Returns
Type |
Description |
CRUDClientSettings |
|
CreateChatStreamParser()
Declaration
protected virtual IChatStreamParser CreateChatStreamParser()
Returns
CreateClientSettings()
Declaration
protected override CRUDClientSettings CreateClientSettings()
Returns
Type |
Description |
CRUDClientSettings |
|
Overrides
Glitch9.IO.Networking.RESTApi.CRUDClient<TSelf>.CreateClientSettings()
CreateJsonSerializerSettingsData()
Declaration
protected abstract ApiClient<TSelf, TSettings>.JsonSerializerSettingsData CreateJsonSerializerSettingsData()
Returns
GetApiKey(string)
Declaration
public override string GetApiKey(string serviceName = null)
Parameters
Type |
Name |
Description |
string |
serviceName |
|
Returns
Overrides
Glitch9.IO.Networking.RESTApi.CRUDClient<TSelf>.GetApiKey(string)
Implements