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.
72 lines
2.1 KiB
72 lines
2.1 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.Auth
|
|
{
|
|
/// <summary>
|
|
/// Input parameters for the <see cref="AuthInterface.QueryIdToken" /> function.
|
|
/// </summary>
|
|
public struct QueryIdTokenOptions
|
|
{
|
|
/// <summary>
|
|
/// The Epic Account ID of the local authenticated user.
|
|
/// </summary>
|
|
public EpicAccountId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The target Epic Account ID for which to query an ID token.
|
|
/// This account id may be the same as the input LocalUserId or another merged account id associated with the local user's Epic account.
|
|
///
|
|
/// An ID token for the selected account id of a locally authenticated user will always be readily available.
|
|
/// To retrieve it for the selected account ID, you can use <see cref="AuthInterface.CopyIdToken" /> directly after a successful user login.
|
|
/// </summary>
|
|
public EpicAccountId TargetAccountId { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct QueryIdTokenOptionsInternal : ISettable<QueryIdTokenOptions>, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_TargetAccountId;
|
|
|
|
public EpicAccountId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_LocalUserId);
|
|
}
|
|
}
|
|
|
|
public EpicAccountId TargetAccountId
|
|
{
|
|
set
|
|
{
|
|
Helper.Set(value, ref m_TargetAccountId);
|
|
}
|
|
}
|
|
|
|
public void Set(ref QueryIdTokenOptions other)
|
|
{
|
|
m_ApiVersion = AuthInterface.QueryidtokenApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
TargetAccountId = other.TargetAccountId;
|
|
}
|
|
|
|
public void Set(ref QueryIdTokenOptions? other)
|
|
{
|
|
if (other.HasValue)
|
|
{
|
|
m_ApiVersion = AuthInterface.QueryidtokenApiLatest;
|
|
LocalUserId = other.Value.LocalUserId;
|
|
TargetAccountId = other.Value.TargetAccountId;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.Dispose(ref m_LocalUserId);
|
|
Helper.Dispose(ref m_TargetAccountId);
|
|
}
|
|
}
|
|
}
|