public override void SendAction() { Ag.LogString("WasInAppPrchs :: SendAction ... Started ... ", pWichtig: true); SendStr = ""; SendStr = SendStr.AddCodeKeyKKOID(User, 202); SendStr = SendStr.AddKeyValue("formatVersion", 1); #if UNITY_IPHONE SendStr = SendStr.AddKeyValue("productID", AgStt.mIAP.ProductID); SendStr = SendStr.AddKeyValue("receipt", AgStt.mIAP.ReceiptOfIAP); SendStr = SendStr.AddKeyValue("buyCode", AgStt.mIAP.TransactionID); Ag.LogString("ID : " + AgStt.mIAP.ProductID + " Receit : " + AgStt.mIAP.ReceiptOfIAP.Substring(0, 5) + AgStt.mIAP.TransactionID, pWichtig: true); SendStr = SendStr.AddKeyValue("androidSignature", ""); SendStr = SendStr.AddKeyValue("buyTransactionKey", ""); SendStr = SendStr.AddKeyValue("appStoreType", 1, false); // iOS #endif #if UNITY_ANDROID if (Ag.CurStorePlfm == StorePlfm.Nstore) { AgStt.mIAB.Receipt = AgStt.mIAB.BuyCode; AgStt.mIAB.Signature = ""; AgStt.mIAB.TransactionKey = ""; } SendStr = SendStr.AddKeyValue("productID", AgStt.mIAB.ProductID); SendStr = SendStr.AddKeyValue("receipt", AgStt.mIAB.Receipt); SendStr = SendStr.AddKeyValue("buyCode", AgStt.mIAB.BuyCode); SendStr = SendStr.AddKeyValue("androidSignature", AgStt.mIAB.Signature); SendStr = SendStr.AddKeyValue("buyTransactionKey", AgStt.mIAB.TransactionKey); SendStr = SendStr.AddKeyValue("appStoreType", 2, false); // google 2, nStore 3 ("WasInAppPrchs :: buyCode : " + AgStt.mIAB.BuyCode + " productID : " + AgStt.mIAB.ProductID).HtLog(); #endif SendStr = SendStr.AddParen(); Ag.LogString(" WasInAppPrchs " + SendStr, pWichtig: true); postAction += () => { Ag.LogStartWithStr(1, "WasInAppPrchs :: postAction " + RcvdStr); Ag.LogString(RcvdStr.Substring(0, 10), pWichtig: true); if (Result.result == 0) { AgStt.InAppPurchaseSuccess = true; Ag.LogIntenseWord(" Was In App Purchase >>>> AgStt.InAppPurchaseSuccess " + AgStt.InAppPurchaseSuccess); } // if (Result.result == 0) // ActPurchaseSuccess (); // else // ActPurchaseCancelled (); //Ag.LogString ("WasReview :: postAction " + Result.result); messageAction(Result.result); }; SendAndRciv(); }
// 610 : GIVE_REWARD_EVERY_HOUR_EVENT public override void SendAction() { Ag.LogString("WasCodeOnlyProtocol :: SendAction ... Started ... " + " Code : _____ " + protoCode + " _____"); SendStr = ""; SendStr = SendStr.AddCodeKeyKKOID(User, protoCode); SendStr = SendStr.AddKeyValue("formatVersion", 1, false); SendStr = SendStr.AddParen(); postAction += () => { Ag.LogStartWithStr(1, "WasCodeOnlyProtocol :: postAction " + RcvdStr); Ag.LogString(RcvdStr.Substring(0, 10), pWichtig: true); messageAction(Result.result); }; SendAndRciv(); }
public override void SendAction() { Ag.LogString("WasScouter :: SendAction ... Started ... " + " "); SendStr = ""; SendStr = SendStr.AddCodeKeyKKOID(User, 505); SendStr = SendStr.AddKeyValue("formatVersion", 1); SendStr = SendStr.AddKeyValue("buyType", User.GetBuyType("FuncScouter"), false); SendStr = SendStr.AddParen(); postAction += () => { Ag.LogStartWithStr(1, "WasScouter :: postAction " + RcvdStr); Ag.LogString(RcvdStr.Substring(0, 10), pWichtig: true); messageAction(Result.result); }; SendAndRciv(); }