// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Sanctions
{
///
/// Input parameters for the API.
///
public struct QueryActivePlayerSanctionsOptions
{
///
/// Product User ID of the user whose active sanctions are to be retrieved.
///
public ProductUserId TargetUserId { get; set; }
///
/// The Product User ID of the local user who initiated this request. Dedicated servers should set this to null.
///
public ProductUserId LocalUserId { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct QueryActivePlayerSanctionsOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_TargetUserId;
private System.IntPtr m_LocalUserId;
public ProductUserId TargetUserId
{
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public void Set(ref QueryActivePlayerSanctionsOptions other)
{
m_ApiVersion = SanctionsInterface.QueryactiveplayersanctionsApiLatest;
TargetUserId = other.TargetUserId;
LocalUserId = other.LocalUserId;
}
public void Set(ref QueryActivePlayerSanctionsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = SanctionsInterface.QueryactiveplayersanctionsApiLatest;
TargetUserId = other.Value.TargetUserId;
LocalUserId = other.Value.LocalUserId;
}
}
public void Dispose()
{
Helper.Dispose(ref m_TargetUserId);
Helper.Dispose(ref m_LocalUserId);
}
}
}