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 {
|
export interface AppData {
|
||||||
client_id: string;
|
client_id: string;
|
||||||
client_secret: string;
|
client_secret: string;
|
||||||
|
@ -174,6 +176,7 @@ export interface Status {
|
||||||
language: string;
|
language: string;
|
||||||
pinned: boolean;
|
pinned: boolean;
|
||||||
card: Card;
|
card: Card;
|
||||||
|
poll: Poll;
|
||||||
|
|
||||||
pleroma: PleromaStatusInfo;
|
pleroma: PleromaStatusInfo;
|
||||||
}
|
}
|
||||||
|
@ -191,4 +194,19 @@ export interface Tag {
|
||||||
export interface List {
|
export interface List {
|
||||||
id: string;
|
id: string;
|
||||||
title: 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