// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Mvc.ApiExplorer
{
///
/// A cached collection of .
///
public class ApiDescriptionGroupCollection
{
///
/// Initializes a new instance of the .
///
/// The list of .
/// The unique version of discovered groups.
public ApiDescriptionGroupCollection(IReadOnlyList items, int version)
{
if (items == null)
{
throw new ArgumentNullException(nameof(items));
}
Items = items;
Version = version;
}
///
/// Returns the list of .
///
public IReadOnlyList Items { get; }
///
/// Returns the unique version of the current items.
///
public int Version { get; }
}
}