C# Class afung.MangaWeb3.Server.CollectionUser

The CollectionUser class
Afficher le fichier Open project: a-fung/MangaWeb3 Class Usage Examples

Méthodes publiques

Méthode Description
CreateNew ( Collection collection, User user, bool access ) : CollectionUser

Create a new CollectionUser object

DeleteRelations ( int t, int id, int ids ) : void
Get ( Collection collection, User user ) : CollectionUser
GetByCollection ( Collection collection ) : afung.MangaWeb3.Server.CollectionUser[]

Get all CollectionUser objects associated to a collection

GetByUser ( User user ) : afung.MangaWeb3.Server.CollectionUser[]

Get all CollectionUser objects associated to a user

Save ( ) : void
SetRelationsAcess ( int t, int id, int ids, bool access ) : void
ToJson ( ) : CollectionUserJson
ToJsonArray ( CollectionUser cus ) : afung.MangaWeb3.Common.CollectionUserJson[]

Private Methods

Méthode Description
CollectionUser ( ) : System

Instantiate a new instance of CollectionUser class

FromData ( object>.Dictionary data ) : CollectionUser

Create a new instance of CollectionUser using data from database

GetMultiple ( string where ) : afung.MangaWeb3.Server.CollectionUser[]

Method Details

CreateNew() public static méthode

Create a new CollectionUser object
public static CreateNew ( Collection collection, User user, bool access ) : CollectionUser
collection Collection The collection
user User The user
access bool Allow/deny access
Résultat CollectionUser

DeleteRelations() public static méthode

public static DeleteRelations ( int t, int id, int ids ) : void
t int
id int
ids int
Résultat void

Get() public static méthode

public static Get ( Collection collection, User user ) : CollectionUser
collection Collection
user User
Résultat CollectionUser

GetByCollection() public static méthode

Get all CollectionUser objects associated to a collection
public static GetByCollection ( Collection collection ) : afung.MangaWeb3.Server.CollectionUser[]
collection Collection The collection
Résultat afung.MangaWeb3.Server.CollectionUser[]

GetByUser() public static méthode

Get all CollectionUser objects associated to a user
public static GetByUser ( User user ) : afung.MangaWeb3.Server.CollectionUser[]
user User The user
Résultat afung.MangaWeb3.Server.CollectionUser[]

Save() public méthode

public Save ( ) : void
Résultat void

SetRelationsAcess() public static méthode

public static SetRelationsAcess ( int t, int id, int ids, bool access ) : void
t int
id int
ids int
access bool
Résultat void

ToJson() public méthode

public ToJson ( ) : CollectionUserJson
Résultat afung.MangaWeb3.Common.CollectionUserJson

ToJsonArray() public static méthode

public static ToJsonArray ( CollectionUser cus ) : afung.MangaWeb3.Common.CollectionUserJson[]
cus CollectionUser
Résultat afung.MangaWeb3.Common.CollectionUserJson[]