2023-10-07 13:32:19 +00:00
|
|
|
using Tiger.Communication.Messages.Interfaces;
|
|
|
|
using Tiger.Communication.Messages.Types;
|
|
|
|
|
|
|
|
namespace Tiger.Communication.Messages.Outgoing.Notifications;
|
|
|
|
|
|
|
|
public class ActivityPointNotificationMessageComposer : IMessageComposer
|
|
|
|
{
|
|
|
|
private readonly int _amount;
|
|
|
|
private readonly int _amountChanged;
|
|
|
|
private readonly int _type;
|
|
|
|
|
|
|
|
public ActivityPointNotificationMessageComposer(int amount, int amountChanged, int type)
|
|
|
|
{
|
|
|
|
_amount = amount;
|
|
|
|
_amountChanged = amountChanged;
|
|
|
|
_type = type;
|
|
|
|
}
|
|
|
|
|
2023-10-14 16:21:53 +00:00
|
|
|
public OutgoingHeaders Header => OutgoingHeaders.ActivityPointNotification;
|
2023-10-07 13:32:19 +00:00
|
|
|
public void Compose(ServerMessage message)
|
|
|
|
{
|
|
|
|
message.AppendInt32(_amount);
|
|
|
|
message.AppendInt32(_amountChanged);
|
|
|
|
message.AppendInt32(_type);
|
|
|
|
}
|
|
|
|
}
|