From 7ebec1eb4b20d6d0b45143142b075b47f33f34c5 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 4 Mar 2019 19:36:37 +0100 Subject: [PATCH] Add poll entity --- content/en/api/entities.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/content/en/api/entities.md b/content/en/api/entities.md index 643886be..7bbe4e2c 100644 --- a/content/en/api/entities.md +++ b/content/en/api/entities.md @@ -237,6 +237,25 @@ Please check `app/javascript/mastodon/selectors/index.js` and `app/lib/feed_mana - `reblog` - `favourite` +## Poll + +|Attribute|Type|Nullable|Added in| +|---------|-----------|:------:|:------:| +| `id` | String |{{< no >}}|2.8.0| +| `expires_at` | String (Datetime) |{{< yes >}}|2.8.0| +| `expired` | Boolean |{{< no >}}|2.8.0| +| `multiple` | Boolean |{{< no >}}|2.8.0| +| `votes_count` | Number |{{< no >}}|2.8.0| +| `options` | Array of [Poll option](#poll-option) |{{< no >}}|2.8.0| +| `voted` | Boolean |{{< yes >}}|2.8.0| + +### Poll option + +|Attribute|Type|Nullable|Added in| +|---------|-----------|:------:|:------:| +| `title` | String |{{< no >}}|2.8.0| +| `votes_count` | Number |{{< yes >}}|2.8.0| + ## Push subscription |Attribute|Type|Nullable|Added in|