Click or drag to resize

BaseClientT Class

To get started, call one of the following methods:
  • Anysense.API.Client.V1.ApiClient.Create
  • Anysense.API.Client.V1.ApiClient.CreateAsync
  • Anysense.API.Client.V1.ApiClient.CreateWithToken
  • Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Inheritance Hierarchy
SystemObject
  Anysense.API.Client.SharedBaseClientT
    Anysense.API.Client.V1ApiClient

Namespace: Anysense.API.Client.Shared
Assembly: Anysense.API.Client.Shared (in Anysense.API.Client.Shared.dll) Version: 1.29.2-dev
Syntax
C#
public abstract class BaseClient<T>
where T : BaseClient<T>

Type Parameters

T

The BaseClientT type exposes the following members.

Constructors
 NameDescription
Protected methodBaseClientTInitializes a new instance of the BaseClientT class
Top
Properties
 NameDescription
Public propertySubDomain 
Top
Methods
 NameDescription
Public methodStatic memberCreate Creates an instance of the ApiClient with ClientId and ClientSecret
Public methodStatic memberCreateAsync Creates an instance of the ApiClient with ClientId and ClientSecret
Public methodStatic memberCreateWithToken Crates an instance of the ApiClient with a manually obtained access token
Public methodStatic memberCreateWithTokenAsync Crates an instance of the ApiClient with a manually obtained access token
Public methodSetAnysenseDbVersion If the client is used for caching data, then it is recommendable to store the current Database version. Use this method to set the current version before any requests to the Api
Top
Events
 NameDescription
Public eventAnysenseDbVersionChanged Event triggered when a new Database version is received from the Anysense API.
When this happens, it's recommended to clear the local cached datas, and get everything from scratch.
Top
Fields
 NameDescription
Protected field_httpClient 
Top
See Also