Метод | Описание | |
---|---|---|
CreateNewGroup ( |
Creates a Group as a new entry in the DB.
|
|
DeleteGroup ( int groupId ) : bool |
Removes an existing Group from the DB.
|
|
GetAllGroups ( ) : List |
Retrieves all currently created Groups.
|
|
GetAllGroupsByHashTag ( string hashtag ) : List |
Retrieves all currently created Groups that are tagged with the given hashtag.
|
|
GetAllGroupsByName ( string partialName ) : List |
Retrieves all currently created Groups that have a name containing the given string.
|
|
GetAllGroupsByOwner ( |
Retrieves all currently created Groups that have a given Owner.
|
|
GetGroupFromGroupId ( int groupId ) : |
Retrieves a Group from the DB based on its ID.
|
|
GetGroupFromName ( string name ) : |
Retrieves a Group with the given name.
|
|
GetGroupsByUser ( int userID ) : List |
Retrieves all Groups that a given user is a part of.
|
|
UpdateGroup ( |
Updates an existing Group in the DB.
|
public static CreateNewGroup ( |
||
group | Group object to add to the DB. | |
Результат | int |
public static DeleteGroup ( int groupId ) : bool | ||
groupId | int | ID of Group whose information needs to be deleted. |
Результат | bool |
public static GetAllGroupsByHashTag ( string hashtag ) : List |
||
hashtag | string | A desired string tag |
Результат | List |
public static GetAllGroupsByName ( string partialName ) : List |
||
partialName | string | A string desired to be contained within the Group name |
Результат | List |
public static GetAllGroupsByOwner ( |
||
owner | ||
Результат | List |
public static GetGroupFromGroupId ( int groupId ) : |
||
groupId | int | Identifier of the Group to retrieve. |
Результат |
public static GetGroupFromName ( string name ) : |
||
name | string | |
Результат |
public static GetGroupsByUser ( int userID ) : List |
||
userID | int | UserID of the desired User |
Результат | List |
public static UpdateGroup ( |
||
group | Group whose information needs to be updated. | |
Результат | bool |