WIP files
This commit is contained in:
parent
8a8167a08f
commit
f2de8d9db5
15 changed files with 351 additions and 57 deletions
35
BookAStar/BookAStar/Model/FileSystem/UserDirectoryInfo.cs
Normal file
35
BookAStar/BookAStar/Model/FileSystem/UserDirectoryInfo.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
19
BookAStar/BookAStar/Model/FileSystem/UserFileInfo.cs
Normal file
19
BookAStar/BookAStar/Model/FileSystem/UserFileInfo.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue