mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
23 lines
717 B
C#
23 lines
717 B
C#
using EggLink.DanhengServer.Database.Friend;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Chat;
|
|
|
|
public class PacketGetChatFriendHistoryScRsp : BasePacket
|
|
{
|
|
public PacketGetChatFriendHistoryScRsp(Dictionary<int, FriendChatHistory> history)
|
|
: base(CmdIds.GetChatFriendHistoryScRsp)
|
|
{
|
|
var proto = new GetChatFriendHistoryScRsp();
|
|
|
|
foreach (var item in history)
|
|
proto.FriendHistoryInfo.Add(new FriendHistoryInfo
|
|
{
|
|
ContactSide = (uint)item.Key,
|
|
LastSendTime = item.Value.MessageList.Last().SendTime
|
|
});
|
|
|
|
SetData(proto);
|
|
}
|
|
} |