// 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 class IngestStatOptions { /// /// The Product User ID of the local user requesting the ingest. Set to null for dedicated server. /// public ProductUserId LocalUserId { get; set; } /// /// Stats to ingest. /// public IngestData[] Stats { get; set; } /// /// The Product User ID for the user whose stat is being ingested. /// public ProductUserId TargetUserId { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct IngestStatOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_LocalUserId; private System.IntPtr m_Stats; private uint m_StatsCount; private System.IntPtr m_TargetUserId; public ProductUserId LocalUserId { set { Helper.TryMarshalSet(ref m_LocalUserId, value); } } public IngestData[] Stats { set { Helper.TryMarshalSet(ref m_Stats, value, out m_StatsCount); } } public ProductUserId TargetUserId { set { Helper.TryMarshalSet(ref m_TargetUserId, value); } } public void Set(IngestStatOptions other) { if (other != null) { m_ApiVersion = StatsInterface.IngeststatApiLatest; LocalUserId = other.LocalUserId; Stats = other.Stats; TargetUserId = other.TargetUserId; } } public void Set(object other) { Set(other as IngestStatOptions); } public void Dispose() { Helper.TryMarshalDispose(ref m_LocalUserId); Helper.TryMarshalDispose(ref m_Stats); Helper.TryMarshalDispose(ref m_TargetUserId); } } }