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
1.9 KiB
94 lines
1.9 KiB
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
// This file is automatically generated. Changes to this file may be overwritten.
|
|
|
|
namespace Epic.OnlineServices.RTCAdmin
|
|
{
|
|
/// <summary>
|
|
/// Contains information about a collection of user tokens for joining a room.
|
|
/// </summary>
|
|
public class UserToken : ISettable
|
|
{
|
|
/// <summary>
|
|
/// The Product User ID for the user who owns this user token.
|
|
/// </summary>
|
|
public ProductUserId ProductUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Access token to enable a user to join a room
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
internal void Set(UserTokenInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
ProductUserId = other.Value.ProductUserId;
|
|
Token = other.Value.Token;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as UserTokenInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct UserTokenInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_ProductUserId;
|
|
private System.IntPtr m_Token;
|
|
|
|
public ProductUserId ProductUserId
|
|
{
|
|
get
|
|
{
|
|
ProductUserId value;
|
|
Helper.TryMarshalGet(m_ProductUserId, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_ProductUserId, value);
|
|
}
|
|
}
|
|
|
|
public string Token
|
|
{
|
|
get
|
|
{
|
|
string value;
|
|
Helper.TryMarshalGet(m_Token, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_Token, value);
|
|
}
|
|
}
|
|
|
|
public void Set(UserToken other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = RTCAdminInterface.UsertokenApiLatest;
|
|
ProductUserId = other.ProductUserId;
|
|
Token = other.Token;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as UserToken);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_ProductUserId);
|
|
Helper.TryMarshalDispose(ref m_Token);
|
|
}
|
|
}
|
|
}
|