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.
94 lines
3.1 KiB
94 lines
3.1 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.TransferDeviceIdAccount" /> Function.
|
|
/// </summary>
|
|
public struct TransferDeviceIdAccountOptions
|
|
{
|
|
/// <summary>
|
|
/// The primary product user id, currently logged in, that is already associated with a real external user account (such as Epic Games, PlayStation(TM)Network, Xbox Live and other).
|
|
///
|
|
/// The account linking keychain that owns this product user will be preserved and receive
|
|
/// the Device ID login credentials under it.
|
|
/// </summary>
|
|
public ProductUserId PrimaryLocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The product user id, currently logged in, that has been originally created using the anonymous local Device ID login type,
|
|
/// and whose Device ID login will be transferred to the keychain of the PrimaryLocalUserId.
|
|
/// </summary>
|
|
public ProductUserId LocalDeviceUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Specifies which <see cref="ProductUserId" /> (i.e. game progression) will be preserved in the operation.
|
|
///
|
|
/// After a successful transfer operation, subsequent logins using the same external account or
|
|
/// the same local Device ID login will return user session for the ProductUserIdToPreserve.
|
|
///
|
|
/// Set to either PrimaryLocalUserId or LocalDeviceUserId.
|
|
/// </summary>
|
|
public ProductUserId ProductUserIdToPreserve { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct TransferDeviceIdAccountOptionsInternal : ISettable<TransferDeviceIdAccountOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_PrimaryLocalUserId;
|
|
private System.IntPtr m_LocalDeviceUserId;
|
|
private System.IntPtr m_ProductUserIdToPreserve;
|
|
|
|
public ProductUserId PrimaryLocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_PrimaryLocalUserId);
|
|
}
|
|
}
|
|
|
|
public ProductUserId LocalDeviceUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalDeviceUserId);
|
|
}
|
|
}
|
|
|
|
public ProductUserId ProductUserIdToPreserve
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_ProductUserIdToPreserve);
|
|
}
|
|
}
|
|
|
|
public void Set(ref TransferDeviceIdAccountOptions other)
|
|
{
|
|
m_ApiVersion = ConnectInterface.TransferdeviceidaccountApiLatest;
|
|
PrimaryLocalUserId = other.PrimaryLocalUserId;
|
|
LocalDeviceUserId = other.LocalDeviceUserId;
|
|
ProductUserIdToPreserve = other.ProductUserIdToPreserve;
|
|
}
|
|
|
|
public void Set(ref TransferDeviceIdAccountOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = ConnectInterface.TransferdeviceidaccountApiLatest;
|
|
PrimaryLocalUserId = other.Value.PrimaryLocalUserId;
|
|
LocalDeviceUserId = other.Value.LocalDeviceUserId;
|
|
ProductUserIdToPreserve = other.Value.ProductUserIdToPreserve;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_PrimaryLocalUserId);
|
|
Helper.Dispose(ref m_LocalDeviceUserId);
|
|
Helper.Dispose(ref m_ProductUserIdToPreserve);
|
|
}
|
|
}
|
|
}
|