2022-04-17 12:43:07 +00:00
|
|
|
package emu.grasscutter.server.packet.send;
|
|
|
|
|
2022-04-27 04:21:57 +00:00
|
|
|
import emu.grasscutter.net.packet.BasePacket;
|
2022-04-17 12:43:07 +00:00
|
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
|
|
import emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType;
|
|
|
|
import emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp;
|
|
|
|
|
2022-04-27 04:21:57 +00:00
|
|
|
public class PacketDealAddFriendRsp extends BasePacket {
|
2022-04-17 12:43:07 +00:00
|
|
|
|
|
|
|
public PacketDealAddFriendRsp(int targetUid, DealAddFriendResultType result) {
|
|
|
|
super(PacketOpcodes.DealAddFriendRsp);
|
|
|
|
|
|
|
|
DealAddFriendRsp proto = DealAddFriendRsp.newBuilder()
|
|
|
|
.setTargetUid(targetUid)
|
|
|
|
.setDealAddFriendResult(result)
|
|
|
|
.build();
|
|
|
|
|
|
|
|
this.setData(proto);
|
|
|
|
}
|
|
|
|
}
|