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.
173 lines
3.6 KiB
173 lines
3.6 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Friends
|
|
{
|
|
/// <summary>
|
|
/// Structure containing information about a friend status update.
|
|
/// </summary>
|
|
public struct OnFriendsUpdateInfo : ICallbackInfo
|
|
{
|
|
/// <summary>
|
|
/// Client-specified data passed into <see cref="FriendsInterface.AddNotifyFriendsUpdate" />
|
|
/// </summary>
|
|
public object ClientData { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Epic Account ID of the local user who is receiving the update
|
|
/// </summary>
|
|
public EpicAccountId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Epic Account ID of the user whose status is being updated.
|
|
/// </summary>
|
|
public EpicAccountId TargetUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The previous status of the user.
|
|
/// </summary>
|
|
public FriendsStatus PreviousStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// The current status of the user.
|
|
/// </summary>
|
|
public FriendsStatus CurrentStatus { get; set; }
|
|
|
|
public Result? GetResultCode()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
internal void Set(ref OnFriendsUpdateInfoInternal other)
|
|
{
|
|
ClientData = other.ClientData;
|
|
LocalUserId = other.LocalUserId;
|
|
TargetUserId = other.TargetUserId;
|
|
PreviousStatus = other.PreviousStatus;
|
|
CurrentStatus = other.CurrentStatus;
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct OnFriendsUpdateInfoInternal : ICallbackInfoInternal, IGettable<OnFriendsUpdateInfo>, ISettable<OnFriendsUpdateInfo>, System.IDisposable
|
|
{
|
|
private System.IntPtr m_ClientData;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_TargetUserId;
|
|
private FriendsStatus m_PreviousStatus;
|
|
private FriendsStatus m_CurrentStatus;
|
|
|
|
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 EpicAccountId TargetUserId
|
|
{
|
|
get
|
|
{
|
|
EpicAccountId value;
|
|
Helper.Get(m_TargetUserId, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_TargetUserId);
|
|
}
|
|
}
|
|
|
|
public FriendsStatus PreviousStatus
|
|
{
|
|
get
|
|
{
|
|
return m_PreviousStatus;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_PreviousStatus = value;
|
|
}
|
|
}
|
|
|
|
public FriendsStatus CurrentStatus
|
|
{
|
|
get
|
|
{
|
|
return m_CurrentStatus;
|
|
}
|
|
|
|
set
|
|
{
|
|
m_CurrentStatus = value;
|
|
}
|
|
}
|
|
|
|
public void Set(ref OnFriendsUpdateInfo other)
|
|
{
|
|
ClientData = other.ClientData;
|
|
LocalUserId = other.LocalUserId;
|
|
TargetUserId = other.TargetUserId;
|
|
PreviousStatus = other.PreviousStatus;
|
|
CurrentStatus = other.CurrentStatus;
|
|
}
|
|
|
|
public void Set(ref OnFriendsUpdateInfo? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
ClientData = other.Value.ClientData;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
TargetUserId = other.Value.TargetUserId;
|
|
PreviousStatus = other.Value.PreviousStatus;
|
|
CurrentStatus = other.Value.CurrentStatus;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_ClientData);
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_TargetUserId);
|
|
}
|
|
|
|
public void Get(out OnFriendsUpdateInfo output)
|
|
{
|
|
output = new OnFriendsUpdateInfo();
|
|
output.Set(ref this);
|
|
}
|
|
}
|
|
}
|