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.

84 lines
2.2 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Connect
{
/// <summary>
/// Input parameters for the <see cref="ConnectInterface.GetExternalAccountMapping" /> function.
/// </summary>
public struct GetExternalAccountMappingsOptions
{
/// <summary>
/// The Product User ID of the existing, logged-in user who is querying account mappings.
/// </summary>
public ProductUserId LocalUserId { get; set; }
/// <summary>
/// External auth service supplying the account IDs in string form.
/// </summary>
public ExternalAccountType AccountIdType { get; set; }
/// <summary>
/// Target user to retrieve the mapping for, as an external account ID.
/// </summary>
public Utf8String TargetExternalUserId { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct GetExternalAccountMappingsOptionsInternal : ISettable<GetExternalAccountMappingsOptions>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private ExternalAccountType m_AccountIdType;
private System.IntPtr m_TargetExternalUserId;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public ExternalAccountType AccountIdType
{
set
{
m_AccountIdType = value;
}
}
public Utf8String TargetExternalUserId
{
set
{
Helper.Set(value, ref m_TargetExternalUserId);
}
}
public void Set(ref GetExternalAccountMappingsOptions other)
{
m_ApiVersion = ConnectInterface.GetexternalaccountmappingApiLatest;
LocalUserId = other.LocalUserId;
AccountIdType = other.AccountIdType;
TargetExternalUserId = other.TargetExternalUserId;
}
public void Set(ref GetExternalAccountMappingsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = ConnectInterface.GetexternalaccountmappingApiLatest;
LocalUserId = other.Value.LocalUserId;
AccountIdType = other.Value.AccountIdType;
TargetExternalUserId = other.Value.TargetExternalUserId;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_TargetExternalUserId);
}
}
}