C# Класс mybox.OwnCloudDB

Server side database to store user accounts
Наследование: IServerDB
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckPassword ( String pwordOrig, String pwordHashed ) : bool
Connect ( String connectionString, String baseDataDir ) : void
GetDataDir ( ServerUser user ) : String
GetFileListSerializable ( ServerUser user ) : List>

Gets the file list in a manner that is easy to serialize and send.

GetUserByName ( String userName ) : ServerUser

Get an account from the database via a known ID

OwnCloudDB ( ) : System

Initializes a new instance of the mybox.OwnCloudDB class.

RemoveFile ( ServerUser user, String filePath ) : bool

Removes the file entry from the database.

ShowUsers ( ) : void

Print a list of the accounts in the database

UpdateFile ( ServerUser user, MyFile thisFile ) : bool

Update or insert a new entry for the file into the database

UsersCount ( ) : int

Get the number of entries in the accounts table

Описание методов

CheckPassword() публичный Метод

public CheckPassword ( String pwordOrig, String pwordHashed ) : bool
pwordOrig String
pwordHashed String
Результат bool

Connect() публичный Метод

public Connect ( String connectionString, String baseDataDir ) : void
connectionString String
baseDataDir String
Результат void

GetDataDir() публичный Метод

public GetDataDir ( ServerUser user ) : String
user ServerUser
Результат String

GetFileListSerializable() публичный Метод

Gets the file list in a manner that is easy to serialize and send.
public GetFileListSerializable ( ServerUser user ) : List>
user ServerUser /// This account. ///
Результат List>

GetUserByName() публичный Метод

Get an account from the database via a known ID
public GetUserByName ( String userName ) : ServerUser
userName String
Результат ServerUser

OwnCloudDB() публичный Метод

Initializes a new instance of the mybox.OwnCloudDB class.
public OwnCloudDB ( ) : System
Результат System

RemoveFile() публичный Метод

Removes the file entry from the database.
public RemoveFile ( ServerUser user, String filePath ) : bool
user ServerUser
filePath String
Результат bool

ShowUsers() публичный Метод

Print a list of the accounts in the database
public ShowUsers ( ) : void
Результат void

UpdateFile() публичный Метод

Update or insert a new entry for the file into the database
public UpdateFile ( ServerUser user, MyFile thisFile ) : bool
user ServerUser
thisFile MyFile
Результат bool

UsersCount() публичный Метод

Get the number of entries in the accounts table
public UsersCount ( ) : int
Результат int