mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-24 12:06:34 +00:00
* DirectSong improvements * Use ChthonVIIs directsong remix * DirectSong fetches remix mp3s * Stop using ds executable to register entries on Windows * DirectSong don't rely on admin rights * Windows fixes
26 lines
584 B
C#
26 lines
584 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Daybreak.Shared.Models.Github;
|
|
|
|
public sealed class GithubContentItem
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public string? Name { get; set; }
|
|
|
|
[JsonPropertyName("path")]
|
|
public string? Path { get; set; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public string? Type { get; set; }
|
|
|
|
[JsonPropertyName("size")]
|
|
public long Size { get; set; }
|
|
|
|
[JsonPropertyName("download_url")]
|
|
public string? DownloadUrl { get; set; }
|
|
|
|
public bool IsFile => this.Type == "file";
|
|
|
|
public bool IsDirectory => this.Type == "dir";
|
|
}
|