Package com.jelurida.ardor.contracts
Class TelegramNotifier
Post a message to slack using a web hook.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(InitializationContext context) Contract initialization.static voidprocessInvocation(DelegatedContext context, String text) Process internal invocation by another contractMethods inherited from class nxt.addons.AbstractContract
isDuplicate, processBlock, processRequest, processTransaction, processVoucherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.addons.Contract
minProductVersion, shutdown
-
Constructor Details
-
TelegramNotifier
public TelegramNotifier()
-
-
Method Details
-
init
Description copied from interface:ContractContract initialization.Invoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.
- Parameters:
context- the contract context
-
processInvocation
Process internal invocation by another contract- Specified by:
processInvocationin interfaceContract<String,Integer> - Overrides:
processInvocationin classAbstractContract<String,Integer> - Parameters:
context- the context delegated by the invoking contracttext- the text to post on telegram- Returns:
- response code
-
main
-