Class ContactGroupsClient
Inheritance
System.Object
ContactGroupsClient
Assembly: FastReport.Cloud.SDK.dll
public class ContactGroupsClient : object, IContactGroupsClient
Constructors
Declaration
public ContactGroupsClient(System.Net.Http.HttpClient httpClient)
Parameters
Type |
Name |
Description |
System.Net.Http.HttpClient |
httpClient |
|
Properties
Declaration
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type |
Description |
Newtonsoft.Json.JsonSerializerSettings |
|
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public virtual ContactGroupVM Create(CreateContactGroupVM body = null)
Parameters
Returns
Exceptions
Declaration
public virtual async System.Threading.Tasks.Task<ContactGroupVM> CreateAsync(CreateContactGroupVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CreateContactGroupVM |
body |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ContactGroupVM> |
Contact group was created
|
Exceptions
Declaration
public virtual void Delete(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Exceptions
Declaration
public virtual async System.Threading.Tasks.Task DeleteAsync(string id, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
id |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Contact group was deleted
|
Exceptions
Returns contact group by id
Declaration
public virtual ContactGroupVM Get(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Exceptions
Returns contact group by id
Declaration
public virtual async System.Threading.Tasks.Task<ContactGroupVM> GetAsync(string id, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
id |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ContactGroupVM> |
Contact group was found
|
Exceptions
Returns contact groups by subscriptionId
Declaration
public virtual ContactGroupsVM GetList(string subscriptionId, int? skip = null, int? take = null)
Parameters
Type |
Name |
Description |
System.String |
subscriptionId |
|
System.Nullable<System.Int32> |
skip |
|
System.Nullable<System.Int32> |
take |
|
Returns
Exceptions
Returns contact groups by subscriptionId
Declaration
public virtual async System.Threading.Tasks.Task<ContactGroupsVM> GetListAsync(string subscriptionId, int? skip = null, int? take = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
subscriptionId |
|
System.Nullable<System.Int32> |
skip |
|
System.Nullable<System.Int32> |
take |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ContactGroupsVM> |
Contact groups were found
|
Exceptions
Declaration
protected virtual async System.Threading.Tasks.Task<ContactGroupsClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Threading.CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Net.Http.HttpResponseMessage |
response |
|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> |
headers |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type Parameters
Updates contact group by id
Declaration
public virtual ContactGroupVM Update(string id, UpdateContactGroupVM body = null)
Parameters
Returns
Exceptions
Updates contact group by id
Declaration
public virtual async System.Threading.Tasks.Task<ContactGroupVM> UpdateAsync(string id, UpdateContactGroupVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.String |
id |
|
UpdateContactGroupVM |
body |
|
System.Threading.CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ContactGroupVM> |
Contact group was updated
|
Exceptions
Implements