-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathITransaction.cs
83 lines (73 loc) · 2.65 KB
/
ITransaction.cs
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
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Todoist.Net.Services
{
/// <summary>
/// Represents a Transaction
/// </summary>
public interface ITransaction
{
/// <summary>
/// Gets or sets the filters.
/// </summary>
/// <value>The filters.</value>
/// <remarks>Filters are only available for Todoist Premium users.</remarks>
IFiltersCommandService Filters { get; set; }
/// <summary>
/// Gets the items service.
/// </summary>
/// <value>The items service.</value>
IItemsCommandService Items { get; }
/// <summary>
/// Gets the labels service.
/// </summary>
/// <value>The labels service.</value>
ILabelsCommandService Labels { get; }
/// <summary>
/// Gets the notes service.
/// </summary>
/// <value>The notes service.</value>
INotesCommandServices Notes { get; }
/// <summary>
/// Gets the notifications service.
/// </summary>
/// <value>The notifications service.</value>
INotificationsCommandService Notifications { get; }
/// <summary>
/// Gets the project.
/// </summary>
/// <value>The project.</value>
IProjectCommandService Project { get; }
/// <summary>
/// Gets the reminders.
/// </summary>
/// <value>The reminders.</value>
/// <remarks>Reminders are only available for Todoist Premium users.</remarks>
IRemindersCommandService Reminders { get; }
/// <summary>
/// Gets the sharing.
/// </summary>
/// <value>
/// The sharing.
/// </value>
ISharingCommandService Sharing { get; }
/// <summary>
/// Gets the users.
/// </summary>
/// <value>The users.</value>
IUsersCommandService Users { get; }
/// <summary>
/// Commits the transaction asynchronous.
/// </summary>
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <returns>
/// Returns <see cref="Task{TResult}" />. The task object representing the asynchronous operation
/// that at completion returns the transaction sync_token.
/// </returns>
/// <exception cref="AggregateException">Command execution exception.</exception>
/// <exception cref="HttpRequestException">API exception.</exception>
Task<string> CommitAsync(CancellationToken cancellationToken = default);
}
}