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.
94 lines
2.0 KiB
94 lines
2.0 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 used to get information about a specific participant metadata item.
|
|
/// </summary>
|
|
public class ParticipantMetadata : ISettable
|
|
{
|
|
/// <summary>
|
|
/// The unique key of this metadata item. The max size of the string is <see cref="RTCInterface.ParticipantmetadataKeyMaxcharcount" />.
|
|
/// </summary>
|
|
public string Key { get; set; }
|
|
|
|
/// <summary>
|
|
/// The value of this metadata item. The max size of the string is <see cref="RTCInterface.ParticipantmetadataValueMaxcharcount" />.
|
|
/// </summary>
|
|
public string Value { get; set; }
|
|
|
|
internal void Set(ParticipantMetadataInternal? other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
Key = other.Value.Key;
|
|
Value = other.Value.Value;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as ParticipantMetadataInternal?);
|
|
}
|
|
}
|
|
|
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
|
|
internal struct ParticipantMetadataInternal : ISettable, System.IDisposable
|
|
{
|
|
private int m_ApiVersion;
|
|
private System.IntPtr m_Key;
|
|
private System.IntPtr m_Value;
|
|
|
|
public string Key
|
|
{
|
|
get
|
|
{
|
|
string value;
|
|
Helper.TryMarshalGet(m_Key, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_Key, value);
|
|
}
|
|
}
|
|
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
string value;
|
|
Helper.TryMarshalGet(m_Value, out value);
|
|
return value;
|
|
}
|
|
|
|
set
|
|
{
|
|
Helper.TryMarshalSet(ref m_Value, value);
|
|
}
|
|
}
|
|
|
|
public void Set(ParticipantMetadata other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
m_ApiVersion = RTCInterface.ParticipantmetadataApiLatest;
|
|
Key = other.Key;
|
|
Value = other.Value;
|
|
}
|
|
}
|
|
|
|
public void Set(object other)
|
|
{
|
|
Set(other as ParticipantMetadata);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.TryMarshalDispose(ref m_Key);
|
|
Helper.TryMarshalDispose(ref m_Value);
|
|
}
|
|
}
|
|
}
|