Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update priority mapping. Fixes #63 #65

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/Todoist.Net/Models/Priority.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,30 @@
/// <summary>
/// Priority of a task.
/// </summary>
/// <remarks>
/// 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.
/// </remarks>
public enum Priority : byte
{
/// <summary>
/// The priority1
/// </summary>
Priority1 = 1,
Priority1 = 4,

/// <summary>
/// The priority2
/// </summary>
Priority2 = 2,
Priority2 = 3,

/// <summary>
/// The priority3
/// </summary>
Priority3 = 3,
Priority3 = 2,

/// <summary>
/// The priority4
/// </summary>
Priority4 = 4
Priority4 = 1
}
}
2 changes: 1 addition & 1 deletion src/Todoist.Net/Todoist.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>A Todoist API client for .NET</Description>
<VersionPrefix>8.1.0</VersionPrefix>
<VersionPrefix>9.0.0</VersionPrefix>
<Authors>Oleg Shevchenko, Ahmed Zaki</Authors>
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down