updated mastodon interface to support polls #93
This commit is contained in:
parent
9c87d6baa5
commit
34644e0652
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue