-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIAccountResource.cs
More file actions
223 lines (199 loc) · 7.07 KB
/
Copy pathIAccountResource.cs
File metadata and controls
223 lines (199 loc) · 7.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
namespace Mailtrap.Accounts;
/// <summary>
/// Represents account resource.
/// </summary>
public interface IAccountResource : IRestResource
{
/// <summary>
/// Gets account access collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Account access collection resource for the account, represented by this resource instance.
/// </returns>
public IAccountAccessCollectionResource Accesses();
/// <summary>
/// Gets resource for specific account access, identified by <paramref name="accessId"/>.
/// </summary>
///
/// <param name="accessId">
/// ID of account access to get resource for.
/// </param>
///
/// <returns>
/// Resource for the account access with specified ID.
/// </returns>
///
/// <exception cref="ArgumentOutOfRangeException">
/// When <paramref name="accessId"/> is less than or equal to zero.
/// </exception>
public IAccountAccessResource Access(long accessId);
/// <summary>
/// Gets permissions resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Permissions resource for the account, represented by this resource instance.
/// </returns>
public IPermissionsResource Permissions();
/// <summary>
/// Gets billing resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Billing resource for the account, represented by this resource instance.
/// </returns>
public IBillingResource Billing();
/// <summary>
/// Gets sending domain collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Sending domain collection resource for the account, represented by this resource instance.
/// </returns>
public ISendingDomainCollectionResource SendingDomains();
/// <summary>
/// Gets resource for specific sending domain, identified by <paramref name="domainId"/>.
/// </summary>
///
/// <param name="domainId">
/// ID of sending domain to get resource for.
/// </param>
///
/// <returns>
/// Resource for the sending domain with specified ID.
/// </returns>
///
/// <exception cref="ArgumentOutOfRangeException">
/// When <paramref name="domainId"/> is less than or equal to zero.
/// </exception>
public ISendingDomainResource SendingDomain(long domainId);
/// <summary>
/// Gets project collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Project collection resource for the account, represented by this resource instance.
/// </returns>
public IProjectCollectionResource Projects();
/// <summary>
/// Gets resource for specific project, identified by <paramref name="projectId"/>.
/// </summary>
///
/// <param name="projectId">
/// ID of project to get resource for.
/// </param>
///
/// <returns>
/// Resource for the project with specified ID.
/// </returns>
///
/// <exception cref="ArgumentOutOfRangeException">
/// When <paramref name="projectId"/> is less than or equal to zero.
/// </exception>
public IProjectResource Project(long projectId);
/// <summary>
/// Gets inbox collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Inbox collection resource for the account, represented by this resource instance.
/// </returns>
public IInboxCollectionResource Inboxes();
/// <summary>
/// Gets resource for specific inbox, identified by <paramref name="inboxId"/>.
/// </summary>
///
/// <param name="inboxId">
/// ID of inbox to get resource for.
/// </param>
///
/// <returns>
/// Resource for the inbox with specified ID.
/// </returns>
///
/// <exception cref="ArgumentOutOfRangeException">
/// When <paramref name="inboxId"/> is less than or equal to zero.
/// </exception>
public IInboxResource Inbox(long inboxId);
/// <summary>
/// Gets contact collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Contact collection resource for the account, represented by this resource instance.
/// </returns>
public IContactCollectionResource Contacts();
/// <summary>
/// Gets resource for specific contact, identified by <paramref name="idOrEmail"/>.
/// </summary>
///
/// <param name="idOrEmail">
/// ID or email of contact to get resource for.
/// </param>
///
/// <returns>
/// Resource for the contact with specified ID or email.
/// </returns>
///
/// <exception cref="ArgumentNullException">
/// When <paramref name="idOrEmail"/> is null or empty.
/// </exception>
public IContactResource Contact(string idOrEmail);
/// <summary>
/// Gets email template collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Email template collection resource for the account, represented by this resource instance.
/// </returns>
public IEmailTemplateCollectionResource EmailTemplates();
/// <summary>
/// Gets resource for specific email template, identified by <paramref name="emailTemplateId"/>.
/// </summary>
///
/// <param name="emailTemplateId">
/// ID of email template to get resource for.
/// </param>
///
/// <returns>
/// Resource for the email template with specified ID.
/// </returns>
///
/// <exception cref="ArgumentOutOfRangeException">
/// When <paramref name="emailTemplateId"/> is less than or equal to zero.
/// </exception>
public IEmailTemplateResource EmailTemplate(long emailTemplateId);
/// <summary>
/// Gets suppression collection resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Suppression collection resource for the account, represented by this resource instance.
/// </returns>
public ISuppressionCollectionResource Suppressions();
/// <summary>
/// Gets resource for specific suppression, identified by <paramref name="suppressionId"/>.
/// </summary>
///
/// <param name="suppressionId">
/// Suppression ID to get resource for.
/// </param>
///
/// <returns>
/// Resource for the suppression with specified ID.
/// </returns>
///
/// <exception cref="ArgumentNullException">
/// When <paramref name="suppressionId"/> is null or empty.
/// </exception>
public ISuppressionResource Suppression(string suppressionId);
/// <summary>
/// Gets sending statistics resource for the account, represented by this resource instance.
/// </summary>
///
/// <returns>
/// Sending statistics resource for the account, represented by this resource instance.
/// </returns>
public IStatsResource Stats();
}