public class TelegramNotifier extends AbstractContract<java.lang.String,java.lang.Integer>
Modifier and Type | Class and Description |
---|---|
static interface |
TelegramNotifier.Parameters |
Constructor and Description |
---|
TelegramNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
init(InitializationContext context)
Contract initialization.
|
static void |
main(java.lang.String[] args) |
java.lang.Integer |
processInvocation(DelegatedContext context,
java.lang.String text)
Process internal invocation by another contract
|
isDuplicate, processBlock, processRequest, processTransaction, processVoucher
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
minProductVersion, shutdown
public void init(InitializationContext context)
Contract
Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.
context
- the contract contextpublic java.lang.Integer processInvocation(DelegatedContext context, java.lang.String text)
processInvocation
in interface Contract<java.lang.String,java.lang.Integer>
processInvocation
in class AbstractContract<java.lang.String,java.lang.Integer>
context
- the context delegated by the invoking contracttext
- the text to post on telegrampublic static void main(java.lang.String[] args)