diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-04 11:35:04 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-04 11:35:04 +0100 |
commit | 202d51c6a2aea6c24af00605dd76b4fc37e42630 (patch) | |
tree | 2ce699ebb99c127b560392cbd1ab42c034f4433e /src/walletTypes.ts | |
parent | 02b4a2ad6208c3b70a4a194b4c763a4e4334cdc1 (diff) | |
download | wallet-core-202d51c6a2aea6c24af00605dd76b4fc37e42630.tar.xz |
refactor / put some types where they belong
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r-- | src/walletTypes.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts index 15c004c62..3c7bff1eb 100644 --- a/src/walletTypes.ts +++ b/src/walletTypes.ts @@ -570,3 +570,29 @@ export class GetTipPlanchetsRequest { */ static checked: (obj: any) => GetTipPlanchetsRequest; } + + +/** + * Badge that shows activity for the wallet. + */ +export interface Badge { + /** + * Start indicating background activity. + */ + startBusy(): void; + + /** + * Stop indicating background activity. + */ + stopBusy(): void; + + /** + * Show the notification in the badge. + */ + showNotification(): void; + + /** + * Stop showing the notification. + */ + clearNotification(): void; +} |