added MAL Login
This commit is contained in:
@ -177,6 +177,64 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class MyAnimeListUser {
|
||||
id: id;
|
||||
name: name;
|
||||
picture: picture;
|
||||
gender: gender;
|
||||
birthday: birthday;
|
||||
location: location;
|
||||
joined_at: joinedAt;
|
||||
num_items_watching: numItemsWatching;
|
||||
num_items_completed: numItemsCompleted;
|
||||
num_items_on_hold: numItemsOnHold;
|
||||
num_items_dropped: numItemsDropped;
|
||||
num_items_plan_to_watch: numItemsPlanToWatch;
|
||||
num_items: numItems;
|
||||
num_days_watched: numDaysWatched;
|
||||
num_days_watching: numDaysWatching;
|
||||
num_days_completed: numDaysCompleted;
|
||||
num_days_on_hold: numDaysOnHold;
|
||||
num_days_dropped: numDaysDropped;
|
||||
num_days: numDays;
|
||||
num_episodes: numEpisodes;
|
||||
num_times_rewatched: numTimesRewatched;
|
||||
mean_score: meanScore;
|
||||
time_zone: timeZone;
|
||||
is_supporter: isSupporter;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new MyAnimeListUser(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.name = source["name"];
|
||||
this.picture = source["picture"];
|
||||
this.gender = source["gender"];
|
||||
this.birthday = source["birthday"];
|
||||
this.location = source["location"];
|
||||
this.joined_at = source["joined_at"];
|
||||
this.num_items_watching = source["num_items_watching"];
|
||||
this.num_items_completed = source["num_items_completed"];
|
||||
this.num_items_on_hold = source["num_items_on_hold"];
|
||||
this.num_items_dropped = source["num_items_dropped"];
|
||||
this.num_items_plan_to_watch = source["num_items_plan_to_watch"];
|
||||
this.num_items = source["num_items"];
|
||||
this.num_days_watched = source["num_days_watched"];
|
||||
this.num_days_watching = source["num_days_watching"];
|
||||
this.num_days_completed = source["num_days_completed"];
|
||||
this.num_days_on_hold = source["num_days_on_hold"];
|
||||
this.num_days_dropped = source["num_days_dropped"];
|
||||
this.num_days = source["num_days"];
|
||||
this.num_episodes = source["num_episodes"];
|
||||
this.num_times_rewatched = source["num_times_rewatched"];
|
||||
this.mean_score = source["mean_score"];
|
||||
this.time_zone = source["time_zone"];
|
||||
this.is_supporter = source["is_supporter"];
|
||||
}
|
||||
}
|
||||
export class SimklUser {
|
||||
user: user;
|
||||
account: account;
|
||||
|
Reference in New Issue
Block a user