-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Showing
19 changed files
with
422 additions
and
90 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
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
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
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
20 changes: 20 additions & 0 deletions
20
src/StatisticsAnalysisTool/Network/Handler/AuctionBuyLoadoutOfferResponseHandler.cs
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,20 @@ | ||
using StatisticsAnalysisTool.Network.Manager; | ||
using StatisticsAnalysisTool.Network.Operations.Responses; | ||
using System.Threading.Tasks; | ||
|
||
namespace StatisticsAnalysisTool.Network.Handler; | ||
|
||
public class AuctionBuyLoadoutOfferResponseHandler : ResponsePacketHandler<AuctionBuyLoadoutOfferResponse> | ||
{ | ||
private readonly TrackingController _trackingController; | ||
|
||
public AuctionBuyLoadoutOfferResponseHandler(TrackingController trackingController) : base((int) OperationCodes.AuctionBuyLoadoutOffer) | ||
{ | ||
_trackingController = trackingController; | ||
} | ||
|
||
protected override async Task OnActionAsync(AuctionBuyLoadoutOfferResponse value) | ||
{ | ||
await _trackingController.MarketController.AddBuyAsync(value.PurchaseIds); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/StatisticsAnalysisTool/Network/Handler/AuctionGetLoadoutOffersResponseHandler.cs
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,21 @@ | ||
using StatisticsAnalysisTool.Network.Manager; | ||
using StatisticsAnalysisTool.Network.Operations.Responses; | ||
using System.Threading.Tasks; | ||
|
||
namespace StatisticsAnalysisTool.Network.Handler; | ||
|
||
public class AuctionGetLoadoutOffersResponseHandler : ResponsePacketHandler<AuctionGetLoadoutOffersResponse> | ||
{ | ||
private readonly TrackingController _trackingController; | ||
|
||
public AuctionGetLoadoutOffersResponseHandler(TrackingController trackingController) : base((int) OperationCodes.AuctionGetLoadoutOffers) | ||
{ | ||
_trackingController = trackingController; | ||
} | ||
|
||
protected override async Task OnActionAsync(AuctionGetLoadoutOffersResponse value) | ||
{ | ||
_trackingController.MarketController.AddOffers(value.AuctionEntries, value.NumberToBuyList); | ||
await Task.CompletedTask; | ||
} | ||
} |
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
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
Oops, something went wrong.