// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Sessions
{
///
/// Input parameters for the function.
///
public struct IsUserInSessionOptions
{
///
/// Active session name to search within
///
public Utf8String SessionName { get; set; }
///
/// Product User ID to search for in the session
///
public ProductUserId TargetUserId { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct IsUserInSessionOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_SessionName;
private System.IntPtr m_TargetUserId;
public Utf8String SessionName
{
set
{
Helper.Set(value, ref m_SessionName);
}
}
public ProductUserId TargetUserId
{
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public void Set(ref IsUserInSessionOptions other)
{
m_ApiVersion = SessionsInterface.IsuserinsessionApiLatest;
SessionName = other.SessionName;
TargetUserId = other.TargetUserId;
}
public void Set(ref IsUserInSessionOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = SessionsInterface.IsuserinsessionApiLatest;
SessionName = other.Value.SessionName;
TargetUserId = other.Value.TargetUserId;
}
}
public void Dispose()
{
Helper.Dispose(ref m_SessionName);
Helper.Dispose(ref m_TargetUserId);
}
}
}