// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.RTCAdmin { /// /// Contains information about a collection of user tokens for joining a room. /// public class UserToken : ISettable { /// /// The Product User ID for the user who owns this user token. /// public ProductUserId ProductUserId { get; set; } /// /// Access token to enable a user to join a room /// 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); } } }