// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.Leaderboards { /// /// Input parameters for the function. /// StartTime and EndTime are optional parameters, they can be used to limit the list of definitions /// to overlap the time window specified. /// public struct QueryLeaderboardDefinitionsOptions { /// /// An optional POSIX timestamp for the leaderboard's start time, or /// public System.DateTimeOffset? StartTime { get; set; } /// /// An optional POSIX timestamp for the leaderboard's end time, or /// public System.DateTimeOffset? EndTime { get; set; } /// /// Product User ID for user who is querying definitions. /// Must be set when using a client policy that requires a valid logged in user. /// Not used for Dedicated Server where no user is available. /// public ProductUserId LocalUserId { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct QueryLeaderboardDefinitionsOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private long m_StartTime; private long m_EndTime; private System.IntPtr 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 ProductUserId LocalUserId { set { Helper.Set(value, ref m_LocalUserId); } } public void Set(ref QueryLeaderboardDefinitionsOptions other) { m_ApiVersion = LeaderboardsInterface.QueryleaderboarddefinitionsApiLatest; StartTime = other.StartTime; EndTime = other.EndTime; LocalUserId = other.LocalUserId; } public void Set(ref QueryLeaderboardDefinitionsOptions? other) { if (other.HasValue) { m_ApiVersion = LeaderboardsInterface.QueryleaderboarddefinitionsApiLatest; StartTime = other.Value.StartTime; EndTime = other.Value.EndTime; LocalUserId = other.Value.LocalUserId; } } public void Dispose() { Helper.Dispose(ref m_LocalUserId); } } }