mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-01-29 18:03:34 +00:00
14 lines
503 B
Python
14 lines
503 B
Python
# From https://expobrain.net/2010/07/31/simple-event-dispatcher-in-python
|
|
from bisq.bots.bisq_events.event import Event
|
|
|
|
|
|
class TradeEvent(Event):
|
|
"""
|
|
When subclassing Event class the only thing you must do is to define
|
|
a list of class level constants which defines the event types and the
|
|
string associated to them
|
|
"""
|
|
|
|
MUST_SEND_PAYMENT_STARTED_MSG_EVENT = 'MUST_SEND_PAYMENT_STARTED_MSG_EVENT'
|
|
MUST_SEND_PAYMENT_RECEIVED_MSG_EVENT = 'MUST_SEND_PAYMENT_RECEIVED_MSG_EVENT'
|