![]() |
Combu
2.1.14
Unity API Documentation
|
Public Member Functions | |
| UserGroup () | |
| Initializes a new instance of the UserGroup class. More... | |
| UserGroup (string jsonString) | |
| Initializes a new instance of the UserGroup class. More... | |
| UserGroup (Hashtable hash) | |
| Initializes a new instance of the UserGroup class. More... | |
| virtual void | FromJson (string jsonString) |
| Initialize the object from a JSON formatted string. More... | |
| virtual void | FromHashtable (Hashtable hash) |
| Initialize the object from a hashtable. More... | |
| virtual void | Save (System.Action< bool, string > callback) |
| Save this instance. More... | |
| virtual void | Delete (System.Action< bool, string > callback) |
| Delete this instance. More... | |
| virtual void | Join (System.Action< bool, string > callback) |
| Join the local user to this group. More... | |
| virtual void | Join (long[] idUsers, System.Action< bool, string > callback) |
| Join the specified idUsers to this group. More... | |
| virtual void | Join (string[] usernames, System.Action< bool, string > callback) |
| Join the specified usernames to this group. More... | |
| virtual void | Leave (System.Action< bool, string > callback) |
| Leave the local user from this group. More... | |
| virtual void | Leave (long[] idUsers, System.Action< bool, string > callback) |
| Leave the specified idUsers from this group. More... | |
| virtual void | Leave (string[] usernames, System.Action< bool, string > callback) |
| Leave the specified usernames from this group. More... | |
Static Public Member Functions | |
| static void | Load (long idOwner, System.Action< UserGroup[], string > callback) |
| static void | Load (string usernameOwner, System.Action< UserGroup[], string > callback) |
| static void | LoadMembership (long idMember, System.Action< UserGroup[], string > callback) |
| static void | LoadMembership (string usernameMember, System.Action< UserGroup[], string > callback) |
| static void | Load (string groupName, int pageNumber, int limit, System.Action< UserGroup[], int, int, string > callback) |
Public Attributes | |
| long | id = 0 |
| string | name |
| long | idOwner |
| User | owner |
| Hashtable | customData = new Hashtable() |
| User[] | users = new User[0] |
Protected Member Functions | |
| virtual void | Join< T > (long[] idUsers, string[] usernames, System.Action< bool, string > callback) |
| Join the specified idUsers/usernames to this group. More... | |
| virtual void | Leave< T > (long[] idUsers, string[] usernames, System.Action< bool, string > callback) |
| Leave the specified idUsers/usernames from this group. More... | |
| Combu.UserGroup.UserGroup | ( | ) |
Initializes a new instance of the UserGroup class.
| Combu.UserGroup.UserGroup | ( | string | jsonString | ) |
Initializes a new instance of the UserGroup class.
| jsonString | Json string. |
| Combu.UserGroup.UserGroup | ( | Hashtable | hash | ) |
Initializes a new instance of the UserGroup class.
| hash | Hash. |
|
virtual |
Delete this instance.
|
virtual |
Initialize the object from a hashtable.
| hash | Hash. |
|
virtual |
Initialize the object from a JSON formatted string.
| jsonString | Json string. |
|
virtual |
Join the local user to this group.
| callback | Callback. |
|
virtual |
Join the specified idUsers to this group.
| idUsers | Identifier users. |
| callback | Callback. |
|
virtual |
Join the specified usernames to this group.
| usernames | Usernames. |
| callback | Callback. |
|
protectedvirtual |
Join the specified idUsers/usernames to this group.
| idUsers | Identifier users. |
| usernames | Usernames. |
| callback | Callback. |
| T | Type for UserGroup records. |
| T | : | UserGroup | |
| T | : | new() |
|
virtual |
Leave the local user from this group.
| callback | Callback. |
|
virtual |
Leave the specified idUsers from this group.
| idUsers | Identifier users. |
| callback | Callback. |
|
virtual |
Leave the specified usernames from this group.
| usernames | Usernames. |
| callback | Callback. |
|
protectedvirtual |
Leave the specified idUsers/usernames from this group.
| idUsers | Identifier users. |
| usernames | Usernames. |
| callback | Callback. |
| T | Type for UserGroup records. |
| T | : | UserGroup | |
| T | : | new() |
|
virtual |
Save this instance.
1.8.11