WIP files

This commit is contained in:
Paul Schneider 2016-11-14 17:54:06 +01:00
commit f2de8d9db5
15 changed files with 351 additions and 57 deletions

View file

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BookAStar.Model.FileSystem
{
public class FileAddress : IEquatable<FileAddress>
{
public string SubPath { get; set; }
public string UserName { get; set; }
public bool Equals(FileAddress other)
{
if (other == null) return false;
if (other.UserName != UserName) return false;
if (other.SubPath != SubPath) return false;
return true;
}
}
public class UserDirectoryInfo : FileAddress
{
public UserFileInfo[] Files
{
get; set;
}
public string[] SubDirectories
{
get; set;
}
}
}

View file

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BookAStar.Model.FileSystem
{
public class UserFileInfo
{
public string Name { get; set; }
public long Size { get; set; }
public DateTime CreationTime { get; set; }
public DateTime LastModified { get; set; }
}
}