updated mastodon interface to support polls #93

This commit is contained in:
Nicolas Constant 2019-06-02 20:28:22 -04:00
parent 9c87d6baa5
commit 34644e0652
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import { PlatformLocation } from '@angular/common';
export interface AppData {
client_id: string;
client_secret: string;
@ -174,6 +176,7 @@ export interface Status {
language: string;
pinned: boolean;
card: Card;
poll: Poll;
pleroma: PleromaStatusInfo;
}
@ -191,4 +194,19 @@ export interface Tag {
export interface List {
id: string;
title: string;
}
export interface Poll {
id: string;
expires_at: string;
expired: boolean;
multiple: boolean;
votes_count: number;
options: PollOption[];
voted: boolean;
}
export interface PollOption {
title: string;
votes_count: number;
}