initial commit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{32D17B6B-8A08-4AF7-8DA9-CC73798E69D6}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Assembly-CSharp-firstpass</RootNamespace>
|
||||
<AssemblyName>Assembly-CSharp-firstpass</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="P31RestKit">
|
||||
<HintPath>..\..\..\Desktop\alice hack\IOS\RAW DATA\Payload\aliceheart.app\Data\Managed\P31RestKit.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Core">
|
||||
<HintPath>..\..\..\Desktop\alice hack\IOS\RAW DATA\Payload\aliceheart.app\Data\Managed\System.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine">
|
||||
<HintPath>..\..\..\Desktop\alice hack\IOS\RAW DATA\Payload\aliceheart.app\Data\Managed\UnityEngine.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="GoogleIABManager.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="StoreKitBinding.cs" />
|
||||
<Compile Include="StoreKitDownload.cs" />
|
||||
<Compile Include="StoreKitDownloadState.cs" />
|
||||
<Compile Include="StoreKitManager.cs" />
|
||||
<Compile Include="StoreKitProduct.cs" />
|
||||
<Compile Include="StoreKitTransaction.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,7 @@
|
||||
using System;
|
||||
using Prime31;
|
||||
|
||||
// Token: 0x02000002 RID: 2
|
||||
public class GoogleIABManager : AbstractManager
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: AssemblyVersion("0.0.0.0")]
|
||||
@@ -0,0 +1,164 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000003 RID: 3
|
||||
public class StoreKitBinding
|
||||
{
|
||||
// Token: 0x06000003 RID: 3
|
||||
[DllImport("__Internal")]
|
||||
private static extern bool _storeKitCanMakePayments();
|
||||
|
||||
// Token: 0x06000004 RID: 4 RVA: 0x000020FC File Offset: 0x000002FC
|
||||
public static bool canMakePayments()
|
||||
{
|
||||
return Application.platform == RuntimePlatform.IPhonePlayer && StoreKitBinding._storeKitCanMakePayments();
|
||||
}
|
||||
|
||||
// Token: 0x06000005 RID: 5
|
||||
[DllImport("__Internal")]
|
||||
private static extern string _storeKitGetAppStoreReceiptUrl();
|
||||
|
||||
// Token: 0x06000006 RID: 6 RVA: 0x00002110 File Offset: 0x00000310
|
||||
public static string getAppStoreReceiptLocation()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
return StoreKitBinding._storeKitGetAppStoreReceiptUrl();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000007 RID: 7
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitRequestProductData(string productIdentifier);
|
||||
|
||||
// Token: 0x06000008 RID: 8 RVA: 0x00002124 File Offset: 0x00000324
|
||||
public static void requestProductData(string[] productIdentifiers)
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitRequestProductData(string.Join(",", productIdentifiers));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000009 RID: 9
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitPurchaseProduct(string productIdentifier, int quantity);
|
||||
|
||||
// Token: 0x0600000A RID: 10 RVA: 0x00002144 File Offset: 0x00000344
|
||||
public static void purchaseProduct(string productIdentifier, int quantity)
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitPurchaseProduct(productIdentifier, quantity);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600000B RID: 11
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitFinishPendingTransactions();
|
||||
|
||||
// Token: 0x0600000C RID: 12 RVA: 0x00002158 File Offset: 0x00000358
|
||||
public static void finishPendingTransactions()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitFinishPendingTransactions();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600000D RID: 13
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitFinishPendingTransaction(string transactionIdentifier);
|
||||
|
||||
// Token: 0x0600000E RID: 14 RVA: 0x0000216C File Offset: 0x0000036C
|
||||
public static void finishPendingTransaction(string transactionIdentifier)
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitFinishPendingTransaction(transactionIdentifier);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600000F RID: 15
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitPauseDownloads();
|
||||
|
||||
// Token: 0x06000010 RID: 16 RVA: 0x00002180 File Offset: 0x00000380
|
||||
public static void pauseDownloads()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitPauseDownloads();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000011 RID: 17
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitResumeDownloads();
|
||||
|
||||
// Token: 0x06000012 RID: 18 RVA: 0x00002194 File Offset: 0x00000394
|
||||
public static void resumeDownloads()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitResumeDownloads();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000013 RID: 19
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitCancelDownloads();
|
||||
|
||||
// Token: 0x06000014 RID: 20 RVA: 0x000021A8 File Offset: 0x000003A8
|
||||
public static void cancelDownloads()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitCancelDownloads();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000015 RID: 21
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitRestoreCompletedTransactions();
|
||||
|
||||
// Token: 0x06000016 RID: 22 RVA: 0x000021BC File Offset: 0x000003BC
|
||||
public static void restoreCompletedTransactions()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitRestoreCompletedTransactions();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000017 RID: 23
|
||||
[DllImport("__Internal")]
|
||||
private static extern string _storeKitGetAllSavedTransactions();
|
||||
|
||||
// Token: 0x06000018 RID: 24 RVA: 0x000021D0 File Offset: 0x000003D0
|
||||
public static List<StoreKitTransaction> getAllSavedTransactions()
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
string json = StoreKitBinding._storeKitGetAllSavedTransactions();
|
||||
return StoreKitTransaction.transactionsFromJson(json);
|
||||
}
|
||||
return new List<StoreKitTransaction>();
|
||||
}
|
||||
|
||||
// Token: 0x06000019 RID: 25
|
||||
[DllImport("__Internal")]
|
||||
private static extern void _storeKitDisplayStoreWithProductId(string productId);
|
||||
|
||||
// Token: 0x0600001A RID: 26 RVA: 0x000021FC File Offset: 0x000003FC
|
||||
public static void displayStoreWithProductId(string productId)
|
||||
{
|
||||
if (Application.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
StoreKitBinding._storeKitDisplayStoreWithProductId(productId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Prime31;
|
||||
|
||||
// Token: 0x02000005 RID: 5
|
||||
public class StoreKitDownload
|
||||
{
|
||||
// Token: 0x0600001C RID: 28 RVA: 0x00002218 File Offset: 0x00000418
|
||||
public static List<StoreKitDownload> downloadsFromJson(string json)
|
||||
{
|
||||
List<StoreKitDownload> list = new List<StoreKitDownload>();
|
||||
List<object> list2 = json.listFromJson();
|
||||
if (list2 == null)
|
||||
{
|
||||
return list;
|
||||
}
|
||||
foreach (object obj in list2)
|
||||
{
|
||||
Dictionary<string, object> dict = (Dictionary<string, object>)obj;
|
||||
list.Add(StoreKitDownload.downloadFromDictionary(dict));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600001D RID: 29 RVA: 0x0000229C File Offset: 0x0000049C
|
||||
public static StoreKitDownload downloadFromDictionary(Dictionary<string, object> dict)
|
||||
{
|
||||
StoreKitDownload storeKitDownload = new StoreKitDownload();
|
||||
if (dict.ContainsKey("downloadState"))
|
||||
{
|
||||
storeKitDownload.downloadState = (StoreKitDownloadState)int.Parse(dict["downloadState"].ToString());
|
||||
}
|
||||
if (dict.ContainsKey("contentLength"))
|
||||
{
|
||||
storeKitDownload.contentLength = double.Parse(dict["contentLength"].ToString());
|
||||
}
|
||||
if (dict.ContainsKey("contentIdentifier"))
|
||||
{
|
||||
storeKitDownload.contentIdentifier = dict["contentIdentifier"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("contentURL"))
|
||||
{
|
||||
storeKitDownload.contentURL = dict["contentURL"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("contentVersion"))
|
||||
{
|
||||
storeKitDownload.contentVersion = dict["contentVersion"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("error"))
|
||||
{
|
||||
storeKitDownload.error = dict["error"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("progress"))
|
||||
{
|
||||
storeKitDownload.progress = float.Parse(dict["progress"].ToString());
|
||||
}
|
||||
if (dict.ContainsKey("timeRemaining"))
|
||||
{
|
||||
storeKitDownload.timeRemaining = double.Parse(dict["timeRemaining"].ToString());
|
||||
}
|
||||
if (dict.ContainsKey("transaction"))
|
||||
{
|
||||
storeKitDownload.transaction = StoreKitTransaction.transactionFromDictionary(dict["transaction"] as Dictionary<string, object>);
|
||||
}
|
||||
return storeKitDownload;
|
||||
}
|
||||
|
||||
// Token: 0x0600001E RID: 30 RVA: 0x00002420 File Offset: 0x00000620
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("<StoreKitDownload> downloadState: {0}\n contentLength: {1}\n contentIdentifier: {2}\n contentURL: {3}\n contentVersion: {4}\n error: {5}\n progress: {6}\n transaction: {7}", new object[]
|
||||
{
|
||||
this.downloadState,
|
||||
this.contentLength,
|
||||
this.contentIdentifier,
|
||||
this.contentURL,
|
||||
this.contentVersion,
|
||||
this.error,
|
||||
this.progress,
|
||||
this.transaction
|
||||
});
|
||||
}
|
||||
|
||||
// Token: 0x04000008 RID: 8
|
||||
public StoreKitDownloadState downloadState;
|
||||
|
||||
// Token: 0x04000009 RID: 9
|
||||
public double contentLength;
|
||||
|
||||
// Token: 0x0400000A RID: 10
|
||||
public string contentIdentifier;
|
||||
|
||||
// Token: 0x0400000B RID: 11
|
||||
public string contentURL;
|
||||
|
||||
// Token: 0x0400000C RID: 12
|
||||
public string contentVersion;
|
||||
|
||||
// Token: 0x0400000D RID: 13
|
||||
public string error;
|
||||
|
||||
// Token: 0x0400000E RID: 14
|
||||
public float progress;
|
||||
|
||||
// Token: 0x0400000F RID: 15
|
||||
public double timeRemaining;
|
||||
|
||||
// Token: 0x04000010 RID: 16
|
||||
public StoreKitTransaction transaction;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
// Token: 0x02000004 RID: 4
|
||||
public enum StoreKitDownloadState
|
||||
{
|
||||
// Token: 0x04000002 RID: 2
|
||||
Waiting,
|
||||
// Token: 0x04000003 RID: 3
|
||||
Active,
|
||||
// Token: 0x04000004 RID: 4
|
||||
Paused,
|
||||
// Token: 0x04000005 RID: 5
|
||||
Finished,
|
||||
// Token: 0x04000006 RID: 6
|
||||
Failed,
|
||||
// Token: 0x04000007 RID: 7
|
||||
Cancelled
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Prime31;
|
||||
|
||||
// Token: 0x02000006 RID: 6
|
||||
public class StoreKitManager : AbstractManager
|
||||
{
|
||||
// Token: 0x06000020 RID: 32 RVA: 0x0000249C File Offset: 0x0000069C
|
||||
static StoreKitManager()
|
||||
{
|
||||
AbstractManager.initialize(typeof(StoreKitManager));
|
||||
}
|
||||
|
||||
// Token: 0x14000001 RID: 1
|
||||
// (add) Token: 0x06000021 RID: 33 RVA: 0x000024B4 File Offset: 0x000006B4
|
||||
// (remove) Token: 0x06000022 RID: 34 RVA: 0x000024CC File Offset: 0x000006CC
|
||||
public static event Action<List<StoreKitProduct>> productListReceivedEvent;
|
||||
|
||||
// Token: 0x14000002 RID: 2
|
||||
// (add) Token: 0x06000023 RID: 35 RVA: 0x000024E4 File Offset: 0x000006E4
|
||||
// (remove) Token: 0x06000024 RID: 36 RVA: 0x000024FC File Offset: 0x000006FC
|
||||
public static event Action<string> productListRequestFailedEvent;
|
||||
|
||||
// Token: 0x14000003 RID: 3
|
||||
// (add) Token: 0x06000025 RID: 37 RVA: 0x00002514 File Offset: 0x00000714
|
||||
// (remove) Token: 0x06000026 RID: 38 RVA: 0x0000252C File Offset: 0x0000072C
|
||||
public static event Action<StoreKitTransaction> productPurchaseAwaitingConfirmationEvent;
|
||||
|
||||
// Token: 0x14000004 RID: 4
|
||||
// (add) Token: 0x06000027 RID: 39 RVA: 0x00002544 File Offset: 0x00000744
|
||||
// (remove) Token: 0x06000028 RID: 40 RVA: 0x0000255C File Offset: 0x0000075C
|
||||
public static event Action<StoreKitTransaction> purchaseSuccessfulEvent;
|
||||
|
||||
// Token: 0x14000005 RID: 5
|
||||
// (add) Token: 0x06000029 RID: 41 RVA: 0x00002574 File Offset: 0x00000774
|
||||
// (remove) Token: 0x0600002A RID: 42 RVA: 0x0000258C File Offset: 0x0000078C
|
||||
public static event Action<string> purchaseFailedEvent;
|
||||
|
||||
// Token: 0x14000006 RID: 6
|
||||
// (add) Token: 0x0600002B RID: 43 RVA: 0x000025A4 File Offset: 0x000007A4
|
||||
// (remove) Token: 0x0600002C RID: 44 RVA: 0x000025BC File Offset: 0x000007BC
|
||||
public static event Action<string> purchaseCancelledEvent;
|
||||
|
||||
// Token: 0x14000007 RID: 7
|
||||
// (add) Token: 0x0600002D RID: 45 RVA: 0x000025D4 File Offset: 0x000007D4
|
||||
// (remove) Token: 0x0600002E RID: 46 RVA: 0x000025EC File Offset: 0x000007EC
|
||||
public static event Action<string> restoreTransactionsFailedEvent;
|
||||
|
||||
// Token: 0x14000008 RID: 8
|
||||
// (add) Token: 0x0600002F RID: 47 RVA: 0x00002604 File Offset: 0x00000804
|
||||
// (remove) Token: 0x06000030 RID: 48 RVA: 0x0000261C File Offset: 0x0000081C
|
||||
public static event Action restoreTransactionsFinishedEvent;
|
||||
|
||||
// Token: 0x14000009 RID: 9
|
||||
// (add) Token: 0x06000031 RID: 49 RVA: 0x00002634 File Offset: 0x00000834
|
||||
// (remove) Token: 0x06000032 RID: 50 RVA: 0x0000264C File Offset: 0x0000084C
|
||||
public static event Action<List<StoreKitDownload>> paymentQueueUpdatedDownloadsEvent;
|
||||
|
||||
// Token: 0x06000033 RID: 51 RVA: 0x00002664 File Offset: 0x00000864
|
||||
public void productPurchaseAwaitingConfirmation(string json)
|
||||
{
|
||||
if (StoreKitManager.productPurchaseAwaitingConfirmationEvent != null)
|
||||
{
|
||||
StoreKitManager.productPurchaseAwaitingConfirmationEvent(StoreKitTransaction.transactionFromJson(json));
|
||||
}
|
||||
if (StoreKitManager.autoConfirmTransactions)
|
||||
{
|
||||
StoreKitBinding.finishPendingTransactions();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000034 RID: 52 RVA: 0x00002690 File Offset: 0x00000890
|
||||
public void productPurchased(string json)
|
||||
{
|
||||
if (StoreKitManager.purchaseSuccessfulEvent != null)
|
||||
{
|
||||
StoreKitManager.purchaseSuccessfulEvent(StoreKitTransaction.transactionFromJson(json));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000035 RID: 53 RVA: 0x000026AC File Offset: 0x000008AC
|
||||
public void productPurchaseFailed(string error)
|
||||
{
|
||||
if (StoreKitManager.purchaseFailedEvent != null)
|
||||
{
|
||||
StoreKitManager.purchaseFailedEvent(error);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000036 RID: 54 RVA: 0x000026C4 File Offset: 0x000008C4
|
||||
public void productPurchaseCancelled(string error)
|
||||
{
|
||||
if (StoreKitManager.purchaseCancelledEvent != null)
|
||||
{
|
||||
StoreKitManager.purchaseCancelledEvent(error);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000037 RID: 55 RVA: 0x000026DC File Offset: 0x000008DC
|
||||
public void productsReceived(string json)
|
||||
{
|
||||
if (StoreKitManager.productListReceivedEvent != null)
|
||||
{
|
||||
StoreKitManager.productListReceivedEvent(StoreKitProduct.productsFromJson(json));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000038 RID: 56 RVA: 0x000026F8 File Offset: 0x000008F8
|
||||
public void productsRequestDidFail(string error)
|
||||
{
|
||||
if (StoreKitManager.productListRequestFailedEvent != null)
|
||||
{
|
||||
StoreKitManager.productListRequestFailedEvent(error);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000039 RID: 57 RVA: 0x00002710 File Offset: 0x00000910
|
||||
public void restoreCompletedTransactionsFailed(string error)
|
||||
{
|
||||
if (StoreKitManager.restoreTransactionsFailedEvent != null)
|
||||
{
|
||||
StoreKitManager.restoreTransactionsFailedEvent(error);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600003A RID: 58 RVA: 0x00002728 File Offset: 0x00000928
|
||||
public void restoreCompletedTransactionsFinished(string empty)
|
||||
{
|
||||
if (StoreKitManager.restoreTransactionsFinishedEvent != null)
|
||||
{
|
||||
StoreKitManager.restoreTransactionsFinishedEvent();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600003B RID: 59 RVA: 0x00002740 File Offset: 0x00000940
|
||||
public void paymentQueueUpdatedDownloads(string json)
|
||||
{
|
||||
if (StoreKitManager.paymentQueueUpdatedDownloadsEvent != null)
|
||||
{
|
||||
StoreKitManager.paymentQueueUpdatedDownloadsEvent(StoreKitDownload.downloadsFromJson(json));
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000011 RID: 17
|
||||
public static bool autoConfirmTransactions = true;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Prime31;
|
||||
|
||||
// Token: 0x02000007 RID: 7
|
||||
public class StoreKitProduct
|
||||
{
|
||||
// Token: 0x17000001 RID: 1
|
||||
// (get) Token: 0x0600003D RID: 61 RVA: 0x00002764 File Offset: 0x00000964
|
||||
// (set) Token: 0x0600003E RID: 62 RVA: 0x0000276C File Offset: 0x0000096C
|
||||
public string productIdentifier { get; private set; }
|
||||
|
||||
// Token: 0x17000002 RID: 2
|
||||
// (get) Token: 0x0600003F RID: 63 RVA: 0x00002778 File Offset: 0x00000978
|
||||
// (set) Token: 0x06000040 RID: 64 RVA: 0x00002780 File Offset: 0x00000980
|
||||
public string title { get; private set; }
|
||||
|
||||
// Token: 0x17000003 RID: 3
|
||||
// (get) Token: 0x06000041 RID: 65 RVA: 0x0000278C File Offset: 0x0000098C
|
||||
// (set) Token: 0x06000042 RID: 66 RVA: 0x00002794 File Offset: 0x00000994
|
||||
public string description { get; private set; }
|
||||
|
||||
// Token: 0x17000004 RID: 4
|
||||
// (get) Token: 0x06000043 RID: 67 RVA: 0x000027A0 File Offset: 0x000009A0
|
||||
// (set) Token: 0x06000044 RID: 68 RVA: 0x000027A8 File Offset: 0x000009A8
|
||||
public string price { get; private set; }
|
||||
|
||||
// Token: 0x17000005 RID: 5
|
||||
// (get) Token: 0x06000045 RID: 69 RVA: 0x000027B4 File Offset: 0x000009B4
|
||||
// (set) Token: 0x06000046 RID: 70 RVA: 0x000027BC File Offset: 0x000009BC
|
||||
public string currencySymbol { get; private set; }
|
||||
|
||||
// Token: 0x17000006 RID: 6
|
||||
// (get) Token: 0x06000047 RID: 71 RVA: 0x000027C8 File Offset: 0x000009C8
|
||||
// (set) Token: 0x06000048 RID: 72 RVA: 0x000027D0 File Offset: 0x000009D0
|
||||
public string currencyCode { get; private set; }
|
||||
|
||||
// Token: 0x17000007 RID: 7
|
||||
// (get) Token: 0x06000049 RID: 73 RVA: 0x000027DC File Offset: 0x000009DC
|
||||
// (set) Token: 0x0600004A RID: 74 RVA: 0x000027E4 File Offset: 0x000009E4
|
||||
public string formattedPrice { get; private set; }
|
||||
|
||||
// Token: 0x0600004B RID: 75 RVA: 0x000027F0 File Offset: 0x000009F0
|
||||
public static List<StoreKitProduct> productsFromJson(string json)
|
||||
{
|
||||
List<StoreKitProduct> list = new List<StoreKitProduct>();
|
||||
List<object> list2 = json.listFromJson();
|
||||
foreach (object obj in list2)
|
||||
{
|
||||
Dictionary<string, object> ht = (Dictionary<string, object>)obj;
|
||||
list.Add(StoreKitProduct.productFromDictionary(ht));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600004C RID: 76 RVA: 0x0000286C File Offset: 0x00000A6C
|
||||
public static StoreKitProduct productFromDictionary(Dictionary<string, object> ht)
|
||||
{
|
||||
StoreKitProduct storeKitProduct = new StoreKitProduct();
|
||||
if (ht.ContainsKey("productIdentifier"))
|
||||
{
|
||||
storeKitProduct.productIdentifier = ht["productIdentifier"].ToString();
|
||||
}
|
||||
if (ht.ContainsKey("localizedTitle"))
|
||||
{
|
||||
storeKitProduct.title = ht["localizedTitle"].ToString();
|
||||
}
|
||||
if (ht.ContainsKey("localizedDescription"))
|
||||
{
|
||||
storeKitProduct.description = ht["localizedDescription"].ToString();
|
||||
}
|
||||
if (ht.ContainsKey("price"))
|
||||
{
|
||||
storeKitProduct.price = ht["price"].ToString();
|
||||
}
|
||||
if (ht.ContainsKey("currencySymbol"))
|
||||
{
|
||||
storeKitProduct.currencySymbol = ht["currencySymbol"].ToString();
|
||||
}
|
||||
if (ht.ContainsKey("currencyCode"))
|
||||
{
|
||||
storeKitProduct.currencyCode = ht["currencyCode"].ToString();
|
||||
}
|
||||
if (ht.ContainsKey("formattedPrice"))
|
||||
{
|
||||
storeKitProduct.formattedPrice = ht["formattedPrice"].ToString();
|
||||
}
|
||||
return storeKitProduct;
|
||||
}
|
||||
|
||||
// Token: 0x0600004D RID: 77 RVA: 0x0000298C File Offset: 0x00000B8C
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("<StoreKitProduct>\nID: {0}\nTitle: {1}\nDescription: {2}\nPrice: {3}\nCurrency Symbol: {4}\nFormatted Price: {5}\nCurrency Code: {6}", new object[]
|
||||
{
|
||||
this.productIdentifier,
|
||||
this.title,
|
||||
this.description,
|
||||
this.price,
|
||||
this.currencySymbol,
|
||||
this.formattedPrice,
|
||||
this.currencyCode
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Prime31;
|
||||
|
||||
// Token: 0x02000008 RID: 8
|
||||
public class StoreKitTransaction
|
||||
{
|
||||
// Token: 0x0600004F RID: 79 RVA: 0x000029F0 File Offset: 0x00000BF0
|
||||
public static List<StoreKitTransaction> transactionsFromJson(string json)
|
||||
{
|
||||
List<StoreKitTransaction> list = new List<StoreKitTransaction>();
|
||||
List<object> list2 = json.listFromJson();
|
||||
if (list2 == null)
|
||||
{
|
||||
return list;
|
||||
}
|
||||
foreach (object obj in list2)
|
||||
{
|
||||
Dictionary<string, object> dict = (Dictionary<string, object>)obj;
|
||||
list.Add(StoreKitTransaction.transactionFromDictionary(dict));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x06000050 RID: 80 RVA: 0x00002A74 File Offset: 0x00000C74
|
||||
public static StoreKitTransaction transactionFromJson(string json)
|
||||
{
|
||||
if (json.dictionaryFromJson() == null)
|
||||
{
|
||||
return new StoreKitTransaction();
|
||||
}
|
||||
return StoreKitTransaction.transactionFromDictionary(json.dictionaryFromJson());
|
||||
}
|
||||
|
||||
// Token: 0x06000051 RID: 81 RVA: 0x00002AA0 File Offset: 0x00000CA0
|
||||
public static StoreKitTransaction transactionFromDictionary(Dictionary<string, object> dict)
|
||||
{
|
||||
StoreKitTransaction storeKitTransaction = new StoreKitTransaction();
|
||||
if (dict.ContainsKey("productIdentifier"))
|
||||
{
|
||||
storeKitTransaction.productIdentifier = dict["productIdentifier"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("transactionIdentifier"))
|
||||
{
|
||||
storeKitTransaction.transactionIdentifier = dict["transactionIdentifier"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("base64EncodedReceipt"))
|
||||
{
|
||||
storeKitTransaction.base64EncodedTransactionReceipt = dict["base64EncodedReceipt"].ToString();
|
||||
}
|
||||
if (dict.ContainsKey("quantity"))
|
||||
{
|
||||
storeKitTransaction.quantity = int.Parse(dict["quantity"].ToString());
|
||||
}
|
||||
return storeKitTransaction;
|
||||
}
|
||||
|
||||
// Token: 0x06000052 RID: 82 RVA: 0x00002B54 File Offset: 0x00000D54
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("<StoreKitTransaction> ID: {0}, quantity: {1}, transactionIdentifier: {2}", this.productIdentifier, this.quantity, this.transactionIdentifier);
|
||||
}
|
||||
|
||||
// Token: 0x04000022 RID: 34
|
||||
public string productIdentifier;
|
||||
|
||||
// Token: 0x04000023 RID: 35
|
||||
public string transactionIdentifier;
|
||||
|
||||
// Token: 0x04000024 RID: 36
|
||||
public string base64EncodedTransactionReceipt;
|
||||
|
||||
// Token: 0x04000025 RID: 37
|
||||
public int quantity;
|
||||
}
|
||||
Reference in New Issue
Block a user