added MAL update status and submit loader
This commit is contained in:
@ -287,6 +287,28 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class MALUploadStatus {
|
||||
status: string;
|
||||
is_rewatching: boolean;
|
||||
score: number;
|
||||
num_watched_episodes: number;
|
||||
num_times_rewatched: number;
|
||||
comments: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new MALUploadStatus(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.status = source["status"];
|
||||
this.is_rewatching = source["is_rewatching"];
|
||||
this.score = source["score"];
|
||||
this.num_watched_episodes = source["num_watched_episodes"];
|
||||
this.num_times_rewatched = source["num_times_rewatched"];
|
||||
this.comments = source["comments"];
|
||||
}
|
||||
}
|
||||
export class MALWatchlist {
|
||||
data: struct { Node struct { Id int "json:\"id\" ts_type:\"id\""; Title string "json:\"title\" ts_type:\"title\""; MainPicture struct { Medium string "json:\"medium\" json:\"medium\""; Large string "json:\"large\" json:\"large\"" } "json:\"main_picture\" json:\"mainPicture\"" } "json:\"node\" json:\"node\""; ListStatus struct { Status string "json:\"status\" ts_type:\"status\""; Score int "json:\"score\" ts_type:\"score\""; NumEpisodesWatched int "json:\"num_episodes_watched\" ts_type:\"numEpisodesWatched\""; IsRewatching bool "json:\"is_rewatching\" ts_type:\"isRewatching\""; UpdatedAt time.Time "json:\"updated_at\" ts_type:\"updatedAt\""; StartDate string "json:\"start_date\" ts_type:\"startDate\""; FinishDate string "json:\"finish_date\" ts_type:\"finishDate\"" } "json:\"list_status\" ts_type:\"listStatus\"" }[];
|
||||
paging: paging;
|
||||
|
Reference in New Issue
Block a user