Plugin : Message
Author:Rex.Rainbow
Download
Properties
Class name
- Class name for storing messages structure.
Lines
Order
- Order.
- Options : ["Earlier to later","Later to earlier"]
Write permission
- All user or sender or receiver could write the save slot.
- Options : ["All users","Sender","Receiver","Sender and receiver","Owner"]
Read permission
- All user or sender or receiver could read the save slot.
- Options : ["All users","Sender","Receiver","Sender and receiver"]
Sender class name
- Class name of sender. "" would ignore this feature.
Receiver class name
- Class name of receiver. "" would ignore this feature.
Actions
Filter - 1. new
Action:New
- Create a new message filter.
Filter - 2. senderID
Action:All senders
- Add all senders into filter.
Action:Add sender
- Add a sender into filter.
- Sender ID ( string ) : Sender ID.
Filter - 3. receiverID
Action:All receivers
- Add all receivers into filter.
Action:Add receiver
- Add a receiver into filter.
- Receiver ID ( string ) : Receiver ID.
Filter - 4. category
Action:All categories
- Add all categories into filter.
Action:Add category
- Add a category into filter.
- Category ( string ) : Category.
Filter - 5. status
Action:All status
- Add all status into filter.
Action:Add status
- Add a status into filter.
- Status ( string ) : Status.
Filter - 6. timestamp
Action:All timestamps
- Add all timestamps into filter.
Action:Add timestamp constraint
- Add a timestamp constraint into filter. They will be jointed by AND operation.
- When ( Combo ) : Before or after the timestamp.
- Options : ["Before","After"]
- Timestamp ( number ) : Timestamp in milliseconds.
- Include ( Combo ) : Include compared timestamp or excluded.
- Options : ["Excluded","Included"]
- Type ( Combo ) : Type of compared timestamp.
- Options : ["Created","Updated"]
Filter - 7. mark
Action:Set mark constraint
- Set mark constraint into filter.
- Mark ( string ) : Unique mark.
- Include ( Combo ) : Include compared timestamp or excluded.
- Options : ["Excluded","Included"]
Initial
Action:Initial table
Load
Action:Request in a range
- Request messages in a range.
- Start ( number ) : Start index, 0-based.
- Lines ( number ) : Count of lines
- Content ( Combo ) : Get content.
- Options : ["without","with"]
Action:Request to page
- Request messages at page.
- Index ( number ) : Page index, 0-based.
- Content ( Combo ) : Get content.
- Options : ["without","with"]
Action:Request current page
- Request messages at current page.
- Content ( Combo ) : Get content.
- Options : ["without","with"]
Action:Request next page
- Request messages at next page.
- Content ( Combo ) : Get content.
- Options : ["without","with"]
Action:Request previous page
- Request messages at previous page.
- Content ( Combo ) : Get content.
- Options : ["without","with"]
Load - all
Action:Request all messages
- Load all messages.
- Content ( Combo ) : Get content.
- Options : ["without","with"]
Load - messageID
Action:Load by messageID
- Load message by messageID.
- Message ID ( string ) : Message ID.
Queried messages count
Action:Get messages count
- Get queried messages count. Maximum of 160 requests per minute.
Remove
Action:Remove by messageID
- Remove message by messageID.
- Message ID ( string ) : Message ID.
Action:Remove queried messages
Send - mark
Action:Append mark
- Append an unique mark on message.
- Message ID ( string ) : Message ID.
- Mark ( string ) : Unique mark.
Action:Remove mark
- Remove mark on message.
- Message ID ( string ) : Message ID.
- Mark ( string ) : Unique mark.
Send - message
Action:Send
- Send message.
- Receiver UserID ( string ) : UserID of receiver.
- Title ( string ) : Title of this message.
- Content ( string ) : Content of this message. String or JSON string for object.
- Category ( string ) : Category of this message for filtering.
- Status ( string ) : Status of this message.
Send - status
Action:Set status
- Change status of message.
- Message ID ( string ) : Message ID.
- Status ( string ) : Status of this message.
User info
Action:Set user
- Set user info.
- Sender ID ( string ) : Sender ID.
- Sender name ( string ) : Sender name.
Expressions
Error
Expression:ErrorCode
Expression:ErrorMessage
Load - for each
Expression:CurSenderID
- Get the current senderID in a For Each loop.
Expression:CurSenderName
- Get the current sender name in a For Each loop.
Expression:CurReceiverID
- Get the current receiverID in a For Each loop.
Expression:CurTitle
- Get the current title in a For Each loop.
Expression:CurContent
- Get the current content in a For Each loop.
Expression:CurMessageID
- Get the current messageID in a For Each loop.
Expression:CurSentAt
- Get the current sent unix timestamp (number of milliseconds since the epoch) in a For Each loop.
Expression:CurStatus
- Get the current status of message in a For Each loop.
Load - for each - index
Expression:CurMessageIndex
- Get the current message index in a For Each loop.
Expression:CurStartIndex
- Get start index in current received page.
Expression:LoopIndex
- Get loop index in current received page.
Queried messages count
Expression:LastMessagesCount
- Get last queried messages count under "Condition: On get messages count complete".
Received
Expression:MessagesToJSON
- Get all read messages in JSON string.
Expression:CurMessageCount
- Get message count in current received page.
Received - messageID
Expression:LastFetchedSenderID
- Get senderID under "Condition: On load by messageID complete".
Expression:LastFetchedSenderName
- Get sender name under "Condition: On load by messageID complete".
Expression:LastFetchedReceiverID
- Get receiverID under "Condition: On load by messageID complete".
Expression:LastFetchedTitle
- Get title under "Condition: On load by messageID complete".
Expression:LastFetchedContent
- Get content under "Condition: On load by messageID complete".
Expression:LastFetchedMessageID
- Get messageID under "Condition: On load by messageID complete".
Expression:LastFetchedSentAt
- Get sent unix timestamp (number of milliseconds since the epoch) under "Condition: On load by messageID complete".
Expression:LastFetchedStatus
- Get status under "Condition: On load by messageID complete".
Remove
Expression:LastRemovedMessageID
- Get last removed messageID under "Condition:On remove complete".
Send
Expression:LastSentMessageID
- Get last sent messageID under "Condition:On send complete".
User info
Expression:MyUserID
Expression:MyUserName
Conditions
Load
Condition:On received
- Triggered when received messages.
Condition:On received error
- Triggered when received messages error.
Condition:Last page
- Return true if current page is the last page.
Load - for each
Condition:For each message
- Repeat the event for each message.
Condition:For each message in a range
- Repeat the event for each message in a range.
- Start ( number ) : Start from message index (0-based).
- End ( number ) : End to message index (0-based). This value should larger than Start.
Load by messageID
Condition:On load by messageID complete
- Triggered when load by messageID message complete.
Condition:On load by messageID error
- Triggered when load by messageID message error.
Queried messages count
Condition:On get messages count complete
- Triggered when get messages count.
Condition:On get messages count error
- Triggered when get messages count error.
Remove by messageID
Condition:On remove by messageID complete
- Triggered when remove complete.
Condition:On remove by messageID error
- Triggered when remove error.
Remove queried messages
Condition:On remove queried messages complete
- Triggered when remove complete.
Condition:On remove queried messages error
- Triggered when remove error.
Send - mark
Condition:On update mark complete
- Triggered when update mark complete.
Condition:On update mark error
- Triggered when update mark error.
Send - message
Condition:On send complete
- Triggered when send complete.
Condition:On send error
- Triggered when send error.
Send - status
Condition:On set status complete
- Triggered when set status complete.
Condition:On set status error
- Triggered when set status error.