// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices { /// /// A page result is part of query callback info. It is used to provide pagination details of query results. /// public struct PageResult { /// /// The index into the ordered query results to start the page at. /// public int StartIndex { get; set; } /// /// The number of results in the current page. /// public int Count { get; set; } /// /// The number of results associated with they original query options. /// public int TotalCount { get; set; } internal void Set(ref PageResultInternal other) { StartIndex = other.StartIndex; Count = other.Count; TotalCount = other.TotalCount; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct PageResultInternal : IGettable, ISettable, System.IDisposable { private int m_StartIndex; private int m_Count; private int m_TotalCount; public int StartIndex { get { return m_StartIndex; } set { m_StartIndex = value; } } public int Count { get { return m_Count; } set { m_Count = value; } } public int TotalCount { get { return m_TotalCount; } set { m_TotalCount = value; } } public void Set(ref PageResult other) { StartIndex = other.StartIndex; Count = other.Count; TotalCount = other.TotalCount; } public void Set(ref PageResult? other) { if (other.HasValue) { StartIndex = other.Value.StartIndex; Count = other.Value.Count; TotalCount = other.Value.TotalCount; } } public void Dispose() { } public void Get(out PageResult output) { output = new PageResult(); output.Set(ref this); } } }