38 lines
1.0 KiB
C#
Executable File
38 lines
1.0 KiB
C#
Executable File
using Luski.net.Enums;
|
|
using Luski.net.Interfaces;
|
|
using Luski.net.JsonTypes.BaseTypes;
|
|
using System;
|
|
using System.Linq;
|
|
using System.Net.Http;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
using Luski.net.Enums.Main;
|
|
using Luski.net.Structures;
|
|
using Luski.net.Structures.Main;
|
|
|
|
namespace Luski.net.Structures.Main;
|
|
|
|
public class MainSocketRemoteUser : MainSocketUserBase
|
|
{
|
|
[JsonPropertyName("friend_status")]
|
|
[JsonInclude]
|
|
public FriendStatus FriendStatus { get; internal set; } = default!;
|
|
public MainSocketDMChannel Channel { get; internal set; }
|
|
|
|
internal MainSocketRemoteUser Clone()
|
|
{
|
|
return (MainSocketRemoteUser)MemberwiseClone();
|
|
}
|
|
}
|
|
|
|
[JsonSerializable(typeof(MainSocketRemoteUser))]
|
|
[JsonSourceGenerationOptions(
|
|
GenerationMode = JsonSourceGenerationMode.Default,
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
|
WriteIndented = false)]
|
|
internal partial class MainSocketRemoteUserContext : JsonSerializerContext
|
|
{
|
|
|
|
}
|