![]() |
Combu
2.1.14
Unity API Documentation
|
Public Member Functions | |
| 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... | |
| void | Read (Action< bool, string > callback) |
| Mark this mail as read. More... | |
| void | Unread (Action< bool, string > callback) |
| Mark this mail as read. More... | |
| virtual void | Delete (Action< bool, string > callback) |
| Delete this instance. More... | |
Static Public Member Functions | |
| static void | Load (eMailList listType, int pageNumber, int limit, System.Action< Mail[], int, int, string > callback) |
| static void | Load (eMailList listType, long idRecipient, long idSender, long idGroup, int pageNumber, int limit, System.Action< Mail[], int, int, string > callback) |
| static void | Load< T > (eMailList listType, long idRecipient, long idSender, long idGroup, int pageNumber, int limit, System.Action< T[], int, int, string > callback) |
| Load mails list from specified page and number of records. More... | |
| static void | Send (long recipientId, string subject, string message, bool isPublic, System.Action< bool, string > callback) |
| Sends a mail to a user. More... | |
| static void | Send (long[] recipientsId, string subject, string message, bool isPublic, System.Action< bool, string > callback) |
| Sends the mail to multiple users. More... | |
| static void | Send (string recipientUsername, string subject, string message, bool isPublic, System.Action< bool, string > callback) |
| Sends a mail to a user. More... | |
| static void | Send (string[] recipientsUsername, string subject, string message, bool isPublic, System.Action< bool, string > callback) |
| Sends the mail to multiple users. More... | |
| static void | SendMailToGroup (long groupId, string subject, string message, bool isPublic, System.Action< bool, string > callback) |
| Sends the mail to group. More... | |
| static void | Read (long idMail, Action< bool, string > callback) |
| Mark a single mail as read. More... | |
| static void | Read (long[] idSenders, long[] idGroups, Action< bool, string > callback) |
| Mark a set of mails as read. More... | |
| static void | Unread (long idMail, Action< bool, string > callback) |
| Mark a single mail as read. More... | |
| static void | Delete (long idMail, Action< bool, string > callback) |
| Delete the specified Mail. More... | |
| static void | LoadConversations (Action< ArrayList, int, string > callback) |
| Loads the conversations (list of senders as both users and groups). More... | |
| static void | Count (long[] idUsers, long[] idGroups, Action< MailCount[], string > callback) |
| Loads the read/unread messages from list of senders and groups. More... | |
Public Attributes | |
| long | id = 0 |
| DateTime | sendDate = DateTime.MinValue |
| DateTime | readDate = DateTime.MinValue |
| string | subject = "" |
| string | message = "" |
| bool | isPublic = false |
| User | fromUser |
| User | toUser |
| long | idGroup = 0 |
| UserGroup | toGroup |
Static Protected Member Functions | |
| static void | Send (long[] recipientsId, string[] recipientsUsername, long recipientGroupId, string subject, string message, bool isPublic, System.Action< bool, string > callback) |
| Sends the mail. More... | |
| static void | Read (long idMail, long[] idSenders, long[] idGroups, Action< bool, string > callback) |
| Mark a single mail or a set of mails as read. More... | |
Properties | |
| bool | isRead [get] |
|
static |
Loads the read/unread messages from list of senders and groups.
|
virtual |
Delete this instance.
|
static |
Delete the specified Mail.
| idMail | Identifier mail. |
| 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 mails list from specified page and number of records.
| pageNumber | Page number. |
| limit | Limit. |
| T | Type of returned objects. |
| T | : | ||
| T | : | new() |
|
static |
Loads the conversations (list of senders as both users and groups).
| void Combu.Mail.Read | ( | Action< bool, string > | callback | ) |
Mark this mail as read.
| callback | Callback. |
|
static |
Mark a single mail as read.
| idMail | Identifier mail. |
| callback | Callback. |
|
static |
Mark a set of mails as read.
| idSenders | Identifier senders. |
| idGroups | Identifier groups. |
|
staticprotected |
Mark a single mail or a set of mails as read.
| idMail | Identifier mail. |
| idSenders | Identifier senders. |
| idGroups | Identifier groups. |
| callback | Callback. |
|
static |
Sends a mail to a user.
| idDestination | Identifier Id of the destination user. |
| subject | Subject. |
| message | Message. |
| isPublic | If set to true is public. |
|
static |
Sends the mail to multiple users.
| recipientsId | Recipients identifier. |
| subject | Subject. |
| message | Message. |
| isPublic | If set to true is public. |
|
static |
Sends a mail to a user.
| usernameDestination | Username of the destination user. |
| subject | Subject. |
| message | Message. |
| isPublic | If set to true is public. |
|
static |
Sends the mail to multiple users.
| recipientsUsername | Recipients username. |
| subject | Subject. |
| message | Message. |
| isPublic | If set to true is public. |
|
staticprotected |
Sends the mail.
| recipientsId | Recipients identifier. |
| recipientsUsername | Recipients username. |
| recipientGroupId | Recipient group identifier. |
| subject | Subject. |
| message | Message. |
| isPublic | If set to true is public. |
|
static |
Sends the mail to group.
| groupId | Group identifier. |
| subject | Subject. |
| message | Message. |
| isPublic | If set to true is public. |
| void Combu.Mail.Unread | ( | Action< bool, string > | callback | ) |
Mark this mail as read.
| callback | Callback. |
|
static |
Mark a single mail as read.
| idMail | Identifier mail. |
| callback | Callback. |
1.8.11