// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.Collections.Generic; namespace Squidex.Infrastructure { public static class ResultList { private sealed class Impl : List, IResultList { public long Total { get; } public Impl(IEnumerable items, long total) : base(items) { Total = total; } } public static IResultList Create(long total, IEnumerable items) { return new Impl(items, total); } public static IResultList Create(long total, params T[] items) { return new Impl(items, total); } } }