// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Presence
{
///
/// Data for the function.
///
public class SetPresenceOptions
{
///
/// The Epic Account ID of the local, logged-in user making the request
///
public EpicAccountId LocalUserId { get; set; }
///
/// The handle to the presence update
///
public PresenceModification PresenceModificationHandle { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct SetPresenceOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_PresenceModificationHandle;
public EpicAccountId LocalUserId
{
set
{
Helper.TryMarshalSet(ref m_LocalUserId, value);
}
}
public PresenceModification PresenceModificationHandle
{
set
{
Helper.TryMarshalSet(ref m_PresenceModificationHandle, value);
}
}
public void Set(SetPresenceOptions other)
{
if (other != null)
{
m_ApiVersion = PresenceInterface.SetpresenceApiLatest;
LocalUserId = other.LocalUserId;
PresenceModificationHandle = other.PresenceModificationHandle;
}
}
public void Set(object other)
{
Set(other as SetPresenceOptions);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_LocalUserId);
Helper.TryMarshalDispose(ref m_PresenceModificationHandle);
}
}
}