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.
115 lines
2.3 KiB
115 lines
2.3 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.UserInfo
|
|
{
|
|
/// <summary>
|
|
/// Contains information about a single external user info.
|
|
/// </summary>
|
|
public class ExternalUserInfo : ISettable
|
|
{
|
|
/// <summary>
|
|
/// The type of the external account
|
|
/// </summary>
|
|
public ExternalAccountType AccountType { get; set; }
|
|
|
|
/// <summary>
|
|
/// The ID of the external account. Can be null
|
|
/// </summary>
|
|
public string AccountId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The display name of the external account. Can be null
|
|
/// </summary>
|
|
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);
|
|
}
|
|
}
|
|
}
|