// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Stats { /// /// Input parameters for the function. /// public struct QueryStatsOptions { /// /// The Product User ID of the local user requesting the stats. Set to null for dedicated server. /// public ProductUserId LocalUserId { get; set; } /// /// If not then this is the POSIX timestamp for start time (Optional). /// public System.DateTimeOffset? StartTime { get; set; } /// /// If not then this is the POSIX timestamp for end time (Optional). /// public System.DateTimeOffset? EndTime { get; set; } /// /// An array of stat names to query for (Optional). /// public Utf8String[] StatNames { get; set; } /// /// The Product User ID for the user whose stats are being retrieved /// public ProductUserId TargetUserId { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct QueryStatsOptionsInternal : ISettable, 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); } } }