2023-07-03 23:24:35 -04:00
|
|
|
|
using System;
|
|
|
|
|
using Luski.net.Interfaces;
|
|
|
|
|
using Luski.net.JsonTypes.BaseTypes;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
using System.Text.Json.Serialization.Metadata;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using JacobTechEncryption;
|
|
|
|
|
using Luski.net.Enums;
|
|
|
|
|
using Luski.net.Enums.Main;
|
2023-07-08 09:06:13 -04:00
|
|
|
|
using Luski.net.Structures.Main;
|
2023-07-03 23:24:35 -04:00
|
|
|
|
|
|
|
|
|
namespace Luski.net.Structures.Public;
|
|
|
|
|
|
2023-07-08 09:06:13 -04:00
|
|
|
|
public class PublicSocketAppUser : PublicSocketUserBase, IAppUser
|
2023-07-03 23:24:35 -04:00
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("selected_channel")]
|
|
|
|
|
[JsonInclude]
|
|
|
|
|
public long SelectedChannel { get; internal set; } = default!;
|
|
|
|
|
[JsonPropertyName("username")]
|
|
|
|
|
[JsonInclude]
|
|
|
|
|
public string Username { get; internal set; } = default!;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonSerializable(typeof(PublicSocketAppUser))]
|
|
|
|
|
[JsonSourceGenerationOptions(
|
|
|
|
|
GenerationMode = JsonSourceGenerationMode.Default,
|
|
|
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.Unspecified,
|
|
|
|
|
WriteIndented = false,
|
|
|
|
|
DefaultIgnoreCondition = JsonIgnoreCondition.Never)]
|
|
|
|
|
internal partial class PublicSocketAppUserContext : JsonSerializerContext
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|