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