![]() |
Combu
3.2.2
Unity API Documentation
|
Public Member Functions | |
| UserFile () | |
| Initializes a new instance of the UserFile class. More... | |
| UserFile (string jsonString) | |
| Initializes a new instance of the UserFile class from a JSON formatted string. More... | |
| UserFile (Hashtable hash) | |
| Initializes a new instance of the UserFile class from a Hashtable. 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 | Update (byte[] contents, Action< bool, string > callback) |
| Update this file to server. More... | |
| virtual void | Delete (Action< bool, string > callback) |
| Deletes this UserFile from server. More... | |
| virtual void | View (Action< bool, string > callback) |
| Increase the View count of this UserFile. More... | |
| virtual void | Like (Action< bool, string > callback) |
| Increase the Like count of this UserFile. More... | |
| void | Download (Action< byte[]> callback) |
| Download the bytes from the url. More... | |
Static Public Member Functions | |
| static void | Load (long fileId, Action< UserFile, string > callback) |
| Load the file file with the specified Id and callback. More... | |
| static void | Load (string userId, bool includeShared, int pageNumber, int countPerPage, Action< UserFile[], int, int, string > callback) |
| Load the UserFiles with the specified userId, includeShared, pageNumber, countPerPage and callback. More... | |
| static void | Load< T > (string userId, bool includeShared, int pageNumber, int countPerPage, Action< UserFile[], int, int, string > callback) |
| Load the UserFiles with the specified userId, includeShared, pageNumber, countPerPage and callback. More... | |
| static void | Delete (long idFile, Action< bool, string > callback) |
| Deletes the specified File from server. More... | |
| static void | View (long idFile, Action< bool, string > callback) |
| Increase the View count of a UserFile. More... | |
| static void | Like (long idFile, Action< bool, string > callback) |
| Increase the Like count of a UserFile. More... | |
Public Attributes | |
| string | name = "" |
| string | url = "" |
| eShareType | sharing = eShareType.Nobody |
| Hashtable | customData = new Hashtable() |
Static Protected Member Functions | |
| static void | View (UserFile file, long idFile, Action< bool, string > callback) |
| Increase the View count of a UserFile. More... | |
| static void | Like (UserFile file, long idFile, Action< bool, string > callback) |
| Increase the Like count of a UserFile. More... | |
Properties | |
| long | id [get] |
| long | idAccount [get] |
| int | views [get] |
| int | likes [get] |
| Combu.UserFile.UserFile | ( | ) |
Initializes a new instance of the UserFile class.
| Combu.UserFile.UserFile | ( | string | jsonString | ) |
Initializes a new instance of the UserFile class from a JSON formatted string.
| jsonString | JSON formatted string. |
| Combu.UserFile.UserFile | ( | Hashtable | hash | ) |
Initializes a new instance of the UserFile class from a Hashtable.
| hash | Hash. |
|
virtual |
Deletes this UserFile from server.
| callback | Callback. |
|
static |
Deletes the specified File from server.
| idFile | Identifier file. |
| callback | Callback. |
| void Combu.UserFile.Download | ( | Action< byte[]> | callback | ) |
Download the bytes from the url.
| callback | Callback. |
|
virtual |
Initialize the object from a hashtable.
| hash | Hash. |
|
virtual |
Initialize the object from a JSON formatted string.
| jsonString | Json string. |
|
virtual |
Increase the Like count of this UserFile.
| callback | Callback. |
|
static |
Increase the Like count of a UserFile.
| idFile | Identifier file. |
| callback | Callback. |
|
staticprotected |
Increase the Like count of a UserFile.
| file | File. |
| idFile | Identifier file (if File is null). |
| callback | Callback. |
|
static |
Load the file file with the specified Id and callback.
| fileId | File identifier. |
| callback | Callback. |
|
static |
Load the UserFiles with the specified userId, includeShared, pageNumber, countPerPage and callback.
| userId | User identifier. |
| includeShared | If set to true include shared. |
| pageNumber | Page number. |
| countPerPage | Count per page. |
| callback | Callback. |
|
static |
Load the UserFiles with the specified userId, includeShared, pageNumber, countPerPage and callback.
| userId | User identifier. |
| includeShared | If set to true include shared. |
| pageNumber | Page number. |
| countPerPage | Count per page. |
| callback | Callback. |
| T | Type for UserFile. |
| T | : | UserFile | |
| T | : | new() |
|
virtual |
Update this file to server.
| contents | Contents of the file to send. |
| callback | Callback. |
|
virtual |
Increase the View count of this UserFile.
| callback | Callback. |
|
static |
Increase the View count of a UserFile.
| idFile | Identifier file. |
| callback | Callback. |