Class UserClient
Represents a function to interact with the API endpoints. The function perform action such as getting the Api credit details and so on.
public class UserClient : IUserClient, IApiAccessor
- Inheritance
-
UserClient
- Implements
- Inherited Members
Constructors
UserClient()
Initializes a new instance of the UserClient class.
public UserClient()
UserClient(ApiClient)
Initializes a new instance of the UserClient class using Configuration object.
public UserClient(ApiClient apiClient)
Parameters
apiClient
ApiClientAn instance of ApiClient.
UserClient(Configuration)
Initializes a new instance of the UserClient class using Configuration object.
public UserClient(Configuration configuration = null)
Parameters
configuration
ConfigurationAn instance of Configuration.
UserClient(string)
Initializes a new instance of the UserClient class.
public UserClient(string basePath)
Parameters
basePath
stringA basePath.
Properties
Configuration
Gets or sets the configuration object.
public Configuration Configuration { get; set; }
Property Value
- Configuration
An instance of the Configuration.
ExceptionFactory
Gets or sets provides a factory method hook for the creation of exceptions.
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Methods
CancelInvitation(string)
Cancel Invitation.
public void CancelInvitation(string userId)
Parameters
userId
stringuserId.
Exceptions
- ApiException
Thrown when fails to make API call.
CancelInvitationAsync(string)
Cancel Invitation.
public Task CancelInvitationAsync(string userId)
Parameters
userId
stringuserId.
Returns
- Task
CancelInvite.
Exceptions
- ApiException
Thrown when fails to make API call.
CancelInvitationAsyncWithHttpInfo(string)
Cancel Invitation.
public Task<ApiResponse<object>> CancelInvitationAsyncWithHttpInfo(string userId)
Parameters
userId
stringuserId.
Returns
- Task<ApiResponse<object>>
ApiResponse of Object(CancelInvite).
Exceptions
- ApiException
Thrown when fails to make API call.
CancelInvitationWithHttpInfo(string)
Cancel Invitation.
public ApiResponse<object> CancelInvitationWithHttpInfo(string userId)
Parameters
userId
stringuserId.
Returns
- ApiResponse<object>
ApiResponse of Object(void).
Exceptions
- ApiException
Thrown when fails to make API call.
CreateUser(List<CreateUserRequest>)
Invite the user.
public CreateUserResponse CreateUser(List<CreateUserRequest> createUserRequest = null)
Parameters
createUserRequest
List<CreateUserRequest>The create user details.
Returns
- CreateUserResponse
CreateUserResponse.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateUserAsync(List<CreateUserRequest>)
Invite the user.
public Task<CreateUserResponse> CreateUserAsync(List<CreateUserRequest> createUserRequest = null)
Parameters
createUserRequest
List<CreateUserRequest>The create user details.
Returns
- Task<CreateUserResponse>
Task.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateUserAsyncWithHttpInfo(List<CreateUserRequest>)
Gets invite the user.
public Task<ApiResponse<CreateUserResponse>> CreateUserAsyncWithHttpInfo(List<CreateUserRequest> createUserRequest = null)
Parameters
createUserRequest
List<CreateUserRequest>The create user details.
Returns
- Task<ApiResponse<CreateUserResponse>>
Task of ApiResponse.
Exceptions
- ApiException
Thrown when fails to make API call.
CreateUserWithHttpInfo(List<CreateUserRequest>)
Gets invite the user.
public ApiResponse<CreateUserResponse> CreateUserWithHttpInfo(List<CreateUserRequest> createUserRequest = null)
Parameters
createUserRequest
List<CreateUserRequest>The create user details.
Returns
- ApiResponse<CreateUserResponse>
ApiResponse of Object(CreateUserResponse).
Exceptions
- ApiException
Thrown when fails to make API call.
GetBasePath()
Gets the base path of the API client.
public string GetBasePath()
Returns
- string
The base path.
GetUserDetails(string)
Get summary of the user details for the given user ID.
public UserProperties GetUserDetails(string userId)
Parameters
userId
stringUser Id.
Returns
- UserProperties
UserDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
GetUserDetailsAsync(string)
Get summary of the user details for the given user ID.
public Task<UserProperties> GetUserDetailsAsync(string userId)
Parameters
userId
stringUser Id.
Returns
- Task<UserProperties>
Task of UserProperties.
Exceptions
- ApiException
Thrown when fails to make API call.
GetUserDetailsAsyncWithHttpInfo(string)
Get summary of the user details for the given user ID.
public Task<ApiResponse<UserProperties>> GetUserDetailsAsyncWithHttpInfo(string userId)
Parameters
userId
stringUser Id.
Returns
- Task<ApiResponse<UserProperties>>
ApiResponse of UserDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
GetUserDetailsWithHttpInfo(string)
Get summary of the user details for the given user ID.
public ApiResponse<UserProperties> GetUserDetailsWithHttpInfo(string userId)
Parameters
userId
stringUser Id.
Returns
- ApiResponse<UserProperties>
ApiResponse of UserDetails.
Exceptions
- ApiException
Thrown when fails to make API call.
IsValidEmail(string)
Validate Email.
public static bool IsValidEmail(string email)
Parameters
email
stringEmail Id.
Returns
- bool
True if the email is valid.
ListUsers(int, int?, string)
Gets the user list.
public UserRecords ListUsers(int page, int? pageSize, string search = null)
Parameters
Returns
- UserRecords
A Task.
ListUsersAsync(int, int?, string)
Gets the user list.
public Task<UserRecords> ListUsersAsync(int page, int? pageSize = null, string search = null)
Parameters
Returns
- Task<UserRecords>
Task of UserRecords.
ListUsersAsyncWithHttpInfo(int, int?, string)
Gets the user list.
public Task<ApiResponse<UserRecords>> ListUsersAsyncWithHttpInfo(int page, int? pageSize = null, string search = null)
Parameters
Returns
- Task<ApiResponse<UserRecords>>
Task of ApiResponse (UserRecords).
ListUsersWithHttpInfo(int, int?, string)
Gets the user list.
public ApiResponse<UserRecords> ListUsersWithHttpInfo(int page, int? pageSize, string search = null)
Parameters
Returns
- ApiResponse<UserRecords>
A Task.
ResendInvitation(string)
Resend Invitation.
public void ResendInvitation(string userId)
Parameters
userId
stringuserId.
Exceptions
- ApiException
Thrown when fails to make API call.
ResendInvitationAsync(string)
Resend Invitation.
public Task ResendInvitationAsync(string userId)
Parameters
userId
stringuserId.
Returns
- Task
ResendInvite.
Exceptions
- ApiException
Thrown when fails to make API call.
ResendInvitationAsyncWithHttpInfo(string)
Resend Invitation.
public Task<ApiResponse<object>> ResendInvitationAsyncWithHttpInfo(string userId)
Parameters
userId
stringuserId.
Returns
- Task<ApiResponse<object>>
ApiResponse of Object(ResendInvite).
Exceptions
- ApiException
Thrown when fails to make API call.
ResendInvitationWithHttpInfo(string)
Resend Invitation.
public ApiResponse<object> ResendInvitationWithHttpInfo(string userId)
Parameters
userId
stringuserId.
Returns
- ApiResponse<object>
ApiResponse of Object(void).
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateUser(UpdateUser)
Updates user role.
public void UpdateUser(UpdateUser updateUserQuery)
Parameters
updateUserQuery
UpdateUserupdate User Query.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateUserAsync(UpdateUser)
Updates user role.
public Task UpdateUserAsync(UpdateUser updateUserQuery)
Parameters
updateUserQuery
UpdateUserupdateUserQuery.
Returns
- Task
UpdateUserRole.
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateUserAsyncWithHttpInfo(UpdateUser)
Updates user role.
public Task<ApiResponse<object>> UpdateUserAsyncWithHttpInfo(UpdateUser updateUserQuery)
Parameters
updateUserQuery
UpdateUserupdateUserQuery.
Returns
- Task<ApiResponse<object>>
ApiResponse of Object(UpdateUserRole).
Exceptions
- ApiException
Thrown when fails to make API call.
UpdateUserWithHttpInfo(UpdateUser)
Updates user role.
public ApiResponse<object> UpdateUserWithHttpInfo(UpdateUser updateUserQuery)
Parameters
updateUserQuery
UpdateUserupdate User Query.
Returns
- ApiResponse<object>
ApiResponse of Object(void).
Exceptions
- ApiException
Thrown when fails to make API call.