1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
711 B

using System;
using System.Collections.Generic;
using System.Text;
using PhilExampleCrawler.Common.Interfaces;
namespace PhilExampleCrawler.Common.Models
{
public class Category : ICategory
{
public string Name { get; }
public int ID { get; }
public List<SubCategory> SubCategories { get; } = new List<SubCategory>();
public Category(string name, int id)
{
Name = name;
ID = id;
}
}
public class SubCategory : ICategory
{
public string Name { get; }
public int ID { get; }
public SubCategory(string name, int id)
{
Name = name;
ID = id;
}
}
}