|
enum | eShareType { Everybody,
Nobody,
Friends
} |
|
|
| 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 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...
|
|
|
string | name = "" |
|
string | url = "" |
|
eShareType | sharing = eShareType.Nobody |
|
Hashtable | customData = new Hashtable() |
|
|
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.
- Parameters
-
jsonString | JSON formatted string. |
Combu.UserFile.UserFile |
( |
Hashtable |
hash | ) |
|
Initializes a new instance of the UserFile class from a Hashtable.
- Parameters
-
virtual void Combu.UserFile.Delete |
( |
Action< bool, string > |
callback | ) |
|
|
virtual |
Deletes this UserFile from server.
- Parameters
-
static void Combu.UserFile.Delete |
( |
long |
idFile, |
|
|
Action< bool, string > |
callback |
|
) |
| |
|
static |
Deletes the specified File from server.
- Parameters
-
idFile | Identifier file. |
callback | Callback. |
void Combu.UserFile.Download |
( |
Action< byte[]> |
callback | ) |
|
Download the bytes from the url.
- Parameters
-
virtual void Combu.UserFile.FromHashtable |
( |
Hashtable |
hash | ) |
|
|
virtual |
Initialize the object from a hashtable.
- Parameters
-
virtual void Combu.UserFile.FromJson |
( |
string |
jsonString | ) |
|
|
virtual |
Initialize the object from a JSON formatted string.
- Parameters
-
virtual void Combu.UserFile.Like |
( |
Action< bool, string > |
callback | ) |
|
|
virtual |
Increase the Like count of this UserFile.
- Parameters
-
static void Combu.UserFile.Like |
( |
long |
idFile, |
|
|
Action< bool, string > |
callback |
|
) |
| |
|
static |
Increase the Like count of a UserFile.
- Parameters
-
idFile | Identifier file. |
callback | Callback. |
static void Combu.UserFile.Like |
( |
UserFile |
file, |
|
|
long |
idFile, |
|
|
Action< bool, string > |
callback |
|
) |
| |
|
staticprotected |
Increase the Like count of a UserFile.
- Parameters
-
file | File. |
idFile | Identifier file (if File is null). |
callback | Callback. |
static void Combu.UserFile.Load |
( |
string |
userId, |
|
|
bool |
includeShared, |
|
|
int |
pageNumber, |
|
|
int |
countPerPage, |
|
|
Action< UserFile[], int, int, string > |
callback |
|
) |
| |
|
static |
Load the UserFiles with the specified userId, includeShared, pageNumber, countPerPage and callback.
- Parameters
-
userId | User identifier. |
includeShared | If set to true include shared. |
pageNumber | Page number. |
countPerPage | Count per page. |
callback | Callback. |
static void Combu.UserFile.Load< T > |
( |
string |
userId, |
|
|
bool |
includeShared, |
|
|
int |
pageNumber, |
|
|
int |
countPerPage, |
|
|
Action< UserFile[], int, int, string > |
callback |
|
) |
| |
|
static |
Load the UserFiles with the specified userId, includeShared, pageNumber, countPerPage and callback.
- Parameters
-
userId | User identifier. |
includeShared | If set to true include shared. |
pageNumber | Page number. |
countPerPage | Count per page. |
callback | Callback. |
- Template Parameters
-
virtual void Combu.UserFile.Update |
( |
byte[] |
contents, |
|
|
Action< bool, string > |
callback |
|
) |
| |
|
virtual |
Update this file to server.
- Parameters
-
contents | Contents of the file to send. |
callback | Callback. |
virtual void Combu.UserFile.View |
( |
Action< bool, string > |
callback | ) |
|
|
virtual |
Increase the View count of this UserFile.
- Parameters
-
static void Combu.UserFile.View |
( |
long |
idFile, |
|
|
Action< bool, string > |
callback |
|
) |
| |
|
static |
Increase the View count of a UserFile.
- Parameters
-
idFile | Identifier file. |
callback | Callback. |
static void Combu.UserFile.View |
( |
UserFile |
file, |
|
|
long |
idFile, |
|
|
Action< bool, string > |
callback |
|
) |
| |
|
staticprotected |
Increase the View count of a UserFile.
- Parameters
-
file | File. |
idFile | Identifier file (if File is null). |
callback | Callback. |
The documentation for this class was generated from the following file:
- /Users/ziored/Documents/Projects/Unity/Empty Test/Assets/Combu/Scripts/UserFile.cs