﻿using System;
using System.Collections.Generic;

namespace TryCatch.TaskTwo.RestApi.Model
{
    public class ControllerInfo
    {
        public string Name { get; private set; }

        public bool IsStaticRoute { get; private set; }

        public string Route { get; private set; }

        public Type Type { get; private set; }

        public List<ActionInfo> Methods { get; private set; }

        public ControllerInfo(string name, Type type, string route, bool isStaticRoute, List<ActionInfo> methods)
        {
            Name = name;
            Type = type;
            Route = route;
            IsStaticRoute = isStaticRoute;
            Methods = methods;
        }
    }
}
