void ShowPurchase(StreamlootsPurchase purchase) { CardDto cardDto = new CardDto(purchase); ShowCardEvent(cardDto); OnCardsPurchased(this, new CardEventArgs(cardDto)); }
private void ProcessChestPurchase(JObject cardObject) { StreamlootsPurchase purchase = GetPurchase(cardObject); ShowPurchase(purchase); //if (purchase != null) //{ // Console.WriteLine("Purchase By: " + purchase.Purchaser); // Console.WriteLine("Gifted to: " + ((!string.IsNullOrEmpty(purchase.Recipient)) ? purchase.Recipient : "NONE")); // Console.WriteLine("Quantity: " + purchase.Quantity); // Console.WriteLine("Chest Image: " + purchase.imageUrl); // Console.WriteLine("Chest Sound: " + purchase.soundUrl); // Console.WriteLine(); //} }
public CardDto(StreamlootsPurchase purchase) { InstanceID = Guid.NewGuid().ToString(); Purchase = purchase; Command = CMD_ShowPurchase; }