// 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 registered event.
///
public class AudioInputStateCallbackInfo : ICallbackInfo, ISettable
{
///
/// Client-specified data passed into .
///
public object ClientData { get; private set; }
///
/// The Product User ID of the user who initiated this request.
///
public ProductUserId LocalUserId { get; private set; }
///
/// The room associated with this event.
///
public string RoomName { get; private set; }
///
/// The status of the audio input.
///
public RTCAudioInputStatus Status { get; private set; }
public Result? GetResultCode()
{
return null;
}
internal void Set(AudioInputStateCallbackInfoInternal? other)
{
if (other != null)
{
ClientData = other.Value.ClientData;
LocalUserId = other.Value.LocalUserId;
RoomName = other.Value.RoomName;
Status = other.Value.Status;
}
}
public void Set(object other)
{
Set(other as AudioInputStateCallbackInfoInternal?);
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct AudioInputStateCallbackInfoInternal : ICallbackInfoInternal
{
private System.IntPtr m_ClientData;
private System.IntPtr m_LocalUserId;
private System.IntPtr m_RoomName;
private RTCAudioInputStatus m_Status;
public object ClientData
{
get
{
object value;
Helper.TryMarshalGet(m_ClientData, out value);
return value;
}
}
public System.IntPtr ClientDataAddress
{
get
{
return m_ClientData;
}
}
public ProductUserId LocalUserId
{
get
{
ProductUserId value;
Helper.TryMarshalGet(m_LocalUserId, out value);
return value;
}
}
public string RoomName
{
get
{
string value;
Helper.TryMarshalGet(m_RoomName, out value);
return value;
}
}
public RTCAudioInputStatus Status
{
get
{
return m_Status;
}
}
}
}