diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-06-21 14:48:21 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-06-21 14:48:21 +0200 |
commit | 79bfb618415e99e1a7748a27ef579d145be6e219 (patch) | |
tree | 708264f33d623315aa690be2379ad6d8ef715df8 /src/models | |
parent | ea707a722e7cc8e9519f24145b231a0b1f3fdf3c (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.ts | 4 | ||||
-rw-r--r-- | src/models/circle.ts | 7 |
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 |