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.

68 lines
1.8 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Sanctions
{
/// <summary>
/// Input parameters for the <see cref="SanctionsInterface.QueryActivePlayerSanctions" /> API.
/// </summary>
public struct QueryActivePlayerSanctionsOptions
{
/// <summary>
/// Product User ID of the user whose active sanctions are to be retrieved.
/// </summary>
public ProductUserId TargetUserId { get; set; }
/// <summary>
/// The Product User ID of the local user who initiated this request. Dedicated servers should set this to null.
/// </summary>
public ProductUserId LocalUserId { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct QueryActivePlayerSanctionsOptionsInternal : ISettable<QueryActivePlayerSanctionsOptions>, 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);
}
}
}