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.

91 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.Sessions
{
/// <summary>
/// An attribution value and its advertisement setting stored with a session.
/// </summary>
public class SessionDetailsAttribute : ISettable
{
/// <summary>
/// Key/Value pair describing the attribute
/// </summary>
public AttributeData Data { get; set; }
/// <summary>
/// Is this attribution advertised with the backend or simply stored locally
/// </summary>
public SessionAttributeAdvertisementType AdvertisementType { get; set; }
internal void Set(SessionDetailsAttributeInternal? other)
{
if (other != null)
{
Data = other.Value.Data;
AdvertisementType = other.Value.AdvertisementType;
}
}
public void Set(object other)
{
Set(other as SessionDetailsAttributeInternal?);
}
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct SessionDetailsAttributeInternal : ISettable, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_Data;
private SessionAttributeAdvertisementType m_AdvertisementType;
public AttributeData Data
{
get
{
AttributeData value;
Helper.TryMarshalGet<AttributeDataInternal, AttributeData>(m_Data, out value);
return value;
}
set
{
Helper.TryMarshalSet<AttributeDataInternal, AttributeData>(ref m_Data, value);
}
}
public SessionAttributeAdvertisementType AdvertisementType
{
get
{
return m_AdvertisementType;
}
set
{
m_AdvertisementType = value;
}
}
public void Set(SessionDetailsAttribute other)
{
if (other != null)
{
m_ApiVersion = SessionDetails.SessiondetailsAttributeApiLatest;
Data = other.Data;
AdvertisementType = other.AdvertisementType;
}
}
public void Set(object other)
{
Set(other as SessionDetailsAttribute);
}
public void Dispose()
{
Helper.TryMarshalDispose(ref m_Data);
}
}
}