// 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 get information about a specific participant metadata item. /// public class ParticipantMetadata : ISettable { /// /// The unique key of this metadata item. The max size of the string is . /// public string Key { get; set; } /// /// The value of this metadata item. The max size of the string is . /// 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); } } }