summaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-21 14:48:21 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-21 14:48:21 +0200
commit79bfb618415e99e1a7748a27ef579d145be6e219 (patch)
tree708264f33d623315aa690be2379ad6d8ef715df8 /src/models
parentea707a722e7cc8e9519f24145b231a0b1f3fdf3c (diff)
Support population count
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models')
-rw-r--r--src/models/circle.d.ts4
-rw-r--r--src/models/circle.ts7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/models/circle.d.ts b/src/models/circle.d.ts
index a51a56a8..badc2ced 100644
--- a/src/models/circle.d.ts
+++ b/src/models/circle.d.ts
@@ -59,6 +59,10 @@ export default class Circle {
*/
set description(text: string);
/**
+ * Circle member count
+ */
+ get population(): any;
+ /**
* Circle ini_initiator the current
* user info for this circle
*/
diff --git a/src/models/circle.ts b/src/models/circle.ts
index 3a5880e3..38e0ab0d 100644
--- a/src/models/circle.ts
+++ b/src/models/circle.ts
@@ -105,6 +105,13 @@ export default class Circle {
this._data.description = text
}
+ /**
+ * Circle member count
+ */
+ get population() {
+ return this._data.population
+ }
+
// MEMBERSHIP -----------------------------------------
/**
* Circle ini_initiator the current