![]() |
Combu
3.2.2
Unity API Documentation
|
Classes | |
| class | MatchRoundData |
Public Member Functions | |
| Match (string jsonString) | |
| Initializes a new instance of the Combu.Match class. More... | |
| Match (Hashtable data) | |
| Initializes a new instance of the Combu.Match 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 | AddUser (Profile user) |
| Adds the user to this match. More... | |
| virtual void | RemoveUser (Profile user) |
| Removes the user. More... | |
| virtual void | RemoveUser (long idUser) |
| Removes the user. More... | |
| virtual void | RemoveUser (string username) |
| Removes the user. More... | |
| void | Score (float score, Action< bool, string > callback) |
| Send the specified score. More... | |
| void | Save (Action< bool, string > callback) |
| Save the this instance in the server. More... | |
| virtual void | Delete (Action< bool, string > callback) |
| Delete this instance from the database. More... | |
Static Public Member Functions | |
| static void | Delete (long idMatch, Action< bool, string > callback) |
| Delete the specified Match. More... | |
| static void | QuickMatch (bool friendsOnly, SearchCustomData[] customData, int rounds, Action< Match > callback) |
| Creates a quick match. More... | |
| static void | Load (long idTournament, bool activeOnly, string title, Action< Match[]> callback) |
| Load the list of Matchs by specified filters. More... | |
| static void | Load (long idMatch, Action< Match > callback) |
| Load the specified Match. More... | |
Public Attributes | |
| long | id = 0 |
| long | idTournament = 0 |
| string | title = "" |
| int | roundsCount = 1 |
| DateTime | dateCreation = DateTime.Now |
| DateTime? | dateExpire = null |
| Hashtable | customData = new Hashtable() |
Protected Member Functions | |
| virtual void | RemoveUser (long idUser, string username) |
| Removes the user. More... | |
Properties | |
| List< MatchAccount > | users [get] |
| List< MatchRoundData > | rounds [get] |
| bool | finished [get] |
| bool | searchingQuickMatch [get] |
| Combu.Match.Match | ( | string | jsonString | ) |
Initializes a new instance of the Combu.Match class.
| jsonString | JSON string to initialize the instance. |
| Combu.Match.Match | ( | Hashtable | data | ) |
Initializes a new instance of the Combu.Match class.
| data | Data to initialize the instance. |
|
virtual |
Adds the user to this match.
| user | User. |
|
virtual |
Delete this instance from the database.
|
static |
Delete the specified Match.
| idMatch | Identifier match. |
| callback | Callback. |
|
virtual |
Initialize the object from a hashtable.
| hash | Hash. |
|
virtual |
Initialize the object from a JSON formatted string.
| jsonString | Json string. |
|
static |
Load the specified Match.
| idMatch | Identifier match. |
| callback | Callback. |
|
static |
Load the list of Matchs by specified filters.
| idTournament | Identifier tournament. |
| activeOnly | If set to true then displays active matches only, else archived matches. |
| title | Title. |
| callback | Callback. |
|
static |
Creates a quick match.
| callback | Callback. |
|
virtual |
Removes the user.
| idUser | Identifier user. |
|
protectedvirtual |
Removes the user.
| idUser | Identifier user. |
| username | Username. |
|
virtual |
Removes the user.
| username | Username. |
| void Combu.Match.Save | ( | Action< bool, string > | callback | ) |
Save the this instance in the server.
| callback | Callback. |
| void Combu.Match.Score | ( | float | score, |
| Action< bool, string > | callback | ||
| ) |
Send the specified score.
| score | Score. |
| callback | Callback. |