piermesh/docs/Services/Action.md

780 B

Services.Action

class Services.Action.Action(action, data, sender=None, senderID=None, sourceNode=None, recipient=None, recipientNode=None)

Generic action class for triggering actions from sub processes on the main thread

🔗 Source

action

Action to run

  • Type: str

data

Data to pass to action

  • Type: dict

sender

Sender identifier

  • Type: str

senderID

Sender second level identifier

  • Type: str

sourceNode

Sending node

  • Type: str

recipient

Peer identifier to route to

  • Type: str

recipientNode

Intended destination node identifier

getAction()

getData()