-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement hearting and queueing levels through ApiV3 (#681)
Implements hearting and queueing levels through ApiV3, aswell as getting all hearted levels of a specific user, getting your own hearted and queued levels, clearing your queue and including whether you have hearted or queued a certain level, aswell as it's slot type (to differentiate whether it is a user or a story/dlc level), in it's ApiGameLevelResponse
- Loading branch information
Showing
6 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...esh.GameServer/Endpoints/ApiV3/DataTypes/Response/Levels/ApiGameLevelRelationsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Refresh.GameServer.Endpoints.ApiV3.DataTypes.Response.Levels; | ||
|
||
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))] | ||
public class ApiGameLevelRelationsResponse : IApiResponse | ||
{ | ||
public required bool IsHearted { get; set; } | ||
public required bool IsQueued { get; set; } | ||
public required int MyPlaysCount { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters