aboutsummaryrefslogtreecommitdiff
path: root/src/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-01-04 11:35:04 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-01-04 11:35:04 +0100
commit202d51c6a2aea6c24af00605dd76b4fc37e42630 (patch)
tree2ce699ebb99c127b560392cbd1ab42c034f4433e /src/walletTypes.ts
parent02b4a2ad6208c3b70a4a194b4c763a4e4334cdc1 (diff)
downloadwallet-core-202d51c6a2aea6c24af00605dd76b4fc37e42630.tar.xz
refactor / put some types where they belong
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r--src/walletTypes.ts26
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;
+}