Files
crystall-punk-14/Content.Shared/Fax/AdminFaxEui.cs

71 lines
1.6 KiB
C#
Raw Normal View History

using Content.Shared.Eui;
2023-04-16 23:20:57 -07:00
using Robust.Shared.Serialization;
namespace Content.Shared.Fax;
[Serializable, NetSerializable]
public sealed class AdminFaxEuiState : EuiStateBase
{
public List<AdminFaxEntry> Entries { get; }
public AdminFaxEuiState(List<AdminFaxEntry> entries)
{
Entries = entries;
}
}
[Serializable, NetSerializable]
public sealed class AdminFaxEntry
{
public NetEntity Uid { get; }
2023-04-16 23:20:57 -07:00
public string Name { get; }
public string Address { get; }
public AdminFaxEntry(NetEntity uid, string name, string address)
2023-04-16 23:20:57 -07:00
{
Uid = uid;
Name = name;
Address = address;
}
}
public static class AdminFaxEuiMsg
{
[Serializable, NetSerializable]
public sealed class Close : EuiMessageBase
{
}
[Serializable, NetSerializable]
public sealed class Follow : EuiMessageBase
{
public NetEntity TargetFax { get; }
2023-04-16 23:20:57 -07:00
public Follow(NetEntity targetFax)
2023-04-16 23:20:57 -07:00
{
TargetFax = targetFax;
}
}
[Serializable, NetSerializable]
public sealed class Send : EuiMessageBase
{
public NetEntity Target { get; }
2023-04-16 23:20:57 -07:00
public string Title { get; }
public string From { get; }
public string Content { get; }
public string StampState { get; }
public Color StampColor { get; }
2023-04-16 23:20:57 -07:00
public Send(NetEntity target, string title, string from, string content, string stamp, Color stampColor)
2023-04-16 23:20:57 -07:00
{
Target = target;
Title = title;
From = from;
Content = content;
StampState = stamp;
StampColor = stampColor;
2023-04-16 23:20:57 -07:00
}
}
}