Luski.Net/Luski.net/Structures/Main/MainSocketRemoteUser.cs

38 lines
1.0 KiB
C#
Raw Permalink Normal View History

2023-01-01 22:50:39 -05:00
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;
2023-01-01 22:50:39 -05:00
namespace Luski.net.Structures.Main;
2023-01-01 22:50:39 -05:00
public class MainSocketRemoteUser : MainSocketUserBase
2023-01-01 22:50:39 -05:00
{
[JsonPropertyName("friend_status")]
[JsonInclude]
public FriendStatus FriendStatus { get; internal set; } = default!;
public MainSocketDMChannel Channel { get; internal set; }
2023-01-01 22:50:39 -05:00
internal MainSocketRemoteUser Clone()
2023-01-01 22:50:39 -05:00
{
return (MainSocketRemoteUser)MemberwiseClone();
2023-01-01 22:50:39 -05:00
}
}
[JsonSerializable(typeof(MainSocketRemoteUser))]
2023-01-01 22:50:39 -05:00
[JsonSourceGenerationOptions(
GenerationMode = JsonSourceGenerationMode.Default,
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
WriteIndented = false)]
internal partial class MainSocketRemoteUserContext : JsonSerializerContext
2023-01-01 22:50:39 -05:00
{
}