2014-11-01 03:28:16 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Routing;
|
|
|
|
|
|
|
|
|
|
namespace BuildFeed.Models.ViewModel
|
|
|
|
|
{
|
|
|
|
|
public class SitemapData
|
|
|
|
|
{
|
|
|
|
|
public SitemapDataBuild[] Builds { get; set; }
|
|
|
|
|
public Dictionary<string, SitemapPagedAction[]> Actions { get; set; }
|
2015-05-30 22:14:09 +08:00
|
|
|
|
|
|
|
|
|
public string[] Labs { get; set; }
|
2014-11-01 03:28:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SitemapDataBuild
|
|
|
|
|
{
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SitemapPagedAction
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public RouteValueDictionary UrlParams { get; set; }
|
|
|
|
|
public int Pages { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Action
|
|
|
|
|
{
|
|
|
|
|
get { return UrlParams["action"].ToString(); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string UniqueId
|
|
|
|
|
{
|
|
|
|
|
get { return UrlParams.GetHashCode().ToString("X8").ToLower(); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|