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.
97 lines
2.1 KiB
97 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.RTC
|
|
{
|
|
/// <summary>
|
|
/// This struct is passed in with a call to <see cref="RTCInterface.BlockParticipant" />.
|
|
/// </summary>
|
|
public class BlockParticipantOptions
|
|
{
|
|
/// <summary>
|
|
/// Product User ID of the user trying to request this operation.
|
|
/// </summary>
|
|
public ProductUserId LocalUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The room the users should be blocked on.
|
|
/// </summary>
|
|
public string RoomName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Product User ID of the participant to block
|
|
/// </summary>
|
|
public ProductUserId ParticipantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Block or unblock the participant
|
|
/// </summary>
|
|
public bool Blocked { get; set; }
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct BlockParticipantOptionsInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_LocalUserId;
|
|
private System.IntPtr m_RoomName;
|
|
private System.IntPtr m_ParticipantId;
|
|
private int m_Blocked;
|
|
|
|
public ProductUserId LocalUserId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_LocalUserId, value);
|
|
}
|
|
}
|
|
|
|
public string RoomName
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_RoomName, value);
|
|
}
|
|
}
|
|
|
|
public ProductUserId ParticipantId
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_ParticipantId, value);
|
|
}
|
|
}
|
|
|
|
public bool Blocked
|
|
{
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_Blocked, value);
|
|
}
|
|
}
|
|
|
|
public void Set(BlockParticipantOptions other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = RTCInterface.BlockparticipantApiLatest;
|
|
LocalUserId = other.LocalUserId;
|
|
RoomName = other.RoomName;
|
|
ParticipantId = other.ParticipantId;
|
|
Blocked = other.Blocked;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as BlockParticipantOptions);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_LocalUserId);
|
|
Helper.TryMarshalDispose(ref m_RoomName);
|
|
Helper.TryMarshalDispose(ref m_ParticipantId);
|
|
}
|
|
}
|
|
}
|