mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-01-30 18:13:33 +00:00
This might give Python devs an easier time than if all the sample code lived deep inside a gradle project. This means there is no root project gradle build file; the reference-doc-builder and java-examples modules are separate java projects, with their own build files.
14 lines
481 B
Python
14 lines
481 B
Python
# From https://expobrain.net/2010/07/31/simple-event-dispatcher-in-python
|
|
from 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'
|