Plugin : Save slot

Author:Rex.Rainbow

Download

Properties

Domain

  • The root location of the Firebase data.

Sub domain

  • Sub domain of this function.

Actions

0. Setup

Action:Set owner

  • Set user ID of slot owner.
    • User ID ( string ) : User ID from authentication.

Clean

Action:Clean all slots

  • Clean all slots on server.

Action:Clean slot

  • Clean slot on server.
    • Name ( number or string ) : The slot name.

Load

Action:Get all headers

  • Get all slot headers from server.

Action:Get body

  • Get slot body from server.
    • Name ( number or string ) : The slot name.

Prepare

Action:Set value

  • Sets value into slot.
    • Key ( number or string ) : The name of the key.
    • Value ( number or string ) : The value to set
    • Slot ( Combo ) : Header or body.
      • Options : ["Header","Body"]

Action:Set boolean value

  • Sets boolean value into slot.
    • Key ( number or string ) : The name of the key.
    • Boolean ( Combo ) : Boolean value.
      • Options : ["False","True"]
    • Slot ( Combo ) : Header or body.
      • Options : ["Header","Body"]

Action:Set to current server timestamp

  • Sets current server timestamp into slot.
    • Key ( number or string ) : The name of the key.
    • Slot ( Combo ) : Header or body.
      • Options : ["Header","Body"]

Action:Remove key

  • Remove from slot.
    • Key ( number or string ) : The name of the key.
    • Slot ( Combo ) : Header or body.
      • Options : ["Header","Body"]

Action:Set JSON

  • Sets JSON into slot.
    • Key ( number or string ) : The name of the key.
    • JSON ( string ) : The JSON to set
    • Slot ( Combo ) : Header or body.
      • Options : ["Header","Body"]

Save

Action:Save

  • Save slot into server.
    • Name ( number or string ) : The slot name.

Expressions

Body

Expression:BodyValue

  • Get body value by key. Add key at 1st parameter, add default value at 2nd parameter if read data is null

Expression:LastSlotName

  • Get last loaded slot name.

Error

Expression:LastErrorCode

  • Error code.

Expression:LastErrorMessage

  • Error message (error.serverResponse) .

For each header

Expression:CurSlotName

  • Get current slot name in a For Each loop.

Expression:CurHeaderValue

  • Get current header value by key in a For Each loop. Add default value at 2nd parameter if read data is null.

For each key

Expression:CurKey

  • Get current key in a For Each loop.

Expression:CurValue

  • Get current value in a For Each loop.

Headers

Expression:HeaderValue

  • Get header value by slot name and key. Add default value at 3rd parameter if read data is null.

JSON

Expression:HeadersToJSON

  • Get all headers in JSON string.

Expression:BodyToJSON

  • Get all body values in JSON string.

Conditions

Body

Condition:Invalid body

  • Current loaded body is invalid.

Body - for each

Condition:For each key

  • Repeat the event for each key in body.

Clean

Condition:On clean

  • Triggered when clean slots complete on server complete.

Condition:On clean error

  • Triggered when clean slots error on server error.

Header

Condition:All slots are empty

  • All slots are unused. Call it after load headers from server.

Condition:Slot is occupied

  • Slot is occupied. Call it after load headers from server.
    • Name ( number or string ) : The slot name.

Header - for each

Condition:For each key

  • Repeat the event for each key in a header.
    • Name ( number or string ) : The slot name.

Load - body

Condition:On get body

  • Triggered when get slot body complete from server complete.

Condition:On get unused body

  • Triggered when get unused body.

Condition:On get body error

  • Triggered when get slot body error.

Load - header

Condition:On get headers

  • Triggered when get all slot headers from server.

Condition:For each header

  • Repeat the event for each slot header.

Condition:On get headers error

  • Triggered when get all slot headers error.

Save

Condition:On save

  • Triggered when save complete.

Condition:On save error

  • Triggered when save error.