40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared._DV.CartridgeLoader.Cartridges;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class NanoChatUiState : BoundUserInterfaceState
|
|
{
|
|
public readonly Dictionary<uint, NanoChatRecipient> Recipients = [];
|
|
public readonly Dictionary<uint, List<NanoChatMessage>> Messages = [];
|
|
public readonly HashSet<uint> MutedChats = [];
|
|
public readonly List<NanoChatRecipient>? Contacts;
|
|
public readonly uint? CurrentChat;
|
|
public readonly uint OwnNumber;
|
|
public readonly int MaxRecipients;
|
|
public readonly bool NotificationsMuted;
|
|
public readonly bool ListNumber;
|
|
|
|
public NanoChatUiState(
|
|
Dictionary<uint, NanoChatRecipient> recipients,
|
|
Dictionary<uint, List<NanoChatMessage>> messages,
|
|
HashSet<uint> mutedChats,
|
|
List<NanoChatRecipient>? contacts,
|
|
uint? currentChat,
|
|
uint ownNumber,
|
|
int maxRecipients,
|
|
bool notificationsMuted,
|
|
bool listNumber)
|
|
{
|
|
Recipients = recipients;
|
|
Messages = messages;
|
|
MutedChats = mutedChats;
|
|
Contacts = contacts;
|
|
CurrentChat = currentChat;
|
|
OwnNumber = ownNumber;
|
|
MaxRecipients = maxRecipients;
|
|
NotificationsMuted = notificationsMuted;
|
|
ListNumber = listNumber;
|
|
}
|
|
}
|