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.
152 lines
3.4 KiB
152 lines
3.4 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>
|
|
/// Output parameters for the <see cref="EcomInterface.QueryOwnership" /> Function.
|
|
/// </summary>
|
|
public struct QueryOwnershipCallbackInfo : ICallbackInfo
|
|
{
|
|
/// <summary>
|
|
/// The <see cref="Result" /> code for the operation. <see cref="Result.Success" /> indicates that the operation succeeded; other codes indicate errors.
|
|
/// </summary>
|
|
public Result ResultCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Context that was passed into <see cref="EcomInterface.QueryOwnership" />
|
|
/// </summary>
|
|
public object ClientData { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Epic Account ID of the local user whose ownership was queried
|
|
/// </summary>
|
|
public EpicAccountId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// List of catalog items and their ownership status
|
|
/// </summary>
|
|
public ItemOwnership[] ItemOwnership { get; set; }
|
|
|
|
public Result? GetResultCode()
|
|
{
|
|
return ResultCode;
|
|
}
|
|
|
|
internal void Set(ref QueryOwnershipCallbackInfoInternal other)
|
|
{
|
|
ResultCode = other.ResultCode;
|
|
ClientData = other.ClientData;
|
|
LocalUserId = other.LocalUserId;
|
|
ItemOwnership = other.ItemOwnership;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct QueryOwnershipCallbackInfoInternal : ICallbackInfoInternal, IGettable<QueryOwnershipCallbackInfo>, ISettable<QueryOwnershipCallbackInfo>, System.IDisposable
|
|
{
|
|
private Result m_ResultCode;
|
|
private System.IntPtr m_ClientData;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_ItemOwnership;
|
|
private uint m_ItemOwnershipCount;
|
|
|
|
public Result ResultCode
|
|
{
|
|
get
|
|
{
|
|
return m_ResultCode;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_ResultCode = value;
|
|
}
|
|
}
|
|
|
|
public object ClientData
|
|
{
|
|
get
|
|
{
|
|
object value;
|
|
Helper.Get(m_ClientData, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_ClientData);
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ClientDataAddress
|
|
{
|
|
get
|
|
{
|
|
return m_ClientData;
|
|
}
|
|
}
|
|
|
|
public EpicAccountId LocalUserId
|
|
{
|
|
get
|
|
{
|
|
EpicAccountId value;
|
|
Helper.Get(m_LocalUserId, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public ItemOwnership[] ItemOwnership
|
|
{
|
|
get
|
|
{
|
|
ItemOwnership[] value;
|
|
Helper.Get<ItemOwnershipInternal, ItemOwnership>(m_ItemOwnership, out value, m_ItemOwnershipCount);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set<ItemOwnership, ItemOwnershipInternal>(ref value, ref m_ItemOwnership, out m_ItemOwnershipCount);
|
|
}
|
|
}
|
|
|
|
public void Set(ref QueryOwnershipCallbackInfo other)
|
|
{
|
|
ResultCode = other.ResultCode;
|
|
ClientData = other.ClientData;
|
|
LocalUserId = other.LocalUserId;
|
|
ItemOwnership = other.ItemOwnership;
|
|
}
|
|
|
|
public void Set(ref QueryOwnershipCallbackInfo? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
ResultCode = other.Value.ResultCode;
|
|
ClientData = other.Value.ClientData;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
ItemOwnership = other.Value.ItemOwnership;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_ClientData);
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_ItemOwnership);
|
|
}
|
|
|
|
public void Get(out QueryOwnershipCallbackInfo output)
|
|
{
|
|
output = new QueryOwnershipCallbackInfo();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|