// Copyright (c) Microsoft Open Technologies, Inc. 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; using System.Reflection; namespace Microsoft.AspNet.Mvc.ApplicationModel { public class ControllerModel { public ControllerModel([NotNull] TypeInfo controllerType) { ControllerType = controllerType; Actions = new List(); Attributes = new List(); AttributeRoutes = new List(); ActionConstraints = new List(); Filters = new List(); RouteConstraints = new List(); } public List ActionConstraints { get; private set; } public List Actions { get; private set; } public GlobalModel Application { get; set; } public List Attributes { get; private set; } public string ControllerName { get; set; } public TypeInfo ControllerType { get; private set; } public List Filters { get; private set; } public List RouteConstraints { get; private set; } public List AttributeRoutes { get; private set; } /// /// If true, objects will be created for actions defined by /// this controller. /// public bool? ApiExplorerIsVisible { get; set; } /// /// The value for of /// objects created for actions defined by this controller. /// public string ApiExplorerGroupName { get; set; } } }