// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.CustomInvites { /// /// Output parameters for the Function. /// public class OnCustomInviteReceivedCallbackInfo : ICallbackInfo, ISettable { /// /// Context that was passed into /// public object ClientData { get; private set; } /// /// User that sent this custom invite /// public ProductUserId TargetUserId { get; private set; } /// /// Recipient Local user id /// public ProductUserId LocalUserId { get; private set; } /// /// Id of the received Custom Invite /// public string CustomInviteId { get; private set; } /// /// Payload of the received Custom Invite /// public string Payload { get; private set; } public Result? GetResultCode() { return null; } internal void Set(OnCustomInviteReceivedCallbackInfoInternal? other) { if (other != null) { ClientData = other.Value.ClientData; TargetUserId = other.Value.TargetUserId; LocalUserId = other.Value.LocalUserId; CustomInviteId = other.Value.CustomInviteId; Payload = other.Value.Payload; } } public void Set(object other) { Set(other as OnCustomInviteReceivedCallbackInfoInternal?); } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct OnCustomInviteReceivedCallbackInfoInternal : ICallbackInfoInternal { private System.IntPtr m_ClientData; private System.IntPtr m_TargetUserId; private System.IntPtr m_LocalUserId; private System.IntPtr m_CustomInviteId; private System.IntPtr m_Payload; public object ClientData { get { object value; Helper.TryMarshalGet(m_ClientData, out value); return value; } } public System.IntPtr ClientDataAddress { get { return m_ClientData; } } public ProductUserId TargetUserId { get { ProductUserId value; Helper.TryMarshalGet(m_TargetUserId, out value); return value; } } public ProductUserId LocalUserId { get { ProductUserId value; Helper.TryMarshalGet(m_LocalUserId, out value); return value; } } public string CustomInviteId { get { string value; Helper.TryMarshalGet(m_CustomInviteId, out value); return value; } } public string Payload { get { string value; Helper.TryMarshalGet(m_Payload, out value); return value; } } } }