Interface ISubscriptionInvitesClient
Namespace: FastReport.Cloud
Assembly: FastReport.Cloud.SDK.dll
Syntax
public interface ISubscriptionInvitesClient
Methods
AcceptInvite(String, String)
Add the current user to the subscription using invite,
Declaration
void AcceptInvite(string subscriptionId, string accessToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | Idenitifier of subscription |
| System.String | accessToken | access token of the subscription |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
AcceptInviteAsync(String, String, System.Threading.CancellationToken)
Add the current user to the subscription using invite,
Declaration
System.Threading.Tasks.Task AcceptInviteAsync(string subscriptionId, string accessToken, System.Threading.CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | Idenitifier of subscription |
| System.String | accessToken | access token of the subscription |
| 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 | User already in subscription |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
CreateInvite(String, CreateSubscriptionInviteVM)
Create invite to subscription
Declaration
SubscriptionInviteVM CreateInvite(string subscriptionId, CreateSubscriptionInviteVM body = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | id |
| CreateSubscriptionInviteVM | body | create VM |
Returns
| Type | Description |
|---|---|
| SubscriptionInviteVM | Successfully created |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
CreateInviteAsync(String, CreateSubscriptionInviteVM, System.Threading.CancellationToken)
Create invite to subscription
Declaration
System.Threading.Tasks.Task<SubscriptionInviteVM> CreateInviteAsync(string subscriptionId, CreateSubscriptionInviteVM body = null, System.Threading.CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | id |
| CreateSubscriptionInviteVM | body | create VM |
| 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<SubscriptionInviteVM> | Successfully created |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
DeleteInvite(String, String)
Delete invite with specified token
Declaration
void DeleteInvite(string subscriptionId, string accesstoken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | id |
| System.String | accesstoken | invite's token |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
DeleteInviteAsync(String, String, System.Threading.CancellationToken)
Delete invite with specified token
Declaration
System.Threading.Tasks.Task DeleteInviteAsync(string subscriptionId, string accesstoken, System.Threading.CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | id |
| System.String | accesstoken | invite's token |
| 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 | Successfully deleted |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetInvites(String)
Get list of invites in a subscription,
the added users will be displayed in the list of users of the subscription,
and these users will also have an active subscription.
Declaration
SubscriptionInvitesVM GetInvites(string subscriptionId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | Idenitifier of subscription |
Returns
| Type | Description |
|---|---|
| SubscriptionInvitesVM | Succesfully added |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetInvitesAsync(String, System.Threading.CancellationToken)
Get list of invites in a subscription,
the added users will be displayed in the list of users of the subscription,
and these users will also have an active subscription.
Declaration
System.Threading.Tasks.Task<SubscriptionInvitesVM> GetInvitesAsync(string subscriptionId, System.Threading.CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | subscriptionId | Idenitifier of subscription |
| 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<SubscriptionInvitesVM> | Succesfully added |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |