-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaed442
commit 10d3f50
Showing
7 changed files
with
81 additions
and
32 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
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 was deleted.
Oops, something went wrong.
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,28 @@ | ||
using ManiaAPI.NadeoAPI.Converters; | ||
using System.Text.Json.Serialization; | ||
using TmEssentials; | ||
|
||
namespace ManiaAPI.NadeoAPI; | ||
|
||
public sealed record MapInfoLive(string Uid, | ||
Guid MapId, | ||
string Name, | ||
Guid Author, | ||
Guid Submitter, | ||
[property: JsonConverter(typeof(TimeInt32Converter))] TimeInt32 AuthorTime, | ||
[property: JsonConverter(typeof(TimeInt32Converter))] TimeInt32 GoldTime, | ||
[property: JsonConverter(typeof(TimeInt32Converter))] TimeInt32 SilverTime, | ||
[property: JsonConverter(typeof(TimeInt32Converter))] TimeInt32 BronzeTime, | ||
int NbLaps, | ||
bool Valid, | ||
string DownloadUrl, | ||
string ThumbnailUrl, | ||
[property: JsonConverter(typeof(DateTimeOffsetUnixConverter))] DateTimeOffset UploadTimestamp, | ||
[property: JsonConverter(typeof(DateTimeOffsetUnixConverter))] DateTimeOffset UpdateTimestamp, | ||
int? FileSize, | ||
bool Public, | ||
bool Favorite, | ||
bool Playable, | ||
string MapStyle, | ||
string MapType, | ||
string CollectionName); |
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,3 @@ | ||
namespace ManiaAPI.NadeoAPI; | ||
|
||
public sealed record MapInfoLiveCollection(MapInfoLive[] MapList); |
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