Interface IAccountResource
Represents account resource.
public interface IAccountResource : IRestResource
- Inherited Members
Methods
Access(long)
Gets resource for specific account access, identified by accessId.
IAccountAccessResource Access(long accessId)
Parameters
accessIdlongID of account access to get resource for.
Returns
- IAccountAccessResource
Resource for the account access with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
accessIdis less than or equal to zero.
Accesses()
Gets account access collection resource for the account, represented by this resource instance.
IAccountAccessCollectionResource Accesses()
Returns
- IAccountAccessCollectionResource
Account access collection resource for the account, represented by this resource instance.
Billing()
Gets billing resource for the account, represented by this resource instance.
IBillingResource Billing()
Returns
- IBillingResource
Billing resource for the account, represented by this resource instance.
Contact(string)
Gets resource for specific contact, identified by idOrEmail.
IContactResource Contact(string idOrEmail)
Parameters
idOrEmailstringID or email of contact to get resource for.
Returns
- IContactResource
Resource for the contact with specified ID or email.
Exceptions
- ArgumentNullException
When
idOrEmailis null or empty.
Contacts()
Gets contact collection resource for the account, represented by this resource instance.
IContactCollectionResource Contacts()
Returns
- IContactCollectionResource
Contact collection resource for the account, represented by this resource instance.
EmailTemplate(long)
Gets resource for specific email template, identified by emailTemplateId.
IEmailTemplateResource EmailTemplate(long emailTemplateId)
Parameters
emailTemplateIdlongID of email template to get resource for.
Returns
- IEmailTemplateResource
Resource for the email template with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
emailTemplateIdis less than or equal to zero.
EmailTemplates()
Gets email template collection resource for the account, represented by this resource instance.
IEmailTemplateCollectionResource EmailTemplates()
Returns
- IEmailTemplateCollectionResource
Email template collection resource for the account, represented by this resource instance.
Inbox(long)
Gets resource for specific inbox, identified by inboxId.
IInboxResource Inbox(long inboxId)
Parameters
inboxIdlongID of inbox to get resource for.
Returns
- IInboxResource
Resource for the inbox with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
inboxIdis less than or equal to zero.
Inboxes()
Gets inbox collection resource for the account, represented by this resource instance.
IInboxCollectionResource Inboxes()
Returns
- IInboxCollectionResource
Inbox collection resource for the account, represented by this resource instance.
Permissions()
Gets permissions resource for the account, represented by this resource instance.
IPermissionsResource Permissions()
Returns
- IPermissionsResource
Permissions resource for the account, represented by this resource instance.
Project(long)
Gets resource for specific project, identified by projectId.
IProjectResource Project(long projectId)
Parameters
projectIdlongID of project to get resource for.
Returns
- IProjectResource
Resource for the project with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
projectIdis less than or equal to zero.
Projects()
Gets project collection resource for the account, represented by this resource instance.
IProjectCollectionResource Projects()
Returns
- IProjectCollectionResource
Project collection resource for the account, represented by this resource instance.
SendingDomain(long)
Gets resource for specific sending domain, identified by domainId.
ISendingDomainResource SendingDomain(long domainId)
Parameters
domainIdlongID of sending domain to get resource for.
Returns
- ISendingDomainResource
Resource for the sending domain with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
domainIdis less than or equal to zero.
SendingDomains()
Gets sending domain collection resource for the account, represented by this resource instance.
ISendingDomainCollectionResource SendingDomains()
Returns
- ISendingDomainCollectionResource
Sending domain collection resource for the account, represented by this resource instance.