Files
ZuneShell.dll/ZuneDBApi/Microsoft/Zune/Service/TokenDetails.cs
T
2021-11-30 01:00:46 -06:00

78 lines
2.2 KiB
C#

using System;
namespace Microsoft.Zune.Service
{
public class TokenDetails : PaymentInstrument
{
private string m_token;
private string m_offerName;
private string m_sellText;
private ETokenType m_eTokenType;
private EPurchaseOfferType m_ePurchaseOfferType;
private Guid m_mediaId;
private Guid m_mediaOfferId;
private ulong m_billingOfferId;
public Guid MediaOfferId => m_mediaOfferId;
public Guid MediaId => m_mediaId;
public EPurchaseOfferType PurchaseOfferType => m_ePurchaseOfferType;
public string SellText => m_sellText;
public string OfferName => m_offerName;
public ulong BillingOfferId => m_billingOfferId;
public ETokenType TokenType => m_eTokenType;
public string Token => Id;
internal unsafe TokenDetails(ITokenDetails* pTokenDetails)
: base(null, PaymentType.Token)
{
//IL_0059: Expected I, but got I8
//IL_0067: Expected I, but got I8
//IL_0075: Expected I, but got I8
//IL_0083: Expected I, but got I8
if (pTokenDetails == null)
{
return;
}
fixed (char* wBSTRString = "")
{
fixed (char* wBSTRString2 = "")
{
fixed (char* wBSTRString3 = "")
{
global::ETokenType eTokenType = (global::ETokenType)(-1);
global::EPurchaseOfferType ePurchaseOfferType = (global::EPurchaseOfferType)(-1);
_GUID gUID_NULL = Module.GUID_NULL;
_GUID gUID_NULL2 = Module.GUID_NULL;
ulong billingOfferId = 0uL;
if (((delegate* unmanaged[Cdecl, Cdecl]<IntPtr, ushort**, ushort**, ushort**, global::ETokenType*, global::EPurchaseOfferType*, ulong*, _GUID*, _GUID*, int>)(*(ulong*)(*(long*)pTokenDetails + 24)))((nint)pTokenDetails, (ushort**)(&wBSTRString), (ushort**)(&wBSTRString2), (ushort**)(&wBSTRString3), &eTokenType, &ePurchaseOfferType, &billingOfferId, &gUID_NULL, &gUID_NULL2) >= 0)
{
Id = new(wBSTRString);
m_offerName = new(wBSTRString2);
m_sellText = new(wBSTRString3);
m_eTokenType = (ETokenType)eTokenType;
m_ePurchaseOfferType = (EPurchaseOfferType)ePurchaseOfferType;
Guid guid = (m_mediaOfferId = gUID_NULL);
Guid guid2 = (m_mediaId = gUID_NULL2);
m_billingOfferId = billingOfferId;
}
}
}
}
}
}
}