// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Ecom { /// /// Contains information about a key image used by the catalog. Instances of this structure are /// created by . They must be passed to . /// A Key Image is defined within Dev Portal and is associated with a Catalog Item. A Key Image is /// intended to be used to provide imagery for an in-game store. /// /// /// public struct KeyImageInfo { /// /// Describes the usage of the image (ex: home_thumbnail) /// public Utf8String Type { get; set; } /// /// The URL of the image /// public Utf8String Url { get; set; } /// /// The expected width in pixels of the image /// public uint Width { get; set; } /// /// The expected height in pixels of the image /// public uint Height { get; set; } internal void Set(ref KeyImageInfoInternal other) { Type = other.Type; Url = other.Url; Width = other.Width; Height = other.Height; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct KeyImageInfoInternal : IGettable, ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_Type; private System.IntPtr m_Url; private uint m_Width; private uint m_Height; public Utf8String Type { get { Utf8String value; Helper.Get(m_Type, out value); return value; } set { Helper.Set(value, ref m_Type); } } public Utf8String Url { get { Utf8String value; Helper.Get(m_Url, out value); return value; } set { Helper.Set(value, ref m_Url); } } public uint Width { get { return m_Width; } set { m_Width = value; } } public uint Height { get { return m_Height; } set { m_Height = value; } } public void Set(ref KeyImageInfo other) { m_ApiVersion = EcomInterface.KeyimageinfoApiLatest; Type = other.Type; Url = other.Url; Width = other.Width; Height = other.Height; } public void Set(ref KeyImageInfo? other) { if (other.HasValue) { m_ApiVersion = EcomInterface.KeyimageinfoApiLatest; Type = other.Value.Type; Url = other.Value.Url; Width = other.Value.Width; Height = other.Value.Height; } } public void Dispose() { Helper.Dispose(ref m_Type); Helper.Dispose(ref m_Url); } public void Get(out KeyImageInfo output) { output = new KeyImageInfo(); output.Set(ref this); } } }