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.
103 lines
2.7 KiB
103 lines
2.7 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>
|
|
/// Input parameters for the <see cref="RTCAdminInterface.QueryJoinRoomToken" /> function.
|
|
/// </summary>
|
|
public class QueryJoinRoomTokenOptions
|
|
{
|
|
/// <summary>
|
|
/// Product User ID for local user who is querying join room tokens.
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Room name to request a token for.
|
|
/// </summary>
|
|
public string RoomName { get; set; }
|
|
|
|
/// <summary>
|
|
/// An array of Product User IDs indicating the users to retrieve a token for.
|
|
/// </summary>
|
|
public ProductUserId[] TargetUserIds { get; set; }
|
|
|
|
/// <summary>
|
|
/// Array of IP Addresses, one for each of the users we're querying tokens for.
|
|
/// There should be TargetUserIdsCount Ip Addresses, you can set an entry to NULL if not known.
|
|
/// If TargetUserIpAddresses is set to NULL IP Addresses will be ignored.
|
|
/// IPv4 format: "0.0.0.0"
|
|
/// IPv6 format: "0:0:0:0:0:0:0:0"
|
|
/// </summary>
|
|
public string TargetUserIpAddresses { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct QueryJoinRoomTokenOptionsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_RoomName;
|
|
private System.IntPtr m_TargetUserIds;
|
|
private uint m_TargetUserIdsCount;
|
|
private System.IntPtr m_TargetUserIpAddresses;
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_LocalUserId, value);
|
|
}
|
|
}
|
|
|
|
public string RoomName
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_RoomName, value);
|
|
}
|
|
}
|
|
|
|
public ProductUserId[] TargetUserIds
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_TargetUserIds, value, out m_TargetUserIdsCount);
|
|
}
|
|
}
|
|
|
|
public string TargetUserIpAddresses
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_TargetUserIpAddresses, value);
|
|
}
|
|
}
|
|
|
|
public void Set(QueryJoinRoomTokenOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = RTCAdminInterface.QueryjoinroomtokenApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
RoomName = other.RoomName;
|
|
TargetUserIds = other.TargetUserIds;
|
|
TargetUserIpAddresses = other.TargetUserIpAddresses;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as QueryJoinRoomTokenOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_LocalUserId);
|
|
Helper.TryMarshalDispose(ref m_RoomName);
|
|
Helper.TryMarshalDispose(ref m_TargetUserIds);
|
|
Helper.TryMarshalDispose(ref m_TargetUserIpAddresses);
|
|
}
|
|
}
|
|
}
|