reactredux/webapi/WeatherForecast/Models/RouteModel.cs

20 lines
535 B
C#

namespace WeatherForecast.Models {
public class RouteModel {
public string Target { get; private set; }
public string? Component { get; private set; }
public List<RouteModel>? ChildRoutes { get; private set; }
private RouteModel(string target) {
Target = target;
}
public RouteModel(string target, string component) : this(target) {
Component = component;
}
public RouteModel(string target, List<RouteModel> childRoutes) : this(target) {
ChildRoutes = childRoutes;
}
}
}