Class ContactClient
Represents a function to interact with the API endpoints. The function perform action such as getting the Api credit details and so on.
Inheritance
Namespace: BoldSign.Api
Assembly: BoldSign.Api.dll
Syntax
public class ContactClient : object, IContactClient, IApiAccessor
Constructors
| Improve this Doc View SourceContactClient()
Initializes a new instance of the ContactClient class.
Declaration
public ContactClient()
ContactClient(ApiClient)
Initializes a new instance of the ContactClient class using Configuration object.
Declaration
public ContactClient(ApiClient apiClient)
Parameters
Type | Name | Description |
---|---|---|
ApiClient | apiClient | An instance of ApiClient. |
ContactClient(Configuration)
Initializes a new instance of the ContactClient class using Configuration object.
Declaration
public ContactClient(Configuration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | An instance of Configuration. |
ContactClient(String)
Initializes a new instance of the ContactClient class.
Declaration
public ContactClient(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | basePath | A basePath. |
Properties
| Improve this Doc View SourceConfiguration
Gets or sets the configuration object.
Declaration
public Configuration Configuration { get; set; }
Property Value
Type | Description |
---|---|
Configuration | An instance of the Configuration. |
ExceptionFactory
Gets or sets provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
ExceptionFactory |
Methods
| Improve this Doc View SourceCreateContact(List<ContactDetails>)
Create Contact details.
Declaration
public CreatedContact CreateContact(List<ContactDetails> contactsDetailsList = null)
Parameters
Type | Name | Description |
---|---|---|
List<ContactDetails> | contactsDetailsList |
Returns
Type | Description |
---|---|
CreatedContact | CreatedContact. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CreateContactAsync(List<ContactDetails>)
Creates a new contact.
Declaration
public async Task<CreatedContact> CreateContactAsync(List<ContactDetails> contactDetailsList = null)
Parameters
Type | Name | Description |
---|---|---|
List<ContactDetails> | contactDetailsList | The contactDetailsList. |
Returns
Type | Description |
---|---|
Task<CreatedContact> | A Task. |
CreateContactAsyncWithHttpInfo(List<ContactDetails>)
Gets create the contact.
Declaration
public async Task<ApiResponse<CreatedContact>> CreateContactAsyncWithHttpInfo(List<ContactDetails> contactsDetailsList = null)
Parameters
Type | Name | Description |
---|---|---|
List<ContactDetails> | contactsDetailsList | The contactDetailsList. |
Returns
Type | Description |
---|---|
Task<ApiResponse<CreatedContact>> | A Task of Response. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CreateContactWithHttpInfo(List<ContactDetails>)
Creates a new contact.
Declaration
public ApiResponse<CreatedContact> CreateContactWithHttpInfo(List<ContactDetails> contactsDetailsList = null)
Parameters
Type | Name | Description |
---|---|---|
List<ContactDetails> | contactsDetailsList | The contactsDetailsList. |
Returns
Type | Description |
---|---|
ApiResponse<CreatedContact> | A Task. |
DeleteContact(String)
Delete the contact when a particular contact’s ID is given as input.
Declaration
public void DeleteContact(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Contact Id. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
DeleteContactAsync(String)
Gets invite the user.
Declaration
public async Task DeleteContactAsync(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The create user details. |
Returns
Type | Description |
---|---|
Task | Task of void. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
DeleteContactAsyncWithHttpInfo(String)
Gets invite the user.
Declaration
public async Task<ApiResponse<object>> DeleteContactAsyncWithHttpInfo(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The create user details. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Object>> | Task of ApiResponse. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
DeleteContactWithHttpInfo(String)
Delete the contact when a particular contact’s ID is given as input.
Declaration
public ApiResponse<object> DeleteContactWithHttpInfo(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | Contact Id. |
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object(void). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
System.String | The base path. |
GetContact(String)
Gets the contact.
Declaration
public ContactsDetails GetContact(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
Returns
Type | Description |
---|---|
ContactsDetails | A Contact Details. |
GetContactAsync(String)
Gets the contact.
Declaration
public async Task<ContactsDetails> GetContactAsync(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
Returns
Type | Description |
---|---|
Task<ContactsDetails> | A Task. |
GetContactAsyncWithHttpInfo(String)
Gets the contact.
Declaration
public async Task<ApiResponse<ContactsDetails>> GetContactAsyncWithHttpInfo(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ContactsDetails>> | A Task. |
GetContactWithHttpInfo(String)
Gets the contact.
Declaration
public ApiResponse<ContactsDetails> GetContactWithHttpInfo(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
Returns
Type | Description |
---|---|
ApiResponse<ContactsDetails> | A Task. |
ListContacts(Int32, Nullable<Int32>, String, Nullable<ContactType>)
Gets the contact list.
Declaration
public ContactsList ListContacts(int page, int? pageSize = null, string searchKey = null, ContactType? contactType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | searchKey | The search key. |
System.Nullable<ContactType> | contactType | contactType. |
Returns
Type | Description |
---|---|
ContactsList | A Task. |
ListContactsAsync(Int32, Nullable<Int32>, String, Nullable<ContactType>)
Gets the contact list.
Declaration
public async Task<ContactsList> ListContactsAsync(int page, int? pageSize = null, string searchKey = null, ContactType? contactType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | searchKey | The search key. |
System.Nullable<ContactType> | contactType | contactType. |
Returns
Type | Description |
---|---|
Task<ContactsList> | Task of ListContacts. |
ListContactsAsyncWithHttpInfo(Int32, Nullable<Int32>, String, Nullable<ContactType>)
Gets the contact list.
Declaration
public async Task<ApiResponse<ContactsList>> ListContactsAsyncWithHttpInfo(int page, int? pageSize = null, string searchKey = null, ContactType? contactType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | searchKey | The search key. |
System.Nullable<ContactType> | contactType | contactType. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ContactsList>> | Task of ApiResponse (ListContacts). |
ListContactsWithHttpInfo(Int32, Nullable<Int32>, String, Nullable<ContactType>)
Gets the contact list.
Declaration
public ApiResponse<ContactsList> ListContactsWithHttpInfo(int page, int? pageSize = null, string searchKey = null, ContactType? contactType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | searchKey | The search key. |
System.Nullable<ContactType> | contactType | contactType. |
Returns
Type | Description |
---|---|
ApiResponse<ContactsList> | A Task. |
UpdateContact(String, ContactDetails)
Creates a new contact.
Declaration
public void UpdateContact(string id, ContactDetails updateContact)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
ContactDetails | updateContact | The Update Contact. |
UpdateContactAsync(String, ContactDetails)
Creates a new contact.
Declaration
public async Task UpdateContactAsync(string id, ContactDetails updateContact)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
ContactDetails | updateContact | The Update Contact. |
Returns
Type | Description |
---|---|
Task | A Task. |
UpdateContactAsyncWithHttpInfo(String, ContactDetails)
Creates a new contact.
Declaration
public async Task<ApiResponse<object>> UpdateContactAsyncWithHttpInfo(string id, ContactDetails updateContact)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
ContactDetails | updateContact | The Update Contact. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Object>> | A Task. |
UpdateContactWithHttpInfo(String, ContactDetails)
Creates a new contact.
Declaration
public ApiResponse<object> UpdateContactWithHttpInfo(string id, ContactDetails updateContact)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Contact ID. |
ContactDetails | updateContact | The Update Contact. |
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | A Task. |