// 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 used to call . /// public class LeaveRoomOptions { /// /// Product User ID of the user requesting to leave the room /// public ProductUserId LocalUserId { get; set; } /// /// The room to leave. /// public string RoomName { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct LeaveRoomOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_LocalUserId; private System.IntPtr m_RoomName; public ProductUserId LocalUserId { set { Helper.TryMarshalSet(ref m_LocalUserId, value); } } public string RoomName { set { Helper.TryMarshalSet(ref m_RoomName, value); } } public void Set(LeaveRoomOptions other) { if (other != null) { m_ApiVersion = RTCInterface.LeaveroomApiLatest; LocalUserId = other.LocalUserId; RoomName = other.RoomName; } } public void Set(object other) { Set(other as LeaveRoomOptions); } public void Dispose() { Helper.TryMarshalDispose(ref m_LocalUserId); Helper.TryMarshalDispose(ref m_RoomName); } } }