Init
This commit is contained in:
21
src/Band/Models/Band.cs
Normal file
21
src/Band/Models/Band.cs
Normal file
@ -0,0 +1,21 @@
|
||||
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 {
|
||||
}
|
||||
Reference in New Issue
Block a user