websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/FileSystem/ResourceTableItemModel.cs
2015-03-02 05:10:53 -08:00

49 lines
No EOL
1.4 KiB
C#

using System;
using WebsitePanel.WebDav.Core.Client;
using WebsitePanel.WebDavPortal.Models.Common.DataTable;
namespace WebsitePanel.WebDavPortal.Models.FileSystem
{
public class ResourceTableItemModel : JqueryDataTableBaseEntity
{
public string DisplayName { get; set; }
public string Url { get; set; }
public Uri Href { get; set; }
public bool IsTargetBlank { get; set; }
public bool IsFolder { get; set; }
public long Size { get; set; }
public bool IsRoot { get; set; }
public long Quota { get; set; }
public string Type { get; set; }
public DateTime LastModified { get; set; }
public string LastModifiedFormated { get; set; }
public string IconHref { get; set; }
public override dynamic this[int index]
{
get
{
switch (index)
{
case 1 :
{
return Size;
}
case 2:
{
return LastModified;
}
case 3:
{
return Type;
}
default:
{
return DisplayName;
}
}
}
}
}
}