feat: add DTOs for basic endpoints

This commit is contained in:
2026-01-28 05:17:11 +01:00
parent 03940a99ba
commit 6736ce8c13
6 changed files with 169 additions and 0 deletions

49
DTOs/UserPingDTO.cs Normal file
View File

@@ -0,0 +1,49 @@
using System.Text.Json.Serialization;
namespace Shadow.DTOs;
public class UserPingDTO
{
[JsonPropertyName("username")]
public string? username { get; set; }
[JsonPropertyName("scrobblingEnabled")]
public bool scrobblingEnabled { get; set; } = false;
[JsonPropertyName("adminRole")]
public bool adminRole { get; set; } = false;
[JsonPropertyName("settingsRole")]
public bool settingsRole { get; set; } = false;
[JsonPropertyName("downloadRole")]
public bool downlaodRole { get; set; } = true;
[JsonPropertyName("uploadRole")]
public bool uploadRole { get; set; } = false;
[JsonPropertyName("playlistRole")]
public bool playlistRole { get; set; } = false;
[JsonPropertyName("coverArtRole")]
public bool coverArtRole { get; set; } = false;
[JsonPropertyName("commentRole")]
public bool commentRole { get; set; } = false;
[JsonPropertyName("podcastRole")]
public bool podcastRole { get; set; } = false;
[JsonPropertyName("streamRole")]
public bool streamRole { get; set; } = false;
[JsonPropertyName("jukeboxRole")]
public bool jukeboxRole { get; set; } = false;
[JsonPropertyName("shareRole")]
public bool shareRole { get; set; } = false;
[JsonPropertyName("videoConversionRole")]
public bool videoConversionRole { get; set; } = false;
}