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.

118 lines
2.9 KiB

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Stats
{
/// <summary>
/// Input parameters for the <see cref="StatsInterface.QueryStats" /> function.
/// </summary>
public struct QueryStatsOptions
{
/// <summary>
/// The Product User ID of the local user requesting the stats. Set to null for dedicated server.
/// </summary>
public ProductUserId LocalUserId { get; set; }
/// <summary>
/// If not <see cref="StatsInterface.TimeUndefined" /> then this is the POSIX timestamp for start time (Optional).
/// </summary>
public System.DateTimeOffset? StartTime { get; set; }
/// <summary>
/// If not <see cref="StatsInterface.TimeUndefined" /> then this is the POSIX timestamp for end time (Optional).
/// </summary>
public System.DateTimeOffset? EndTime { get; set; }
/// <summary>
/// An array of stat names to query for (Optional).
/// </summary>
public Utf8String[] StatNames { get; set; }
/// <summary>
/// The Product User ID for the user whose stats are being retrieved
/// </summary>
public ProductUserId TargetUserId { get; set; }
}
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)]
internal struct QueryStatsOptionsInternal : ISettable<QueryStatsOptions>, System.IDisposable
{
private int m_ApiVersion;
private System.IntPtr m_LocalUserId;
private long m_StartTime;
private long m_EndTime;
private System.IntPtr m_StatNames;
private uint m_StatNamesCount;
private System.IntPtr m_TargetUserId;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public System.DateTimeOffset? StartTime
{
set
{
Helper.Set(value, ref m_StartTime);
}
}
public System.DateTimeOffset? EndTime
{
set
{
Helper.Set(value, ref m_EndTime);
}
}
public Utf8String[] StatNames
{
set
{
Helper.Set(value, ref m_StatNames, true, out m_StatNamesCount);
}
}
public ProductUserId TargetUserId
{
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public void Set(ref QueryStatsOptions other)
{
m_ApiVersion = StatsInterface.QuerystatsApiLatest;
LocalUserId = other.LocalUserId;
StartTime = other.StartTime;
EndTime = other.EndTime;
StatNames = other.StatNames;
TargetUserId = other.TargetUserId;
}
public void Set(ref QueryStatsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = StatsInterface.QuerystatsApiLatest;
LocalUserId = other.Value.LocalUserId;
StartTime = other.Value.StartTime;
EndTime = other.Value.EndTime;
StatNames = other.Value.StatNames;
TargetUserId = other.Value.TargetUserId;
}
}
public void Dispose()
{
Helper.Dispose(ref m_LocalUserId);
Helper.Dispose(ref m_StatNames);
Helper.Dispose(ref m_TargetUserId);
}
}
}