// 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 RedeemEntitlementsOptions { /// /// The Epic Account ID of the user who is redeeming Entitlements /// public EpicAccountId LocalUserId { get; set; } /// /// The array of Entitlements to redeem /// public string[] EntitlementIds { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct RedeemEntitlementsOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_LocalUserId; private uint m_EntitlementIdCount; private System.IntPtr m_EntitlementIds; public EpicAccountId LocalUserId { set { Helper.TryMarshalSet(ref m_LocalUserId, value); } } public string[] EntitlementIds { set { Helper.TryMarshalSet(ref m_EntitlementIds, value, out m_EntitlementIdCount); } } public void Set(RedeemEntitlementsOptions other) { if (other != null) { m_ApiVersion = EcomInterface.RedeementitlementsApiLatest; LocalUserId = other.LocalUserId; EntitlementIds = other.EntitlementIds; } } public void Set(object other) { Set(other as RedeemEntitlementsOptions); } public void Dispose() { Helper.TryMarshalDispose(ref m_LocalUserId); Helper.TryMarshalDispose(ref m_EntitlementIds); } } }