// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Connect
{
///
/// Input parameters for the function.
///
public struct QueryExternalAccountMappingsOptions
{
///
/// The Product User ID of the existing, logged-in user who is querying account mappings.
///
public ProductUserId LocalUserId { get; set; }
///
/// External auth service supplying the account IDs in string form.
///
public ExternalAccountType AccountIdType { get; set; }
///
/// An array of external account IDs to map to the product user ID representation.
///
public Utf8String[] ExternalAccountIds { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct QueryExternalAccountMappingsOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private ExternalAccountType m_AccountIdType;
private System.IntPtr m_ExternalAccountIds;
private uint m_ExternalAccountIdCount;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public ExternalAccountType AccountIdType
{
set
{
m_AccountIdType = value;
}
}
public Utf8String[] ExternalAccountIds
{
set
{
Helper.Set(value, ref m_ExternalAccountIds, true, out m_ExternalAccountIdCount);
}
}
public void Set(ref QueryExternalAccountMappingsOptions other)
{
m_ApiVersion = ConnectInterface.QueryexternalaccountmappingsApiLatest;
LocalUserId = other.LocalUserId;
AccountIdType = other.AccountIdType;
ExternalAccountIds = other.ExternalAccountIds;
}
public void Set(ref QueryExternalAccountMappingsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = ConnectInterface.QueryexternalaccountmappingsApiLatest;
LocalUserId = other.Value.LocalUserId;
AccountIdType = other.Value.AccountIdType;
ExternalAccountIds = other.Value.ExternalAccountIds;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_ExternalAccountIds);
}
}
}