// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.UserInfo { /// /// Contains information about a single external user info. /// public class ExternalUserInfo : ISettable { /// /// The type of the external account /// public ExternalAccountType AccountType { get; set; } /// /// The ID of the external account. Can be null /// public string AccountId { get; set; } /// /// The display name of the external account. Can be null /// public string DisplayName { get; set; } internal void Set(ExternalUserInfoInternal? other) { if (other != null) { AccountType = other.Value.AccountType; AccountId = other.Value.AccountId; DisplayName = other.Value.DisplayName; } } public void Set(object other) { Set(other as ExternalUserInfoInternal?); } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct ExternalUserInfoInternal : ISettable, System.IDisposable { private int m_ApiVersion; private ExternalAccountType m_AccountType; private System.IntPtr m_AccountId; private System.IntPtr m_DisplayName; public ExternalAccountType AccountType { get { return m_AccountType; } set { m_AccountType = value; } } public string AccountId { get { string value; Helper.TryMarshalGet(m_AccountId, out value); return value; } set { Helper.TryMarshalSet(ref m_AccountId, value); } } public string DisplayName { get { string value; Helper.TryMarshalGet(m_DisplayName, out value); return value; } set { Helper.TryMarshalSet(ref m_DisplayName, value); } } public void Set(ExternalUserInfo other) { if (other != null) { m_ApiVersion = UserInfoInterface.ExternaluserinfoApiLatest; AccountType = other.AccountType; AccountId = other.AccountId; DisplayName = other.DisplayName; } } public void Set(object other) { Set(other as ExternalUserInfo); } public void Dispose() { Helper.TryMarshalDispose(ref m_AccountId); Helper.TryMarshalDispose(ref m_DisplayName); } } }