// 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 class KeyImageInfo : ISettable
{
///
/// Describes the usage of the image (ex: home_thumbnail)
///
public string Type { get; set; }
///
/// The URL of the image
///
public string 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(KeyImageInfoInternal? other)
{
if (other != null)
{
Type = other.Value.Type;
Url = other.Value.Url;
Width = other.Value.Width;
Height = other.Value.Height;
}
}
public void Set(object other)
{
Set(other as KeyImageInfoInternal?);
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct KeyImageInfoInternal : 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 string Type
{
get
{
string value;
Helper.TryMarshalGet(m_Type, out value);
return value;
}
set
{
Helper.TryMarshalSet(ref m_Type, value);
}
}
public string Url
{
get
{
string value;
Helper.TryMarshalGet(m_Url, out value);
return value;
}
set
{
Helper.TryMarshalSet(ref m_Url, value);
}
}
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(KeyImageInfo other)
{
if (other != null)
{
m_ApiVersion = EcomInterface.KeyimageinfoApiLatest;
Type = other.Type;
Url = other.Url;
Width = other.Width;
Height = other.Height;
}
}
public void Set(object other)
{
Set(other as KeyImageInfo);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_Type);
Helper.TryMarshalDispose(ref m_Url);
}
}
}