C# Class DataServer.FileStore

Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Méthode Description
AppendString ( string p, string fileName, string s ) : void
CreateFolder ( string folder ) : void
Empty ( ) : bool
FileStore ( ) : System
FolderExists ( string folder ) : bool
GetBytes ( string folder, string id, bool hash = false ) : Byte[]
GetLocalUrl ( string folder, string Id, bool hash = false ) : string
GetQueue ( ) : void
GetString ( string folder, string id, bool hash = false ) : Task
GetString ( string id ) : string
HasFile ( string id, bool hash = false ) : bool
HasFile ( string folder, string id, bool hash = false ) : bool
Init ( Service s ) : void
LoadBytesFromWeb ( string url ) : Task
LoadImage ( byte imageData, BaseContent c ) : void
LoadImage ( byte imageData, System.Windows.Media.Imaging.BitmapSource &picture ) : void
LoadPhoto ( byte imageData ) : BitmapImage
QueueBytes ( string id ) : void
ReadAllLines ( string id ) : string[]
SaveBytes ( string file, Byte image, bool hash = false ) : bool
SaveBytes ( string folder, string id, Byte image, bool hash = false ) : bool
SaveString ( string folder, string id, string value, bool hash = false ) : bool

Private Methods

Méthode Description
Copy ( string fileName, string newName ) : void
Delete ( string bck ) : void
FileExists ( string file ) : bool
GetFiles ( string folder, string p ) : List
GetFolders ( string folder ) : List
GetLocalFolder ( ) : string
Move ( string fileName, string newName ) : void

Method Details

AppendString() public méthode

public AppendString ( string p, string fileName, string s ) : void
p string
fileName string
s string
Résultat void

CreateFolder() public static méthode

public static CreateFolder ( string folder ) : void
folder string
Résultat void

Empty() public méthode

public Empty ( ) : bool
Résultat bool

FileStore() public méthode

public FileStore ( ) : System
Résultat System

FolderExists() public static méthode

public static FolderExists ( string folder ) : bool
folder string
Résultat bool

GetBytes() public méthode

public GetBytes ( string folder, string id, bool hash = false ) : Byte[]
folder string
id string
hash bool
Résultat Byte[]

GetLocalUrl() public méthode

public GetLocalUrl ( string folder, string Id, bool hash = false ) : string
folder string
Id string
hash bool
Résultat string

GetQueue() public méthode

public GetQueue ( ) : void
Résultat void

GetString() public méthode

public GetString ( string folder, string id, bool hash = false ) : Task
folder string
id string
hash bool
Résultat Task

GetString() public méthode

public GetString ( string id ) : string
id string
Résultat string

HasFile() public méthode

public HasFile ( string id, bool hash = false ) : bool
id string
hash bool
Résultat bool

HasFile() public méthode

public HasFile ( string folder, string id, bool hash = false ) : bool
folder string
id string
hash bool
Résultat bool

Init() public méthode

public Init ( Service s ) : void
s Service
Résultat void

LoadBytesFromWeb() public static méthode

public static LoadBytesFromWeb ( string url ) : Task
url string
Résultat Task

LoadImage() public static méthode

public static LoadImage ( byte imageData, BaseContent c ) : void
imageData byte
c BaseContent
Résultat void

LoadImage() public static méthode

public static LoadImage ( byte imageData, System.Windows.Media.Imaging.BitmapSource &picture ) : void
imageData byte
picture System.Windows.Media.Imaging.BitmapSource
Résultat void

LoadPhoto() public static méthode

public static LoadPhoto ( byte imageData ) : BitmapImage
imageData byte
Résultat System.Windows.Media.Imaging.BitmapImage

QueueBytes() public méthode

public QueueBytes ( string id ) : void
id string
Résultat void

ReadAllLines() public méthode

public ReadAllLines ( string id ) : string[]
id string
Résultat string[]

SaveBytes() public méthode

public SaveBytes ( string file, Byte image, bool hash = false ) : bool
file string
image Byte
hash bool
Résultat bool

SaveBytes() public méthode

public SaveBytes ( string folder, string id, Byte image, bool hash = false ) : bool
folder string
id string
image Byte
hash bool
Résultat bool

SaveString() public static méthode

public static SaveString ( string folder, string id, string value, bool hash = false ) : bool
folder string
id string
value string
hash bool
Résultat bool