71 lines
1.6 KiB
C#
71 lines
1.6 KiB
C#
using Content.Shared.Eui;
|
|
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; }
|
|
public string Name { get; }
|
|
public string Address { get; }
|
|
|
|
public AdminFaxEntry(NetEntity uid, string name, string address)
|
|
{
|
|
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; }
|
|
|
|
public Follow(NetEntity targetFax)
|
|
{
|
|
TargetFax = targetFax;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class Send : EuiMessageBase
|
|
{
|
|
public NetEntity Target { get; }
|
|
public string Title { get; }
|
|
public string From { get; }
|
|
public string Content { get; }
|
|
public string StampState { get; }
|
|
public Color StampColor { get; }
|
|
|
|
public Send(NetEntity target, string title, string from, string content, string stamp, Color stampColor)
|
|
{
|
|
Target = target;
|
|
Title = title;
|
|
From = from;
|
|
Content = content;
|
|
StampState = stamp;
|
|
StampColor = stampColor;
|
|
}
|
|
}
|
|
}
|