-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01a00d1
commit 002e4cc
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using AutomaticTypeMapper; | ||
using EOLib.Domain.Login; | ||
using EOLib.Domain.Trade; | ||
using Moffat.EndlessOnline.SDK.Protocol.Net; | ||
using Moffat.EndlessOnline.SDK.Protocol.Net.Server; | ||
|
||
namespace EOLib.PacketHandlers.Trade | ||
{ | ||
[AutoMappedType] | ||
public class TradeAdminHandler : TradeOfferUpdateHandler<TradeAdminServerPacket> | ||
{ | ||
public override PacketFamily Family => PacketFamily.Trade; | ||
|
||
public override PacketAction Action => PacketAction.Admin; | ||
|
||
public TradeAdminHandler(IPlayerInfoProvider playerInfoProvider, | ||
ITradeRepository tradeRepository) | ||
: base(playerInfoProvider, tradeRepository) | ||
{ | ||
} | ||
|
||
public override bool HandlePacket(TradeAdminServerPacket packet) | ||
{ | ||
Handle(packet.TradeData); | ||
return true; | ||
} | ||
} | ||
} |