From a301e14343abbb4adda89bb6ccd31ebe9d1cf2c5 Mon Sep 17 00:00:00 2001 From: Oleg Shevchenko Date: Mon, 3 Feb 2025 15:11:20 +0300 Subject: [PATCH] Update priority mapping. Fixes #63 --- src/Todoist.Net/Models/Priority.cs | 12 ++++++++---- src/Todoist.Net/Todoist.Net.csproj | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Todoist.Net/Models/Priority.cs b/src/Todoist.Net/Models/Priority.cs index 2d7d32b..0f1132a 100644 --- a/src/Todoist.Net/Models/Priority.cs +++ b/src/Todoist.Net/Models/Priority.cs @@ -3,26 +3,30 @@ /// /// Priority of a task. /// + /// + /// The priority of the task (a number between 1 and 4, 4 for very urgent and 1 for natural). + /// Note: Keep in mind that very urgent is the priority 1 on clients. So, p1 will return 4 in the API. + /// public enum Priority : byte { /// /// The priority1 /// - Priority1 = 1, + Priority1 = 4, /// /// The priority2 /// - Priority2 = 2, + Priority2 = 3, /// /// The priority3 /// - Priority3 = 3, + Priority3 = 2, /// /// The priority4 /// - Priority4 = 4 + Priority4 = 1 } } diff --git a/src/Todoist.Net/Todoist.Net.csproj b/src/Todoist.Net/Todoist.Net.csproj index 5fbc95c..e6b7151 100644 --- a/src/Todoist.Net/Todoist.Net.csproj +++ b/src/Todoist.Net/Todoist.Net.csproj @@ -2,7 +2,7 @@ A Todoist API client for .NET - 8.1.0 + 9.0.0 Oleg Shevchenko, Ahmed Zaki netstandard2.0;net462 true