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.
122 lines
2.7 KiB
122 lines
2.7 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 class OnFriendsUpdateInfo : ICallbackInfo, ISettable
|
|
{
|
|
/// <summary>
|
|
/// Client-specified data passed into <see cref="FriendsInterface.AddNotifyFriendsUpdate" />
|
|
/// </summary>
|
|
public object ClientData { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The Epic Online Services Account ID of the local user who is receiving the update
|
|
/// </summary>
|
|
public EpicAccountId LocalUserId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The Epic Online Services Account ID of the user whose status is being updated.
|
|
/// </summary>
|
|
public EpicAccountId TargetUserId { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The previous status of the user.
|
|
/// </summary>
|
|
public FriendsStatus PreviousStatus { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The current status of the user.
|
|
/// </summary>
|
|
public FriendsStatus CurrentStatus { get; private set; }
|
|
|
|
public Result? GetResultCode()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
internal void Set(OnFriendsUpdateInfoInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
ClientData = other.Value.ClientData;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
TargetUserId = other.Value.TargetUserId;
|
|
PreviousStatus = other.Value.PreviousStatus;
|
|
CurrentStatus = other.Value.CurrentStatus;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as OnFriendsUpdateInfoInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct OnFriendsUpdateInfoInternal : ICallbackInfoInternal
|
|
{
|
|
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.TryMarshalGet(m_ClientData, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public System.IntPtr ClientDataAddress
|
|
{
|
|
get
|
|
{
|
|
return m_ClientData;
|
|
}
|
|
}
|
|
|
|
public EpicAccountId LocalUserId
|
|
{
|
|
get
|
|
{
|
|
EpicAccountId value;
|
|
Helper.TryMarshalGet(m_LocalUserId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public EpicAccountId TargetUserId
|
|
{
|
|
get
|
|
{
|
|
EpicAccountId value;
|
|
Helper.TryMarshalGet(m_TargetUserId, out value);
|
|
return value;
|
|
}
|
|
}
|
|
|
|
public FriendsStatus PreviousStatus
|
|
{
|
|
get
|
|
{
|
|
return m_PreviousStatus;
|
|
}
|
|
}
|
|
|
|
public FriendsStatus CurrentStatus
|
|
{
|
|
get
|
|
{
|
|
return m_CurrentStatus;
|
|
}
|
|
}
|
|
}
|
|
}
|