You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.0 KiB
82 lines
2.0 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Ecom
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="EcomInterface.QueryEntitlements" /> function.
|
|
/// </summary>
|
|
public class QueryEntitlementsOptions
|
|
{
|
|
/// <summary>
|
|
/// The Epic Online Services Account ID of the local user whose Entitlements you want to retrieve
|
|
/// </summary>
|
|
public EpicAccountId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// An array of Entitlement Names that you want to check
|
|
/// </summary>
|
|
public string[] EntitlementNames { get; set; }
|
|
|
|
/// <summary>
|
|
/// If true, Entitlements that have been redeemed will be included in the results.
|
|
/// </summary>
|
|
public bool IncludeRedeemed { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct QueryEntitlementsOptionsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_EntitlementNames;
|
|
private uint m_EntitlementNameCount;
|
|
private int m_IncludeRedeemed;
|
|
|
|
public EpicAccountId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_LocalUserId, value);
|
|
}
|
|
}
|
|
|
|
public string[] EntitlementNames
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_EntitlementNames, value, out m_EntitlementNameCount);
|
|
}
|
|
}
|
|
|
|
public bool IncludeRedeemed
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_IncludeRedeemed, value);
|
|
}
|
|
}
|
|
|
|
public void Set(QueryEntitlementsOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = EcomInterface.QueryentitlementsApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
EntitlementNames = other.EntitlementNames;
|
|
IncludeRedeemed = other.IncludeRedeemed;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as QueryEntitlementsOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_LocalUserId);
|
|
Helper.TryMarshalDispose(ref m_EntitlementNames);
|
|
}
|
|
}
|
|
}
|