// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Friends { /// /// Structure containing information about a friend status update. /// public class OnFriendsUpdateInfo : ICallbackInfo, ISettable { /// /// Client-specified data passed into /// public object ClientData { get; private set; } /// /// The Epic Account ID of the local user who is receiving the update /// public EpicAccountId LocalUserId { get; private set; } /// /// The Epic Account ID of the user whose status is being updated. /// public EpicAccountId TargetUserId { get; private set; } /// /// The previous status of the user. /// public FriendsStatus PreviousStatus { get; private set; } /// /// The current status of the user. /// 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; } } } }