-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use static JSON models and some cleanup
- Loading branch information
1 parent
0da759d
commit 3e42c75
Showing
14 changed files
with
157 additions
and
111 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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Bloxstrap.Models | ||
{ | ||
public class GithubRelease | ||
{ | ||
[JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
[JsonPropertyName("body")] | ||
public string? Body { get; set; } | ||
|
||
[JsonPropertyName("created_at")] | ||
public string? CreatedAt { get; set; } | ||
|
||
[JsonPropertyName("assets")] | ||
public List<GithubReleaseAsset>? Assets { get; set; } | ||
} | ||
|
||
public class GithubReleaseAsset | ||
{ | ||
[JsonPropertyName("browser_download_url")] | ||
public string? BrowserDownloadUrl { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Bloxstrap.Models | ||
{ | ||
public class RobloxAsset | ||
{ | ||
public string? Name { get; set; } | ||
public RobloxAssetCreator? Creator { get; set; } | ||
} | ||
|
||
public class RobloxAssetCreator | ||
{ | ||
public string? Name { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Bloxstrap.Models | ||
{ | ||
public class RobloxThumbnails | ||
{ | ||
[JsonPropertyName("data")] | ||
public List<RobloxThumbnail>? Data { get; set; } | ||
} | ||
|
||
public class RobloxThumbnail | ||
{ | ||
[JsonPropertyName("imageUrl")] | ||
public string? ImageUrl { get; set; } | ||
} | ||
} |
Oops, something went wrong.