21 lines
574 B
C#
21 lines
574 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Band.Models;
|
|
|
|
public record Band(string? BasicAuthorization,
|
|
int? ClientId,
|
|
string? Redirect,
|
|
string? Token) {
|
|
|
|
public override string ToString() {
|
|
string result = JsonSerializer.Serialize(this, BandSourceGenerationContext.Default.Band);
|
|
return result;
|
|
}
|
|
|
|
}
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
|
[JsonSerializable(typeof(Band))]
|
|
public partial class BandSourceGenerationContext : JsonSerializerContext {
|
|
} |