// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Sessions { /// /// An attribution value and its advertisement setting stored with a session. /// public struct SessionDetailsAttribute { /// /// Key/Value pair describing the attribute /// public AttributeData? Data { get; set; } /// /// Is this attribution advertised with the backend or simply stored locally /// public SessionAttributeAdvertisementType AdvertisementType { get; set; } internal void Set(ref SessionDetailsAttributeInternal other) { Data = other.Data; AdvertisementType = other.AdvertisementType; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct SessionDetailsAttributeInternal : IGettable, ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_Data; private SessionAttributeAdvertisementType m_AdvertisementType; public AttributeData? Data { get { AttributeData? value; Helper.Get(m_Data, out value); return value; } set { Helper.Set(ref value, ref m_Data); } } public SessionAttributeAdvertisementType AdvertisementType { get { return m_AdvertisementType; } set { m_AdvertisementType = value; } } public void Set(ref SessionDetailsAttribute other) { m_ApiVersion = SessionDetails.SessiondetailsAttributeApiLatest; Data = other.Data; AdvertisementType = other.AdvertisementType; } public void Set(ref SessionDetailsAttribute? other) { if (other.HasValue) { m_ApiVersion = SessionDetails.SessiondetailsAttributeApiLatest; Data = other.Value.Data; AdvertisementType = other.Value.AdvertisementType; } } public void Dispose() { Helper.Dispose(ref m_Data); } public void Get(out SessionDetailsAttribute output) { output = new SessionDetailsAttribute(); output.Set(ref this); } } }