// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.RTCAudio
{
///
/// This struct is passed in with a call to
///
public class UpdateSendingOptions
{
///
/// The Product User ID of the user trying to request this operation.
///
public ProductUserId LocalUserId { get; set; }
///
/// The room this settings should be applied on.
///
public string RoomName { get; set; }
///
/// Muted or unmuted audio track status
///
public RTCAudioStatus AudioStatus { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct UpdateSendingOptionsInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_RoomName;
private RTCAudioStatus m_AudioStatus;
public ProductUserId LocalUserId
{
set
{
Helper.TryMarshalSet(ref m_LocalUserId, value);
}
}
public string RoomName
{
set
{
Helper.TryMarshalSet(ref m_RoomName, value);
}
}
public RTCAudioStatus AudioStatus
{
set
{
m_AudioStatus = value;
}
}
public void Set(UpdateSendingOptions other)
{
if (other != null)
{
m_ApiVersion = RTCAudioInterface.UpdatesendingApiLatest;
LocalUserId = other.LocalUserId;
RoomName = other.RoomName;
AudioStatus = other.AudioStatus;
}
}
public void Set(object other)
{
Set(other as UpdateSendingOptions);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_LocalUserId);
Helper.TryMarshalDispose(ref m_RoomName);
}
}
}