Class GroupUsersClient
Inheritance
Implements
Namespace: FastReport.Cloud.Client
Assembly: FastReport.Cloud.SDK.dll
Syntax
public class GroupUsersClient : object, IGroupUsersClient
Constructors
GroupUsersClient(System.Net.Http.HttpClient)
Declaration
public GroupUsersClient(System.Net.Http.HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpClient | httpClient |
Properties
JsonSerializerSettings
Declaration
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings |
PrepareRequestCallback
Declaration
public Action<System.Net.Http.HttpClient, System.Net.Http.HttpRequestMessage, string> PrepareRequestCallback { get; set; }
Property Value
Type | Description |
---|---|
Action<System.Net.Http.HttpClient, System.Net.Http.HttpRequestMessage, System.String> |
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
AddUserToGroup(String, String)
Add user to the group by identifier
Declaration
public virtual void AddUserToGroup(string id, string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
System.String | userId | Identifier of user |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
AddUserToGroupAsync(String, String, System.Threading.CancellationToken)
Add user to the group by identifier
Declaration
public virtual async System.Threading.Tasks.Task AddUserToGroupAsync(string id, string userId, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
System.String | userId | Identifier of user |
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 | Succesfully retured |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetUsersInGroup(String, Nullable<Int32>, Nullable<Int32>)
Returns users in the group by identifier
Declaration
public virtual GroupUsersVM GetUsersInGroup(string id, int? skip = null, int? take = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
System.Nullable<System.Int32> | skip | how many to skip |
System.Nullable<System.Int32> | take | how many to take |
Returns
Type | Description |
---|---|
GroupUsersVM | Succesfully retured |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
GetUsersInGroupAsync(String, Nullable<Int32>, Nullable<Int32>, System.Threading.CancellationToken)
Returns users in the group by identifier
Declaration
public virtual async System.Threading.Tasks.Task<GroupUsersVM> GetUsersInGroupAsync(string id, int? skip = null, int? take = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
System.Nullable<System.Int32> | skip | how many to skip |
System.Nullable<System.Int32> | take | how many to 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<GroupUsersVM> | Succesfully retured |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
LeaveFromGroup(String)
Leave from the group
Declaration
public virtual void LeaveFromGroup(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
LeaveFromGroupAsync(String, System.Threading.CancellationToken)
Leave from the group
Declaration
public virtual async System.Threading.Tasks.Task LeaveFromGroupAsync(string id, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
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 | Succesfully removed |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
ReadObjectResponseAsync<T>(System.Net.Http.HttpResponseMessage, System.Collections.Generic.IReadOnlyDictionary<String, System.Collections.Generic.IEnumerable<String>>, System.Threading.CancellationToken)
Declaration
protected virtual async System.Threading.Tasks.Task<GroupUsersClient.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 | Description |
---|---|
System.Threading.Tasks.Task<GroupUsersClient.ObjectResponseResult<T>> |
Type Parameters
Name | Description |
---|---|
T |
RemoveFromGroup(String, String)
Remove user from the group by identifier
Declaration
public virtual void RemoveFromGroup(string id, string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
System.String | userId | Identifier of user |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |
RemoveFromGroupAsync(String, String, System.Threading.CancellationToken)
Remove user from the group by identifier
Declaration
public virtual async System.Threading.Tasks.Task RemoveFromGroupAsync(string id, string userId, System.Threading.CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Identifier of group |
System.String | userId | Identifier of user |
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 | Succesfully removed |
Exceptions
Type | Condition |
---|---|
ApiException | A server side error occurred. |