Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/Friend/PacketRevcMsgScNotify.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

34 lines
910 B
C#

using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.Server.Packet.Send.Friend;
public class PacketRevcMsgScNotify : BasePacket
{
public PacketRevcMsgScNotify(uint toUid, uint fromUid, string msg) : base(CmdIds.RevcMsgScNotify)
{
var proto = new RevcMsgScNotify
{
ChatType = ChatType.Private,
SourceUid = fromUid,
TargetUid = toUid,
MessageText = msg,
MessageType = MsgType.CustomText
};
SetData(proto);
}
public PacketRevcMsgScNotify(uint toUid, uint fromUid, uint extraId) : base(CmdIds.RevcMsgScNotify)
{
var proto = new RevcMsgScNotify
{
ChatType = ChatType.Private,
SourceUid = fromUid,
TargetUid = toUid,
ExtraId = extraId,
MessageType = MsgType.Emoji
};
SetData(proto);
}
}