Luski.Net/Luski.net/JsonTypes/FriendRequestResult.cs

29 lines
775 B
C#
Raw Normal View History

2023-01-01 22:50:39 -05:00
using Luski.net.JsonTypes.BaseTypes;
using System.Text.Json.Serialization;
2024-03-20 23:18:34 -04:00
using Luski.Shared.PublicServers.V1.ServerToClient.HTTP;
2023-01-01 22:50:39 -05:00
namespace Luski.net.JsonTypes;
2024-03-20 23:18:34 -04:00
internal class FriendRequestResult : STC
2023-01-01 22:50:39 -05:00
{
[JsonPropertyName("channel")]
[JsonInclude]
public long? Channel { get; set; }
[JsonPropertyName("id")]
[JsonInclude]
public long? Id { get; set; }
[JsonPropertyName("result")]
[JsonInclude]
public bool? Result { get; set; }
}
[JsonSerializable(typeof(FriendRequestResult))]
[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
WriteIndented = false)]
internal partial class FriendRequestResultContext : JsonSerializerContext
{
}