// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Ecom { /// /// Input parameters for the function. /// public class QueryEntitlementsOptions { /// /// The Epic Online Services Account ID of the local user whose Entitlements you want to retrieve /// public EpicAccountId LocalUserId { get; set; } /// /// An array of Entitlement Names that you want to check /// public string[] EntitlementNames { get; set; } /// /// If true, Entitlements that have been redeemed will be included in the results. /// 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); } } }