ghubstan cffbfcf481
Split API examples & doc generator into separate modules
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.
2022-03-16 17:21:25 -03:00

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'