// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.RTC { /// /// This struct is passed in with a call to . /// public struct BlockParticipantOptions { /// /// Product User ID of the user trying to request this operation. /// public ProductUserId LocalUserId { get; set; } /// /// The room the users should be blocked on. /// public Utf8String RoomName { get; set; } /// /// Product User ID of the participant to block /// public ProductUserId ParticipantId { get; set; } /// /// Block or unblock the participant /// 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.Set(value, ref m_LocalUserId); } } public Utf8String RoomName { set { Helper.Set(value, ref m_RoomName); } } public ProductUserId ParticipantId { set { Helper.Set(value, ref m_ParticipantId); } } public bool Blocked { set { Helper.Set(value, ref m_Blocked); } } public void Set(ref BlockParticipantOptions other) { m_ApiVersion = RTCInterface.BlockparticipantApiLatest; LocalUserId = other.LocalUserId; RoomName = other.RoomName; ParticipantId = other.ParticipantId; Blocked = other.Blocked; } public void Set(ref BlockParticipantOptions? other) { if (other.HasValue) { m_ApiVersion = RTCInterface.BlockparticipantApiLatest; LocalUserId = other.Value.LocalUserId; RoomName = other.Value.RoomName; ParticipantId = other.Value.ParticipantId; Blocked = other.Value.Blocked; } } public void Dispose() { Helper.Dispose(ref m_LocalUserId); Helper.Dispose(ref m_RoomName); Helper.Dispose(ref m_ParticipantId); } } }