2067 lines
53 KiB
C#
2067 lines
53 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Sony.NP
|
|
{
|
|
// Token: 0x0200000C RID: 12
|
|
public class Commerce
|
|
{
|
|
// Token: 0x06000039 RID: 57
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxGetCategories(Commerce.GetCategoriesRequest request, out APIResult result);
|
|
|
|
// Token: 0x0600003A RID: 58
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxGetProducts(Commerce.GetProductsRequest request, out APIResult result);
|
|
|
|
// Token: 0x0600003B RID: 59
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxGetServiceEntitlements(Commerce.GetServiceEntitlementsRequest request, out APIResult result);
|
|
|
|
// Token: 0x0600003C RID: 60
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxConsumeServiceEntitlement(Commerce.ConsumeServiceEntitlementRequest request, out APIResult result);
|
|
|
|
// Token: 0x0600003D RID: 61
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxDisplayCategoryBrowseDialog(Commerce.DisplayCategoryBrowseDialogRequest request, out APIResult result);
|
|
|
|
// Token: 0x0600003E RID: 62
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxDisplayProductBrowseDialog(Commerce.DisplayProductBrowseDialogRequest request, out APIResult result);
|
|
|
|
// Token: 0x0600003F RID: 63
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxDisplayVoucherCodeInputDialog(Commerce.DisplayVoucherCodeInputDialogRequest request, out APIResult result);
|
|
|
|
// Token: 0x06000040 RID: 64
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxDisplayCheckoutDialog(Commerce.DisplayCheckoutDialogRequest request, out APIResult result);
|
|
|
|
// Token: 0x06000041 RID: 65
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxDisplayDownloadListDialog(Commerce.DisplayDownloadListDialogRequest request, out APIResult result);
|
|
|
|
// Token: 0x06000042 RID: 66
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxDisplayJoinPlusDialog(Commerce.DisplayJoinPlusDialogRequest request, out APIResult result);
|
|
|
|
// Token: 0x06000043 RID: 67
|
|
[DllImport("UnityNpToolkit2")]
|
|
private static extern int PrxSetPsStoreIconDisplayState(Commerce.SetPsStoreIconDisplayStateRequest request, out APIResult result);
|
|
|
|
// Token: 0x06000044 RID: 68 RVA: 0x000028FC File Offset: 0x000018FC
|
|
public static int GetCategories(Commerce.GetCategoriesRequest request, Commerce.CategoriesResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxGetCategories(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06000045 RID: 69 RVA: 0x00002950 File Offset: 0x00001950
|
|
public static int GetProducts(Commerce.GetProductsRequest request, Commerce.ProductsResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxGetProducts(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06000046 RID: 70 RVA: 0x000029A4 File Offset: 0x000019A4
|
|
public static int GetServiceEntitlements(Commerce.GetServiceEntitlementsRequest request, Commerce.ServiceEntitlementsResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxGetServiceEntitlements(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06000047 RID: 71 RVA: 0x000029F8 File Offset: 0x000019F8
|
|
public static int ConsumeServiceEntitlement(Commerce.ConsumeServiceEntitlementRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxConsumeServiceEntitlement(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06000048 RID: 72 RVA: 0x00002A4C File Offset: 0x00001A4C
|
|
public static int DisplayCategoryBrowseDialog(Commerce.DisplayCategoryBrowseDialogRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxDisplayCategoryBrowseDialog(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x06000049 RID: 73 RVA: 0x00002AA0 File Offset: 0x00001AA0
|
|
public static int DisplayProductBrowseDialog(Commerce.DisplayProductBrowseDialogRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxDisplayProductBrowseDialog(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600004A RID: 74 RVA: 0x00002AF4 File Offset: 0x00001AF4
|
|
public static int DisplayVoucherCodeInputDialog(Commerce.DisplayVoucherCodeInputDialogRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxDisplayVoucherCodeInputDialog(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600004B RID: 75 RVA: 0x00002B48 File Offset: 0x00001B48
|
|
public static int DisplayCheckoutDialog(Commerce.DisplayCheckoutDialogRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxDisplayCheckoutDialog(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600004C RID: 76 RVA: 0x00002B9C File Offset: 0x00001B9C
|
|
public static int DisplayDownloadListDialog(Commerce.DisplayDownloadListDialogRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxDisplayDownloadListDialog(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600004D RID: 77 RVA: 0x00002BF0 File Offset: 0x00001BF0
|
|
public static int DisplayJoinPlusDialog(Commerce.DisplayJoinPlusDialogRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxDisplayJoinPlusDialog(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0600004E RID: 78 RVA: 0x00002C44 File Offset: 0x00001C44
|
|
public static int SetPsStoreIconDisplayState(Commerce.SetPsStoreIconDisplayStateRequest request, Core.EmptyResponse response)
|
|
{
|
|
if (response.locked)
|
|
{
|
|
throw new NpToolkitException("Response object is already locked");
|
|
}
|
|
APIResult apiresult;
|
|
int num = Commerce.PrxSetPsStoreIconDisplayState(request, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
RequestBase.FinaliseRequest(request, response, num);
|
|
return num;
|
|
}
|
|
|
|
// Token: 0x0200000D RID: 13
|
|
public struct CategoryLabel
|
|
{
|
|
// Token: 0x17000016 RID: 22
|
|
// (get) Token: 0x06000050 RID: 80 RVA: 0x00002CA0 File Offset: 0x00001CA0
|
|
// (set) Token: 0x06000051 RID: 81 RVA: 0x00002CB8 File Offset: 0x00001CB8
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.internalValue;
|
|
}
|
|
set
|
|
{
|
|
int num = 16;
|
|
if (Main.initResult.sceSDKVersion < 72351744U)
|
|
{
|
|
num = 55;
|
|
}
|
|
if (value.Length > num)
|
|
{
|
|
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
|
|
}
|
|
this.internalValue = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000052 RID: 82 RVA: 0x00002D19 File Offset: 0x00001D19
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.ReadString(ref this.internalValue);
|
|
}
|
|
|
|
// Token: 0x0400001D RID: 29
|
|
public const int CATEGORY_LABEL_MAX_LEN = 16;
|
|
|
|
// Token: 0x0400001E RID: 30
|
|
public const int SDK4_0_CATEGORY_LABEL_MAX_LEN = 55;
|
|
|
|
// Token: 0x0400001F RID: 31
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 56)]
|
|
internal string internalValue;
|
|
}
|
|
|
|
// Token: 0x0200000E RID: 14
|
|
public struct ServiceEntitlementLabel
|
|
{
|
|
// Token: 0x17000017 RID: 23
|
|
// (get) Token: 0x06000053 RID: 83 RVA: 0x00002D2C File Offset: 0x00001D2C
|
|
// (set) Token: 0x06000054 RID: 84 RVA: 0x00002D44 File Offset: 0x00001D44
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.internalValue;
|
|
}
|
|
set
|
|
{
|
|
int num = 6;
|
|
if (Main.initResult.sceSDKVersion < 72351744U)
|
|
{
|
|
num = 31;
|
|
}
|
|
if (value.Length > num)
|
|
{
|
|
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
|
|
}
|
|
this.internalValue = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000055 RID: 85 RVA: 0x00002DA4 File Offset: 0x00001DA4
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.ReadString(ref this.internalValue);
|
|
}
|
|
|
|
// Token: 0x04000020 RID: 32
|
|
public const int SERVICE_ENTITLEMENT_LABEL_MAX_LEN = 6;
|
|
|
|
// Token: 0x04000021 RID: 33
|
|
public const int SDK4_0_SERVICE_ENTITLEMENT_LABEL_MAX_LEN = 31;
|
|
|
|
// Token: 0x04000022 RID: 34
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
|
|
internal string internalValue;
|
|
}
|
|
|
|
// Token: 0x0200000F RID: 15
|
|
public struct ProductLabel
|
|
{
|
|
// Token: 0x17000018 RID: 24
|
|
// (get) Token: 0x06000056 RID: 86 RVA: 0x00002DB4 File Offset: 0x00001DB4
|
|
// (set) Token: 0x06000057 RID: 87 RVA: 0x00002DCC File Offset: 0x00001DCC
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.internalValue;
|
|
}
|
|
set
|
|
{
|
|
int num = 16;
|
|
if (Main.initResult.sceSDKVersion < 72351744U)
|
|
{
|
|
num = 47;
|
|
}
|
|
if (value.Length > num)
|
|
{
|
|
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
|
|
}
|
|
this.internalValue = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000058 RID: 88 RVA: 0x00002E2D File Offset: 0x00001E2D
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.ReadString(ref this.internalValue);
|
|
}
|
|
|
|
// Token: 0x04000023 RID: 35
|
|
public const int PRODUCT_LABEL_MAX_LEN = 16;
|
|
|
|
// Token: 0x04000024 RID: 36
|
|
public const int SDK4_0_PRODUCT_LABEL_MAX_LEN = 47;
|
|
|
|
// Token: 0x04000025 RID: 37
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 48)]
|
|
internal string internalValue;
|
|
}
|
|
|
|
// Token: 0x02000010 RID: 16
|
|
public struct SkuLabel
|
|
{
|
|
// Token: 0x17000019 RID: 25
|
|
// (get) Token: 0x06000059 RID: 89 RVA: 0x00002E40 File Offset: 0x00001E40
|
|
// (set) Token: 0x0600005A RID: 90 RVA: 0x00002E58 File Offset: 0x00001E58
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.internalValue;
|
|
}
|
|
set
|
|
{
|
|
int num = 4;
|
|
if (Main.initResult.sceSDKVersion < 72351744U)
|
|
{
|
|
num = 55;
|
|
}
|
|
if (value.Length > num)
|
|
{
|
|
throw new NpToolkitException("The size of the label is more than " + num + " characters.");
|
|
}
|
|
this.internalValue = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600005B RID: 91 RVA: 0x00002EB8 File Offset: 0x00001EB8
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.ReadString(ref this.internalValue);
|
|
}
|
|
|
|
// Token: 0x04000026 RID: 38
|
|
public const int SKU_LABEL_MAX_LEN = 4;
|
|
|
|
// Token: 0x04000027 RID: 39
|
|
public const int SDK4_0_SKU_LABEL_MAX_LEN = 55;
|
|
|
|
// Token: 0x04000028 RID: 40
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 56)]
|
|
internal string internalValue;
|
|
}
|
|
|
|
// Token: 0x02000011 RID: 17
|
|
public struct DownloadListTarget
|
|
{
|
|
// Token: 0x1700001A RID: 26
|
|
// (get) Token: 0x0600005C RID: 92 RVA: 0x00002EC8 File Offset: 0x00001EC8
|
|
// (set) Token: 0x0600005D RID: 93 RVA: 0x00002EE0 File Offset: 0x00001EE0
|
|
public Commerce.ProductLabel ProductLabel
|
|
{
|
|
get
|
|
{
|
|
return this.productLabel;
|
|
}
|
|
set
|
|
{
|
|
this.productLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700001B RID: 27
|
|
// (get) Token: 0x0600005E RID: 94 RVA: 0x00002EEC File Offset: 0x00001EEC
|
|
// (set) Token: 0x0600005F RID: 95 RVA: 0x00002F04 File Offset: 0x00001F04
|
|
public Commerce.SkuLabel SkuLabel
|
|
{
|
|
get
|
|
{
|
|
return this.skuLabel;
|
|
}
|
|
set
|
|
{
|
|
this.skuLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000029 RID: 41
|
|
internal Commerce.ProductLabel productLabel;
|
|
|
|
// Token: 0x0400002A RID: 42
|
|
internal Commerce.SkuLabel skuLabel;
|
|
}
|
|
|
|
// Token: 0x02000012 RID: 18
|
|
public struct CheckoutTarget
|
|
{
|
|
// Token: 0x1700001C RID: 28
|
|
// (get) Token: 0x06000060 RID: 96 RVA: 0x00002F10 File Offset: 0x00001F10
|
|
// (set) Token: 0x06000061 RID: 97 RVA: 0x00002F28 File Offset: 0x00001F28
|
|
public Commerce.ProductLabel ProductLabel
|
|
{
|
|
get
|
|
{
|
|
return this.productLabel;
|
|
}
|
|
set
|
|
{
|
|
this.productLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700001D RID: 29
|
|
// (get) Token: 0x06000062 RID: 98 RVA: 0x00002F34 File Offset: 0x00001F34
|
|
// (set) Token: 0x06000063 RID: 99 RVA: 0x00002F4C File Offset: 0x00001F4C
|
|
public Commerce.SkuLabel SkuLabel
|
|
{
|
|
get
|
|
{
|
|
return this.skuLabel;
|
|
}
|
|
set
|
|
{
|
|
this.skuLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700001E RID: 30
|
|
// (get) Token: 0x06000064 RID: 100 RVA: 0x00002F58 File Offset: 0x00001F58
|
|
// (set) Token: 0x06000065 RID: 101 RVA: 0x00002F70 File Offset: 0x00001F70
|
|
public uint ServiceLabel
|
|
{
|
|
get
|
|
{
|
|
return this.serviceLabel;
|
|
}
|
|
set
|
|
{
|
|
this.serviceLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400002B RID: 43
|
|
public const uint NP_INVALID_SERVICE_LABEL = 4294967295U;
|
|
|
|
// Token: 0x0400002C RID: 44
|
|
internal Commerce.ProductLabel productLabel;
|
|
|
|
// Token: 0x0400002D RID: 45
|
|
internal Commerce.SkuLabel skuLabel;
|
|
|
|
// Token: 0x0400002E RID: 46
|
|
internal uint serviceLabel;
|
|
}
|
|
|
|
// Token: 0x02000013 RID: 19
|
|
public class SubCategory
|
|
{
|
|
// Token: 0x1700001F RID: 31
|
|
// (get) Token: 0x06000066 RID: 102 RVA: 0x00002F7C File Offset: 0x00001F7C
|
|
public string CategoryName
|
|
{
|
|
get
|
|
{
|
|
return this.categoryName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000020 RID: 32
|
|
// (get) Token: 0x06000067 RID: 103 RVA: 0x00002F94 File Offset: 0x00001F94
|
|
public string CategoryDescription
|
|
{
|
|
get
|
|
{
|
|
return this.categoryDescription;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000021 RID: 33
|
|
// (get) Token: 0x06000068 RID: 104 RVA: 0x00002FAC File Offset: 0x00001FAC
|
|
public string ImageUrl
|
|
{
|
|
get
|
|
{
|
|
return this.imageUrl;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000022 RID: 34
|
|
// (get) Token: 0x06000069 RID: 105 RVA: 0x00002FC4 File Offset: 0x00001FC4
|
|
public Commerce.CategoryLabel CategoryLabel
|
|
{
|
|
get
|
|
{
|
|
return this.categoryLabel;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600006A RID: 106 RVA: 0x00002FDC File Offset: 0x00001FDC
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SubCategoryBegin);
|
|
buffer.ReadString(ref this.categoryName);
|
|
buffer.ReadString(ref this.categoryDescription);
|
|
buffer.ReadString(ref this.imageUrl);
|
|
this.categoryLabel.Read(buffer);
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SubCategoryEnd);
|
|
}
|
|
|
|
// Token: 0x0400002F RID: 47
|
|
internal string categoryName;
|
|
|
|
// Token: 0x04000030 RID: 48
|
|
internal string categoryDescription;
|
|
|
|
// Token: 0x04000031 RID: 49
|
|
internal string imageUrl;
|
|
|
|
// Token: 0x04000032 RID: 50
|
|
internal Commerce.CategoryLabel categoryLabel;
|
|
}
|
|
|
|
// Token: 0x02000014 RID: 20
|
|
public class Category
|
|
{
|
|
// Token: 0x17000023 RID: 35
|
|
// (get) Token: 0x0600006C RID: 108 RVA: 0x00003038 File Offset: 0x00002038
|
|
public Commerce.SubCategory[] SubCategories
|
|
{
|
|
get
|
|
{
|
|
return this.subCategories;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000024 RID: 36
|
|
// (get) Token: 0x0600006D RID: 109 RVA: 0x00003050 File Offset: 0x00002050
|
|
public ulong CountOfProducts
|
|
{
|
|
get
|
|
{
|
|
return this.countOfProducts;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000025 RID: 37
|
|
// (get) Token: 0x0600006E RID: 110 RVA: 0x00003068 File Offset: 0x00002068
|
|
public string CategoryName
|
|
{
|
|
get
|
|
{
|
|
return this.categoryName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000026 RID: 38
|
|
// (get) Token: 0x0600006F RID: 111 RVA: 0x00003080 File Offset: 0x00002080
|
|
public string CategoryDescription
|
|
{
|
|
get
|
|
{
|
|
return this.categoryDescription;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000027 RID: 39
|
|
// (get) Token: 0x06000070 RID: 112 RVA: 0x00003098 File Offset: 0x00002098
|
|
public string ImageUrl
|
|
{
|
|
get
|
|
{
|
|
return this.imageUrl;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000028 RID: 40
|
|
// (get) Token: 0x06000071 RID: 113 RVA: 0x000030B0 File Offset: 0x000020B0
|
|
public Commerce.CategoryLabel CategoryLabel
|
|
{
|
|
get
|
|
{
|
|
return this.categoryLabel;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000072 RID: 114 RVA: 0x000030C8 File Offset: 0x000020C8
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoryBegin);
|
|
ulong num = buffer.ReadUInt64();
|
|
if (num > 0UL)
|
|
{
|
|
this.subCategories = new Commerce.SubCategory[num];
|
|
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
|
|
{
|
|
checked
|
|
{
|
|
this.subCategories[(int)((IntPtr)num2)] = new Commerce.SubCategory();
|
|
this.subCategories[(int)((IntPtr)num2)].Read(buffer);
|
|
}
|
|
}
|
|
}
|
|
this.countOfProducts = buffer.ReadUInt64();
|
|
buffer.ReadString(ref this.categoryName);
|
|
buffer.ReadString(ref this.categoryDescription);
|
|
buffer.ReadString(ref this.imageUrl);
|
|
this.categoryLabel.Read(buffer);
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoryEnd);
|
|
}
|
|
|
|
// Token: 0x04000033 RID: 51
|
|
internal Commerce.SubCategory[] subCategories;
|
|
|
|
// Token: 0x04000034 RID: 52
|
|
internal ulong countOfProducts;
|
|
|
|
// Token: 0x04000035 RID: 53
|
|
internal string categoryName;
|
|
|
|
// Token: 0x04000036 RID: 54
|
|
internal string categoryDescription;
|
|
|
|
// Token: 0x04000037 RID: 55
|
|
internal string imageUrl;
|
|
|
|
// Token: 0x04000038 RID: 56
|
|
internal Commerce.CategoryLabel categoryLabel;
|
|
}
|
|
|
|
// Token: 0x02000015 RID: 21
|
|
public class Product
|
|
{
|
|
// Token: 0x17000029 RID: 41
|
|
// (get) Token: 0x06000074 RID: 116 RVA: 0x00003184 File Offset: 0x00002184
|
|
public Commerce.ProductLabel ProductLabel
|
|
{
|
|
get
|
|
{
|
|
return this.productLabel;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700002A RID: 42
|
|
// (get) Token: 0x06000075 RID: 117 RVA: 0x0000319C File Offset: 0x0000219C
|
|
public string ProductName
|
|
{
|
|
get
|
|
{
|
|
return this.productName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700002B RID: 43
|
|
// (get) Token: 0x06000076 RID: 118 RVA: 0x000031B4 File Offset: 0x000021B4
|
|
public string ImageUrl
|
|
{
|
|
get
|
|
{
|
|
return this.imageUrl;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700002C RID: 44
|
|
// (get) Token: 0x06000077 RID: 119 RVA: 0x000031CC File Offset: 0x000021CC
|
|
public bool HasDetails
|
|
{
|
|
get
|
|
{
|
|
return this.hasDetails;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700002D RID: 45
|
|
// (get) Token: 0x06000078 RID: 120 RVA: 0x000031E4 File Offset: 0x000021E4
|
|
public Commerce.ProductDetails Details
|
|
{
|
|
get
|
|
{
|
|
return this.details;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000079 RID: 121 RVA: 0x000031FC File Offset: 0x000021FC
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductBegin);
|
|
this.productLabel.Read(buffer);
|
|
buffer.ReadString(ref this.productName);
|
|
buffer.ReadString(ref this.imageUrl);
|
|
this.hasDetails = buffer.ReadBool();
|
|
if (this.hasDetails)
|
|
{
|
|
this.details = new Commerce.ProductDetails();
|
|
this.details.Read(buffer);
|
|
}
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductEnd);
|
|
}
|
|
|
|
// Token: 0x04000039 RID: 57
|
|
internal Commerce.ProductLabel productLabel;
|
|
|
|
// Token: 0x0400003A RID: 58
|
|
internal string productName;
|
|
|
|
// Token: 0x0400003B RID: 59
|
|
internal string imageUrl;
|
|
|
|
// Token: 0x0400003C RID: 60
|
|
internal bool hasDetails;
|
|
|
|
// Token: 0x0400003D RID: 61
|
|
internal Commerce.ProductDetails details;
|
|
}
|
|
|
|
// Token: 0x02000016 RID: 22
|
|
public enum PurchasabilityStatus
|
|
{
|
|
// Token: 0x0400003F RID: 63
|
|
NotPurchased,
|
|
// Token: 0x04000040 RID: 64
|
|
PurchasedCanPurchaseAgain,
|
|
// Token: 0x04000041 RID: 65
|
|
PurchasedCannotPurchaseAgain
|
|
}
|
|
|
|
// Token: 0x02000017 RID: 23
|
|
public class RatingDescriptor
|
|
{
|
|
// Token: 0x1700002E RID: 46
|
|
// (get) Token: 0x0600007B RID: 123 RVA: 0x00003280 File Offset: 0x00002280
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700002F RID: 47
|
|
// (get) Token: 0x0600007C RID: 124 RVA: 0x00003298 File Offset: 0x00002298
|
|
public string ImageUrl
|
|
{
|
|
get
|
|
{
|
|
return this.imageUrl;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600007D RID: 125 RVA: 0x000032B0 File Offset: 0x000022B0
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.ReadString(ref this.name);
|
|
buffer.ReadString(ref this.imageUrl);
|
|
}
|
|
|
|
// Token: 0x04000042 RID: 66
|
|
internal string name;
|
|
|
|
// Token: 0x04000043 RID: 67
|
|
internal string imageUrl;
|
|
}
|
|
|
|
// Token: 0x02000018 RID: 24
|
|
public class ProductDetails
|
|
{
|
|
// Token: 0x17000030 RID: 48
|
|
// (get) Token: 0x0600007F RID: 127 RVA: 0x000032D8 File Offset: 0x000022D8
|
|
public DateTime ReleaseDate
|
|
{
|
|
get
|
|
{
|
|
return this.releaseDate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000031 RID: 49
|
|
// (get) Token: 0x06000080 RID: 128 RVA: 0x000032F0 File Offset: 0x000022F0
|
|
public string LongDescription
|
|
{
|
|
get
|
|
{
|
|
return this.longDescription;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000032 RID: 50
|
|
// (get) Token: 0x06000081 RID: 129 RVA: 0x00003308 File Offset: 0x00002308
|
|
public string SpName
|
|
{
|
|
get
|
|
{
|
|
return this.spName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000033 RID: 51
|
|
// (get) Token: 0x06000082 RID: 130 RVA: 0x00003320 File Offset: 0x00002320
|
|
public string RatingSystemId
|
|
{
|
|
get
|
|
{
|
|
return this.ratingSystemId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000034 RID: 52
|
|
// (get) Token: 0x06000083 RID: 131 RVA: 0x00003338 File Offset: 0x00002338
|
|
public string RatingImageUrl
|
|
{
|
|
get
|
|
{
|
|
return this.ratingImageUrl;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000035 RID: 53
|
|
// (get) Token: 0x06000084 RID: 132 RVA: 0x00003350 File Offset: 0x00002350
|
|
public Commerce.RatingDescriptor[] RatingDescriptors
|
|
{
|
|
get
|
|
{
|
|
return this.ratingDescriptors;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000036 RID: 54
|
|
// (get) Token: 0x06000085 RID: 133 RVA: 0x00003368 File Offset: 0x00002368
|
|
public Commerce.SkuInfo[] Skuinfo
|
|
{
|
|
get
|
|
{
|
|
return this.skuinfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000037 RID: 55
|
|
// (get) Token: 0x06000086 RID: 134 RVA: 0x00003380 File Offset: 0x00002380
|
|
public Commerce.PurchasabilityStatus PurchasabilityStatus
|
|
{
|
|
get
|
|
{
|
|
return this.purchasabilityStatus;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000038 RID: 56
|
|
// (get) Token: 0x06000087 RID: 135 RVA: 0x00003398 File Offset: 0x00002398
|
|
public uint StarRatingsTotal
|
|
{
|
|
get
|
|
{
|
|
return this.starRatingsTotal;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000039 RID: 57
|
|
// (get) Token: 0x06000088 RID: 136 RVA: 0x000033B0 File Offset: 0x000023B0
|
|
public double StarRatingScore
|
|
{
|
|
get
|
|
{
|
|
return this.starRatingScore;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000089 RID: 137 RVA: 0x000033C8 File Offset: 0x000023C8
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductDetailsBegin);
|
|
this.releaseDate = Core.ReadRtcTick(buffer);
|
|
buffer.ReadString(ref this.longDescription);
|
|
buffer.ReadString(ref this.spName);
|
|
buffer.ReadString(ref this.ratingSystemId);
|
|
buffer.ReadString(ref this.ratingImageUrl);
|
|
ulong num = buffer.ReadUInt64();
|
|
if (num > 0UL)
|
|
{
|
|
this.ratingDescriptors = new Commerce.RatingDescriptor[num];
|
|
for (int i = 0; i < (int)num; i++)
|
|
{
|
|
this.ratingDescriptors[i] = new Commerce.RatingDescriptor();
|
|
this.ratingDescriptors[i].Read(buffer);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.ratingDescriptors = null;
|
|
}
|
|
ulong num2 = buffer.ReadUInt64();
|
|
if (num2 > 0UL)
|
|
{
|
|
this.skuinfo = new Commerce.SkuInfo[num2];
|
|
for (int i = 0; i < (int)num2; i++)
|
|
{
|
|
this.skuinfo[i] = new Commerce.SkuInfo();
|
|
this.skuinfo[i].Read(buffer);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.skuinfo = null;
|
|
}
|
|
this.purchasabilityStatus = (Commerce.PurchasabilityStatus)buffer.ReadUInt32();
|
|
this.starRatingsTotal = buffer.ReadUInt32();
|
|
this.starRatingScore = buffer.ReadDouble();
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductDetailsEnd);
|
|
}
|
|
|
|
// Token: 0x04000044 RID: 68
|
|
internal DateTime releaseDate;
|
|
|
|
// Token: 0x04000045 RID: 69
|
|
internal string longDescription;
|
|
|
|
// Token: 0x04000046 RID: 70
|
|
internal string spName;
|
|
|
|
// Token: 0x04000047 RID: 71
|
|
internal string ratingSystemId;
|
|
|
|
// Token: 0x04000048 RID: 72
|
|
internal string ratingImageUrl;
|
|
|
|
// Token: 0x04000049 RID: 73
|
|
internal Commerce.RatingDescriptor[] ratingDescriptors;
|
|
|
|
// Token: 0x0400004A RID: 74
|
|
internal Commerce.SkuInfo[] skuinfo;
|
|
|
|
// Token: 0x0400004B RID: 75
|
|
internal Commerce.PurchasabilityStatus purchasabilityStatus;
|
|
|
|
// Token: 0x0400004C RID: 76
|
|
internal uint starRatingsTotal;
|
|
|
|
// Token: 0x0400004D RID: 77
|
|
internal double starRatingScore;
|
|
}
|
|
|
|
// Token: 0x02000019 RID: 25
|
|
public enum SkuType
|
|
{
|
|
// Token: 0x0400004F RID: 79
|
|
Invalid,
|
|
// Token: 0x04000050 RID: 80
|
|
Standard,
|
|
// Token: 0x04000051 RID: 81
|
|
Preorder
|
|
}
|
|
|
|
// Token: 0x0200001A RID: 26
|
|
public class SkuInfo
|
|
{
|
|
// Token: 0x1700003A RID: 58
|
|
// (get) Token: 0x0600008B RID: 139 RVA: 0x0000350C File Offset: 0x0000250C
|
|
public Commerce.SkuType Type
|
|
{
|
|
get
|
|
{
|
|
return this.type;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700003B RID: 59
|
|
// (get) Token: 0x0600008C RID: 140 RVA: 0x00003524 File Offset: 0x00002524
|
|
public Commerce.PurchasabilityStatus PurchasabilityStatus
|
|
{
|
|
get
|
|
{
|
|
return this.purchasabilityStatus;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700003C RID: 60
|
|
// (get) Token: 0x0600008D RID: 141 RVA: 0x0000353C File Offset: 0x0000253C
|
|
public Commerce.SkuLabel Label
|
|
{
|
|
get
|
|
{
|
|
return this.label;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700003D RID: 61
|
|
// (get) Token: 0x0600008E RID: 142 RVA: 0x00003554 File Offset: 0x00002554
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700003E RID: 62
|
|
// (get) Token: 0x0600008F RID: 143 RVA: 0x0000356C File Offset: 0x0000256C
|
|
public string Price
|
|
{
|
|
get
|
|
{
|
|
return this.price;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700003F RID: 63
|
|
// (get) Token: 0x06000090 RID: 144 RVA: 0x00003584 File Offset: 0x00002584
|
|
public ulong IntPrice
|
|
{
|
|
get
|
|
{
|
|
return this.intPrice;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000040 RID: 64
|
|
// (get) Token: 0x06000091 RID: 145 RVA: 0x0000359C File Offset: 0x0000259C
|
|
public uint ConsumableUseCount
|
|
{
|
|
get
|
|
{
|
|
return this.consumableUseCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000092 RID: 146 RVA: 0x000035B4 File Offset: 0x000025B4
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SkuInfoBegin);
|
|
this.type = (Commerce.SkuType)buffer.ReadUInt32();
|
|
this.purchasabilityStatus = (Commerce.PurchasabilityStatus)buffer.ReadUInt32();
|
|
this.label.Read(buffer);
|
|
buffer.ReadString(ref this.name);
|
|
buffer.ReadString(ref this.price);
|
|
this.intPrice = buffer.ReadUInt64();
|
|
this.consumableUseCount = buffer.ReadUInt32();
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.SkuInfoEnd);
|
|
}
|
|
|
|
// Token: 0x04000052 RID: 82
|
|
internal Commerce.SkuType type;
|
|
|
|
// Token: 0x04000053 RID: 83
|
|
internal Commerce.PurchasabilityStatus purchasabilityStatus;
|
|
|
|
// Token: 0x04000054 RID: 84
|
|
internal Commerce.SkuLabel label;
|
|
|
|
// Token: 0x04000055 RID: 85
|
|
internal string name;
|
|
|
|
// Token: 0x04000056 RID: 86
|
|
internal string price;
|
|
|
|
// Token: 0x04000057 RID: 87
|
|
internal ulong intPrice;
|
|
|
|
// Token: 0x04000058 RID: 88
|
|
internal uint consumableUseCount;
|
|
}
|
|
|
|
// Token: 0x0200001B RID: 27
|
|
public enum EntitlementType
|
|
{
|
|
// Token: 0x0400005A RID: 90
|
|
Invalid,
|
|
// Token: 0x0400005B RID: 91
|
|
Service,
|
|
// Token: 0x0400005C RID: 92
|
|
ServiceConsumable,
|
|
// Token: 0x0400005D RID: 93
|
|
Unified
|
|
}
|
|
|
|
// Token: 0x0200001C RID: 28
|
|
public class ServiceEntitlement
|
|
{
|
|
// Token: 0x17000041 RID: 65
|
|
// (get) Token: 0x06000094 RID: 148 RVA: 0x00003634 File Offset: 0x00002634
|
|
public Commerce.ServiceEntitlementLabel EntitlementLabel
|
|
{
|
|
get
|
|
{
|
|
return this.entitlementLabel;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000042 RID: 66
|
|
// (get) Token: 0x06000095 RID: 149 RVA: 0x0000364C File Offset: 0x0000264C
|
|
public DateTime CreatedDate
|
|
{
|
|
get
|
|
{
|
|
return this.createdDate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000043 RID: 67
|
|
// (get) Token: 0x06000096 RID: 150 RVA: 0x00003664 File Offset: 0x00002664
|
|
public DateTime ExpireDate
|
|
{
|
|
get
|
|
{
|
|
return this.expireDate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000044 RID: 68
|
|
// (get) Token: 0x06000097 RID: 151 RVA: 0x0000367C File Offset: 0x0000267C
|
|
public long RemainingCount
|
|
{
|
|
get
|
|
{
|
|
return this.remainingCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000045 RID: 69
|
|
// (get) Token: 0x06000098 RID: 152 RVA: 0x00003694 File Offset: 0x00002694
|
|
public uint ConsumedCount
|
|
{
|
|
get
|
|
{
|
|
return this.consumedCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000046 RID: 70
|
|
// (get) Token: 0x06000099 RID: 153 RVA: 0x000036AC File Offset: 0x000026AC
|
|
public Commerce.EntitlementType Type
|
|
{
|
|
get
|
|
{
|
|
return this.type;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600009A RID: 154 RVA: 0x000036C4 File Offset: 0x000026C4
|
|
internal void Read(MemoryBuffer buffer)
|
|
{
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementBegin);
|
|
this.entitlementLabel.Read(buffer);
|
|
this.createdDate = Core.ReadRtcTick(buffer);
|
|
this.expireDate = Core.ReadRtcTick(buffer);
|
|
this.remainingCount = buffer.ReadInt64();
|
|
this.consumedCount = buffer.ReadUInt32();
|
|
this.type = (Commerce.EntitlementType)buffer.ReadUInt32();
|
|
buffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementEnd);
|
|
}
|
|
|
|
// Token: 0x0400005E RID: 94
|
|
internal Commerce.ServiceEntitlementLabel entitlementLabel;
|
|
|
|
// Token: 0x0400005F RID: 95
|
|
internal DateTime createdDate;
|
|
|
|
// Token: 0x04000060 RID: 96
|
|
internal DateTime expireDate;
|
|
|
|
// Token: 0x04000061 RID: 97
|
|
internal long remainingCount;
|
|
|
|
// Token: 0x04000062 RID: 98
|
|
internal uint consumedCount;
|
|
|
|
// Token: 0x04000063 RID: 99
|
|
internal Commerce.EntitlementType type;
|
|
}
|
|
|
|
// Token: 0x0200001D RID: 29
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class GetCategoriesRequest : RequestBase
|
|
{
|
|
// Token: 0x17000047 RID: 71
|
|
// (get) Token: 0x0600009C RID: 156 RVA: 0x00003738 File Offset: 0x00002738
|
|
// (set) Token: 0x0600009D RID: 157 RVA: 0x00003784 File Offset: 0x00002784
|
|
public Commerce.CategoryLabel[] CategoryLabels
|
|
{
|
|
get
|
|
{
|
|
Commerce.CategoryLabel[] array;
|
|
if (this.numCategories == 0UL)
|
|
{
|
|
array = null;
|
|
}
|
|
else
|
|
{
|
|
Commerce.CategoryLabel[] array2 = new Commerce.CategoryLabel[this.numCategories];
|
|
Array.Copy(this.categoryLabels, array2, (int)this.numCategories);
|
|
array = array2;
|
|
}
|
|
return array;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
if (value.Length > 8)
|
|
{
|
|
throw new NpToolkitException("The size of the array is more than " + 8);
|
|
}
|
|
value.CopyTo(this.categoryLabels, 0);
|
|
this.numCategories = (ulong)value.Length;
|
|
}
|
|
else
|
|
{
|
|
this.numCategories = 0UL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600009E RID: 158 RVA: 0x000037E4 File Offset: 0x000027E4
|
|
public GetCategoriesRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceGetCategories)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000064 RID: 100
|
|
public const int MAX_CATEGORIES = 8;
|
|
|
|
// Token: 0x04000065 RID: 101
|
|
internal ulong numCategories;
|
|
|
|
// Token: 0x04000066 RID: 102
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
|
|
internal Commerce.CategoryLabel[] categoryLabels = new Commerce.CategoryLabel[8];
|
|
}
|
|
|
|
// Token: 0x0200001E RID: 30
|
|
public enum ProductSortOrders
|
|
{
|
|
// Token: 0x04000068 RID: 104
|
|
DefaultOrder,
|
|
// Token: 0x04000069 RID: 105
|
|
Name,
|
|
// Token: 0x0400006A RID: 106
|
|
Price,
|
|
// Token: 0x0400006B RID: 107
|
|
ReleaseDate
|
|
}
|
|
|
|
// Token: 0x0200001F RID: 31
|
|
public enum ProductSortDirections
|
|
{
|
|
// Token: 0x0400006D RID: 109
|
|
Ascending,
|
|
// Token: 0x0400006E RID: 110
|
|
Descending
|
|
}
|
|
|
|
// Token: 0x02000020 RID: 32
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class GetProductsRequest : RequestBase
|
|
{
|
|
// Token: 0x17000048 RID: 72
|
|
// (get) Token: 0x0600009F RID: 159 RVA: 0x00003800 File Offset: 0x00002800
|
|
// (set) Token: 0x060000A0 RID: 160 RVA: 0x0000384C File Offset: 0x0000284C
|
|
public Commerce.ProductLabel[] ProductLabels
|
|
{
|
|
get
|
|
{
|
|
Commerce.ProductLabel[] array;
|
|
if (this.numProducts == 0UL)
|
|
{
|
|
array = null;
|
|
}
|
|
else
|
|
{
|
|
Commerce.ProductLabel[] array2 = new Commerce.ProductLabel[this.numProducts];
|
|
Array.Copy(this.productLabels, array2, (int)this.numProducts);
|
|
array = array2;
|
|
}
|
|
return array;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
if (value.Length > 8)
|
|
{
|
|
throw new NpToolkitException("The size of the array is more than " + 32);
|
|
}
|
|
value.CopyTo(this.productLabels, 0);
|
|
this.numProducts = (ulong)value.Length;
|
|
}
|
|
else
|
|
{
|
|
this.numProducts = 0UL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000049 RID: 73
|
|
// (get) Token: 0x060000A1 RID: 161 RVA: 0x000038B0 File Offset: 0x000028B0
|
|
// (set) Token: 0x060000A2 RID: 162 RVA: 0x000038FC File Offset: 0x000028FC
|
|
public Commerce.CategoryLabel[] CategoryLabels
|
|
{
|
|
get
|
|
{
|
|
Commerce.CategoryLabel[] array;
|
|
if (this.numCategories == 0UL)
|
|
{
|
|
array = null;
|
|
}
|
|
else
|
|
{
|
|
Commerce.CategoryLabel[] array2 = new Commerce.CategoryLabel[this.numCategories];
|
|
Array.Copy(this.categoryLabels, array2, (int)this.numCategories);
|
|
array = array2;
|
|
}
|
|
return array;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
if (value.Length > 8)
|
|
{
|
|
throw new NpToolkitException("The size of the array is more than " + 8);
|
|
}
|
|
value.CopyTo(this.categoryLabels, 0);
|
|
this.numCategories = (ulong)value.Length;
|
|
}
|
|
else
|
|
{
|
|
this.numCategories = 0UL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004A RID: 74
|
|
// (get) Token: 0x060000A3 RID: 163 RVA: 0x0000395C File Offset: 0x0000295C
|
|
// (set) Token: 0x060000A4 RID: 164 RVA: 0x00003974 File Offset: 0x00002974
|
|
public uint Offset
|
|
{
|
|
get
|
|
{
|
|
return this.offset;
|
|
}
|
|
set
|
|
{
|
|
this.offset = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004B RID: 75
|
|
// (get) Token: 0x060000A5 RID: 165 RVA: 0x00003980 File Offset: 0x00002980
|
|
// (set) Token: 0x060000A6 RID: 166 RVA: 0x00003998 File Offset: 0x00002998
|
|
public uint PageSize
|
|
{
|
|
get
|
|
{
|
|
return this.pageSize;
|
|
}
|
|
set
|
|
{
|
|
this.pageSize = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004C RID: 76
|
|
// (get) Token: 0x060000A7 RID: 167 RVA: 0x000039A4 File Offset: 0x000029A4
|
|
// (set) Token: 0x060000A8 RID: 168 RVA: 0x000039BC File Offset: 0x000029BC
|
|
public Commerce.ProductSortOrders SortOrder
|
|
{
|
|
get
|
|
{
|
|
return this.sortOrder;
|
|
}
|
|
set
|
|
{
|
|
this.sortOrder = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004D RID: 77
|
|
// (get) Token: 0x060000A9 RID: 169 RVA: 0x000039C8 File Offset: 0x000029C8
|
|
// (set) Token: 0x060000AA RID: 170 RVA: 0x000039E0 File Offset: 0x000029E0
|
|
public Commerce.ProductSortDirections SortDirection
|
|
{
|
|
get
|
|
{
|
|
return this.sortDirection;
|
|
}
|
|
set
|
|
{
|
|
this.sortDirection = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004E RID: 78
|
|
// (get) Token: 0x060000AB RID: 171 RVA: 0x000039EC File Offset: 0x000029EC
|
|
// (set) Token: 0x060000AC RID: 172 RVA: 0x00003A04 File Offset: 0x00002A04
|
|
public bool KeepHtmlTags
|
|
{
|
|
get
|
|
{
|
|
return this.keepHtmlTags;
|
|
}
|
|
set
|
|
{
|
|
this.keepHtmlTags = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700004F RID: 79
|
|
// (get) Token: 0x060000AD RID: 173 RVA: 0x00003A10 File Offset: 0x00002A10
|
|
// (set) Token: 0x060000AE RID: 174 RVA: 0x00003A28 File Offset: 0x00002A28
|
|
public bool UseCurrencySymbol
|
|
{
|
|
get
|
|
{
|
|
return this.useCurrencySymbol;
|
|
}
|
|
set
|
|
{
|
|
this.useCurrencySymbol = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000AF RID: 175 RVA: 0x00003A32 File Offset: 0x00002A32
|
|
public GetProductsRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceGetProducts)
|
|
{
|
|
this.pageSize = 32U;
|
|
}
|
|
|
|
// Token: 0x0400006F RID: 111
|
|
public const int MAX_PRODUCTS = 32;
|
|
|
|
// Token: 0x04000070 RID: 112
|
|
public const int MAX_CATEGORIES = 8;
|
|
|
|
// Token: 0x04000071 RID: 113
|
|
public const int DEFAULT_PAGE_SIZE = 32;
|
|
|
|
// Token: 0x04000072 RID: 114
|
|
internal ulong numProducts;
|
|
|
|
// Token: 0x04000073 RID: 115
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
|
internal Commerce.ProductLabel[] productLabels = new Commerce.ProductLabel[32];
|
|
|
|
// Token: 0x04000074 RID: 116
|
|
internal ulong numCategories;
|
|
|
|
// Token: 0x04000075 RID: 117
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
|
|
internal Commerce.CategoryLabel[] categoryLabels = new Commerce.CategoryLabel[8];
|
|
|
|
// Token: 0x04000076 RID: 118
|
|
internal uint offset;
|
|
|
|
// Token: 0x04000077 RID: 119
|
|
internal uint pageSize;
|
|
|
|
// Token: 0x04000078 RID: 120
|
|
internal Commerce.ProductSortOrders sortOrder;
|
|
|
|
// Token: 0x04000079 RID: 121
|
|
internal Commerce.ProductSortDirections sortDirection;
|
|
|
|
// Token: 0x0400007A RID: 122
|
|
[MarshalAs(UnmanagedType.I1)]
|
|
internal bool keepHtmlTags;
|
|
|
|
// Token: 0x0400007B RID: 123
|
|
[MarshalAs(UnmanagedType.I1)]
|
|
internal bool useCurrencySymbol;
|
|
}
|
|
|
|
// Token: 0x02000021 RID: 33
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class GetServiceEntitlementsRequest : RequestBase
|
|
{
|
|
// Token: 0x17000050 RID: 80
|
|
// (get) Token: 0x060000B0 RID: 176 RVA: 0x00003A64 File Offset: 0x00002A64
|
|
// (set) Token: 0x060000B1 RID: 177 RVA: 0x00003A7C File Offset: 0x00002A7C
|
|
public uint Offset
|
|
{
|
|
get
|
|
{
|
|
return this.offset;
|
|
}
|
|
set
|
|
{
|
|
this.offset = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000051 RID: 81
|
|
// (get) Token: 0x060000B2 RID: 178 RVA: 0x00003A88 File Offset: 0x00002A88
|
|
// (set) Token: 0x060000B3 RID: 179 RVA: 0x00003AA0 File Offset: 0x00002AA0
|
|
public uint PageSize
|
|
{
|
|
get
|
|
{
|
|
return this.pageSize;
|
|
}
|
|
set
|
|
{
|
|
this.pageSize = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000B4 RID: 180 RVA: 0x00003AAA File Offset: 0x00002AAA
|
|
public GetServiceEntitlementsRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceGetServiceEntitlements)
|
|
{
|
|
this.pageSize = 64U;
|
|
}
|
|
|
|
// Token: 0x0400007C RID: 124
|
|
public const int DEFAULT_PAGE_SIZE = 64;
|
|
|
|
// Token: 0x0400007D RID: 125
|
|
internal uint offset;
|
|
|
|
// Token: 0x0400007E RID: 126
|
|
internal uint pageSize;
|
|
}
|
|
|
|
// Token: 0x02000022 RID: 34
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class ConsumeServiceEntitlementRequest : RequestBase
|
|
{
|
|
// Token: 0x17000052 RID: 82
|
|
// (get) Token: 0x060000B5 RID: 181 RVA: 0x00003AC4 File Offset: 0x00002AC4
|
|
// (set) Token: 0x060000B6 RID: 182 RVA: 0x00003ADC File Offset: 0x00002ADC
|
|
public Commerce.ServiceEntitlementLabel EntitlementLabel
|
|
{
|
|
get
|
|
{
|
|
return this.entitlementLabel;
|
|
}
|
|
set
|
|
{
|
|
this.entitlementLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000053 RID: 83
|
|
// (get) Token: 0x060000B7 RID: 183 RVA: 0x00003AE8 File Offset: 0x00002AE8
|
|
// (set) Token: 0x060000B8 RID: 184 RVA: 0x00003B00 File Offset: 0x00002B00
|
|
public uint ConsumedCount
|
|
{
|
|
get
|
|
{
|
|
return this.consumedCount;
|
|
}
|
|
set
|
|
{
|
|
this.consumedCount = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000B9 RID: 185 RVA: 0x00003B0A File Offset: 0x00002B0A
|
|
public ConsumeServiceEntitlementRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceConsumeServiceEntitlement)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400007F RID: 127
|
|
internal Commerce.ServiceEntitlementLabel entitlementLabel;
|
|
|
|
// Token: 0x04000080 RID: 128
|
|
internal uint consumedCount;
|
|
}
|
|
|
|
// Token: 0x02000023 RID: 35
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class DisplayCategoryBrowseDialogRequest : RequestBase
|
|
{
|
|
// Token: 0x17000054 RID: 84
|
|
// (get) Token: 0x060000BA RID: 186 RVA: 0x00003B1C File Offset: 0x00002B1C
|
|
// (set) Token: 0x060000BB RID: 187 RVA: 0x00003B34 File Offset: 0x00002B34
|
|
public Commerce.CategoryLabel CategoryLabel
|
|
{
|
|
get
|
|
{
|
|
return this.categoryLabel;
|
|
}
|
|
set
|
|
{
|
|
this.categoryLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000BC RID: 188 RVA: 0x00003B3E File Offset: 0x00002B3E
|
|
public DisplayCategoryBrowseDialogRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayCategoryBrowseDialog)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000081 RID: 129
|
|
internal Commerce.CategoryLabel categoryLabel;
|
|
}
|
|
|
|
// Token: 0x02000024 RID: 36
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class DisplayProductBrowseDialogRequest : RequestBase
|
|
{
|
|
// Token: 0x17000055 RID: 85
|
|
// (get) Token: 0x060000BD RID: 189 RVA: 0x00003B50 File Offset: 0x00002B50
|
|
// (set) Token: 0x060000BE RID: 190 RVA: 0x00003B68 File Offset: 0x00002B68
|
|
public Commerce.ProductLabel ProductLabel
|
|
{
|
|
get
|
|
{
|
|
return this.productLabel;
|
|
}
|
|
set
|
|
{
|
|
this.productLabel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000BF RID: 191 RVA: 0x00003B72 File Offset: 0x00002B72
|
|
public DisplayProductBrowseDialogRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayProductBrowseDialog)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000082 RID: 130
|
|
internal Commerce.ProductLabel productLabel;
|
|
}
|
|
|
|
// Token: 0x02000025 RID: 37
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class DisplayVoucherCodeInputDialogRequest : RequestBase
|
|
{
|
|
// Token: 0x17000056 RID: 86
|
|
// (get) Token: 0x060000C0 RID: 192 RVA: 0x00003B84 File Offset: 0x00002B84
|
|
// (set) Token: 0x060000C1 RID: 193 RVA: 0x00003B9C File Offset: 0x00002B9C
|
|
public string VoucherCode
|
|
{
|
|
get
|
|
{
|
|
return this.voucherCode;
|
|
}
|
|
set
|
|
{
|
|
if (value.Length > 63)
|
|
{
|
|
throw new NpToolkitException("The size of the voucher code is more than " + 63 + " characters.");
|
|
}
|
|
this.voucherCode = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000C2 RID: 194 RVA: 0x00003BDF File Offset: 0x00002BDF
|
|
public DisplayVoucherCodeInputDialogRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayVoucherCodeInputDialog)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000083 RID: 131
|
|
public const int VOUCHER_CODE_LEN = 63;
|
|
|
|
// Token: 0x04000084 RID: 132
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
|
|
internal string voucherCode;
|
|
}
|
|
|
|
// Token: 0x02000026 RID: 38
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class DisplayCheckoutDialogRequest : RequestBase
|
|
{
|
|
// Token: 0x17000057 RID: 87
|
|
// (get) Token: 0x060000C3 RID: 195 RVA: 0x00003BF0 File Offset: 0x00002BF0
|
|
// (set) Token: 0x060000C4 RID: 196 RVA: 0x00003C3C File Offset: 0x00002C3C
|
|
public Commerce.CheckoutTarget[] Targets
|
|
{
|
|
get
|
|
{
|
|
Commerce.CheckoutTarget[] array;
|
|
if (this.numTargets == 0UL)
|
|
{
|
|
array = null;
|
|
}
|
|
else
|
|
{
|
|
Commerce.CheckoutTarget[] array2 = new Commerce.CheckoutTarget[this.numTargets];
|
|
Array.Copy(this.targets, array2, (int)this.numTargets);
|
|
array = array2;
|
|
}
|
|
return array;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
if (value.Length > 10)
|
|
{
|
|
throw new NpToolkitException("The size of the array is more than " + 10);
|
|
}
|
|
value.CopyTo(this.targets, 0);
|
|
this.numTargets = (ulong)((long)value.Length);
|
|
}
|
|
else
|
|
{
|
|
this.numTargets = 0UL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000C5 RID: 197 RVA: 0x00003C9E File Offset: 0x00002C9E
|
|
public DisplayCheckoutDialogRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayCheckoutDialog)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000085 RID: 133
|
|
public const int MAX_TARGETS = 10;
|
|
|
|
// Token: 0x04000086 RID: 134
|
|
internal ulong numTargets;
|
|
|
|
// Token: 0x04000087 RID: 135
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
|
|
internal Commerce.CheckoutTarget[] targets = new Commerce.CheckoutTarget[10];
|
|
}
|
|
|
|
// Token: 0x02000027 RID: 39
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class DisplayDownloadListDialogRequest : RequestBase
|
|
{
|
|
// Token: 0x17000058 RID: 88
|
|
// (get) Token: 0x060000C6 RID: 198 RVA: 0x00003CBC File Offset: 0x00002CBC
|
|
// (set) Token: 0x060000C7 RID: 199 RVA: 0x00003D08 File Offset: 0x00002D08
|
|
public Commerce.DownloadListTarget[] Targets
|
|
{
|
|
get
|
|
{
|
|
Commerce.DownloadListTarget[] array;
|
|
if (this.numTargets == 0UL)
|
|
{
|
|
array = null;
|
|
}
|
|
else
|
|
{
|
|
Commerce.DownloadListTarget[] array2 = new Commerce.DownloadListTarget[this.numTargets];
|
|
Array.Copy(this.targets, array2, (int)this.numTargets);
|
|
array = array2;
|
|
}
|
|
return array;
|
|
}
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
if (value.Length > 10)
|
|
{
|
|
throw new NpToolkitException("The size of the array is more than " + 10);
|
|
}
|
|
value.CopyTo(this.targets, 0);
|
|
this.numTargets = (ulong)((long)value.Length);
|
|
}
|
|
else
|
|
{
|
|
this.numTargets = 0UL;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000C8 RID: 200 RVA: 0x00003D6A File Offset: 0x00002D6A
|
|
public DisplayDownloadListDialogRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayDownloadListDialog)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000088 RID: 136
|
|
public const int MAX_TARGETS = 10;
|
|
|
|
// Token: 0x04000089 RID: 137
|
|
internal ulong numTargets;
|
|
|
|
// Token: 0x0400008A RID: 138
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
|
|
internal Commerce.DownloadListTarget[] targets = new Commerce.DownloadListTarget[10];
|
|
}
|
|
|
|
// Token: 0x02000028 RID: 40
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class DisplayJoinPlusDialogRequest : RequestBase
|
|
{
|
|
// Token: 0x060000C9 RID: 201 RVA: 0x00003D86 File Offset: 0x00002D86
|
|
public DisplayJoinPlusDialogRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceDisplayJoinPlusDialog)
|
|
{
|
|
this.features = 1UL;
|
|
}
|
|
|
|
// Token: 0x0400008B RID: 139
|
|
internal ulong features;
|
|
}
|
|
|
|
// Token: 0x02000029 RID: 41
|
|
public enum PsStoreIconPos
|
|
{
|
|
// Token: 0x0400008D RID: 141
|
|
Center,
|
|
// Token: 0x0400008E RID: 142
|
|
Left,
|
|
// Token: 0x0400008F RID: 143
|
|
Right
|
|
}
|
|
|
|
// Token: 0x0200002A RID: 42
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class SetPsStoreIconDisplayStateRequest : RequestBase
|
|
{
|
|
// Token: 0x17000059 RID: 89
|
|
// (get) Token: 0x060000CA RID: 202 RVA: 0x00003DA0 File Offset: 0x00002DA0
|
|
// (set) Token: 0x060000CB RID: 203 RVA: 0x00003DB8 File Offset: 0x00002DB8
|
|
public Commerce.PsStoreIconPos IconPosition
|
|
{
|
|
get
|
|
{
|
|
return this.iconPosition;
|
|
}
|
|
set
|
|
{
|
|
this.iconPosition = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700005A RID: 90
|
|
// (get) Token: 0x060000CC RID: 204 RVA: 0x00003DC4 File Offset: 0x00002DC4
|
|
// (set) Token: 0x060000CD RID: 205 RVA: 0x00003DDC File Offset: 0x00002DDC
|
|
public bool ShowIcon
|
|
{
|
|
get
|
|
{
|
|
return this.showIcon;
|
|
}
|
|
set
|
|
{
|
|
this.showIcon = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000CE RID: 206 RVA: 0x00003DE6 File Offset: 0x00002DE6
|
|
public SetPsStoreIconDisplayStateRequest()
|
|
: base(ServiceTypes.Commerce, FunctionTypes.CommerceSetPsStoreIconDisplayState)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000090 RID: 144
|
|
internal Commerce.PsStoreIconPos iconPosition;
|
|
|
|
// Token: 0x04000091 RID: 145
|
|
[MarshalAs(UnmanagedType.I1)]
|
|
internal bool showIcon;
|
|
}
|
|
|
|
// Token: 0x0200002B RID: 43
|
|
public class CategoriesResponse : ResponseBase
|
|
{
|
|
// Token: 0x1700005B RID: 91
|
|
// (get) Token: 0x060000CF RID: 207 RVA: 0x00003DF8 File Offset: 0x00002DF8
|
|
public Commerce.Category[] Categories
|
|
{
|
|
get
|
|
{
|
|
return this.categories;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000D0 RID: 208 RVA: 0x00003E10 File Offset: 0x00002E10
|
|
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
|
{
|
|
base.ReadResult(id, apiCalled, request);
|
|
APIResult apiresult;
|
|
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoriesBegin);
|
|
ulong num = memoryBuffer.ReadUInt64();
|
|
if (num > 0UL)
|
|
{
|
|
this.categories = new Commerce.Category[num];
|
|
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
|
|
{
|
|
checked
|
|
{
|
|
this.categories[(int)((IntPtr)num2)] = new Commerce.Category();
|
|
this.categories[(int)((IntPtr)num2)].Read(memoryBuffer);
|
|
}
|
|
}
|
|
}
|
|
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.CategoriesEnd);
|
|
base.EndReadResponseBuffer(memoryBuffer);
|
|
}
|
|
|
|
// Token: 0x04000092 RID: 146
|
|
internal Commerce.Category[] categories;
|
|
}
|
|
|
|
// Token: 0x0200002C RID: 44
|
|
public class ProductsResponse : ResponseBase
|
|
{
|
|
// Token: 0x1700005C RID: 92
|
|
// (get) Token: 0x060000D2 RID: 210 RVA: 0x00003EC4 File Offset: 0x00002EC4
|
|
public Commerce.Product[] Products
|
|
{
|
|
get
|
|
{
|
|
return this.products;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000D3 RID: 211 RVA: 0x00003EDC File Offset: 0x00002EDC
|
|
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
|
{
|
|
base.ReadResult(id, apiCalled, request);
|
|
APIResult apiresult;
|
|
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductsBegin);
|
|
ulong num = memoryBuffer.ReadUInt64();
|
|
if (num > 0UL)
|
|
{
|
|
this.products = new Commerce.Product[num];
|
|
for (ulong num2 = 0UL; num2 < num; num2 += 1UL)
|
|
{
|
|
checked
|
|
{
|
|
this.products[(int)((IntPtr)num2)] = new Commerce.Product();
|
|
this.products[(int)((IntPtr)num2)].Read(memoryBuffer);
|
|
}
|
|
}
|
|
}
|
|
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ProductsEnd);
|
|
base.EndReadResponseBuffer(memoryBuffer);
|
|
}
|
|
|
|
// Token: 0x04000093 RID: 147
|
|
internal Commerce.Product[] products;
|
|
}
|
|
|
|
// Token: 0x0200002D RID: 45
|
|
public class ServiceEntitlementsResponse : ResponseBase
|
|
{
|
|
// Token: 0x1700005D RID: 93
|
|
// (get) Token: 0x060000D5 RID: 213 RVA: 0x00003F90 File Offset: 0x00002F90
|
|
public Commerce.ServiceEntitlement[] Entitlements
|
|
{
|
|
get
|
|
{
|
|
return this.entitlements;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700005E RID: 94
|
|
// (get) Token: 0x060000D6 RID: 214 RVA: 0x00003FA8 File Offset: 0x00002FA8
|
|
public ulong TotalEntitlementsAvailable
|
|
{
|
|
get
|
|
{
|
|
return this.totalEntitlementsAvailable;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060000D7 RID: 215 RVA: 0x00003FC0 File Offset: 0x00002FC0
|
|
protected internal override void ReadResult(uint id, FunctionTypes apiCalled, RequestBase request)
|
|
{
|
|
base.ReadResult(id, apiCalled, request);
|
|
APIResult apiresult;
|
|
MemoryBuffer memoryBuffer = base.BeginReadResponseBuffer(id, apiCalled, out apiresult);
|
|
if (apiresult.RaiseException)
|
|
{
|
|
throw new NpToolkitException(apiresult);
|
|
}
|
|
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementsBegin);
|
|
this.totalEntitlementsAvailable = memoryBuffer.ReadUInt64();
|
|
ulong num = memoryBuffer.ReadUInt64();
|
|
if (num > 0UL)
|
|
{
|
|
this.entitlements = new Commerce.ServiceEntitlement[num];
|
|
for (int i = 0; i < (int)num; i++)
|
|
{
|
|
this.entitlements[i] = new Commerce.ServiceEntitlement();
|
|
this.entitlements[i].Read(memoryBuffer);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
this.entitlements = null;
|
|
}
|
|
memoryBuffer.CheckMarker(MemoryBuffer.BufferIntegrityChecks.ServiceEntitlementsEnd);
|
|
base.EndReadResponseBuffer(memoryBuffer);
|
|
}
|
|
|
|
// Token: 0x04000094 RID: 148
|
|
internal Commerce.ServiceEntitlement[] entitlements;
|
|
|
|
// Token: 0x04000095 RID: 149
|
|
internal ulong totalEntitlementsAvailable;
|
|
}
|
|
}
|
|
}
|