2014-11-01 03:28:16 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2018-10-07 02:20:54 +08:00
|
|
|
|
using Microsoft.AspNetCore.Routing;
|
2014-11-01 03:28:16 +08:00
|
|
|
|
|
2016-08-20 05:10:55 +08:00
|
|
|
|
namespace BuildFeed.Model.View
|
2014-11-01 03:28:16 +08:00
|
|
|
|
{
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public class SitemapData
|
|
|
|
|
{
|
2018-10-29 06:15:30 +08:00
|
|
|
|
public IReadOnlyDictionary<string, IReadOnlyCollection<SitemapPagedAction>> Actions { get; set; }
|
|
|
|
|
public IReadOnlyCollection<SitemapDataBuildGroup> Builds { get; set; }
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2018-10-29 06:15:30 +08:00
|
|
|
|
public IReadOnlyCollection<string> Labs { get; set; }
|
2017-02-24 04:53:49 +08:00
|
|
|
|
}
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public class SitemapDataBuildGroup
|
|
|
|
|
{
|
2018-10-29 06:15:30 +08:00
|
|
|
|
public IReadOnlyCollection<SitemapDataBuild> Builds { get; set; }
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public BuildGroup Id { get; set; }
|
|
|
|
|
}
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public class SitemapDataBuild
|
|
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
}
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public class SitemapPagedAction
|
|
|
|
|
{
|
|
|
|
|
public string Action => UrlParams["action"].ToString();
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public int Pages { get; set; }
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public string UniqueId => UrlParams.GetHashCode().ToString("X8").ToLower();
|
2016-07-15 21:39:30 +08:00
|
|
|
|
|
2017-02-24 04:53:49 +08:00
|
|
|
|
public RouteValueDictionary UrlParams { get; set; }
|
|
|
|
|
}
|
2014-11-01 03:28:16 +08:00
|
|
|
|
}
|