Skip to content

Commit 184e5f7

Browse files
authored
Update priority mapping. Fixes #63 (#65)
1 parent 8cb0104 commit 184e5f7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/Todoist.Net/Models/Priority.cs

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,30 @@
33
/// <summary>
44
/// Priority of a task.
55
/// </summary>
6+
/// <remarks>
7+
/// The priority of the task (a number between 1 and 4, 4 for very urgent and 1 for natural).
8+
/// Note: Keep in mind that very urgent is the priority 1 on clients. So, p1 will return 4 in the API.
9+
/// </remarks>
610
public enum Priority : byte
711
{
812
/// <summary>
913
/// The priority1
1014
/// </summary>
11-
Priority1 = 1,
15+
Priority1 = 4,
1216

1317
/// <summary>
1418
/// The priority2
1519
/// </summary>
16-
Priority2 = 2,
20+
Priority2 = 3,
1721

1822
/// <summary>
1923
/// The priority3
2024
/// </summary>
21-
Priority3 = 3,
25+
Priority3 = 2,
2226

2327
/// <summary>
2428
/// The priority4
2529
/// </summary>
26-
Priority4 = 4
30+
Priority4 = 1
2731
}
2832
}

src/Todoist.Net/Todoist.Net.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>A Todoist API client for .NET</Description>
5-
<VersionPrefix>8.1.0</VersionPrefix>
5+
<VersionPrefix>9.0.0</VersionPrefix>
66
<Authors>Oleg Shevchenko, Ahmed Zaki</Authors>
77
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>

0 commit comments

Comments
 (0)