Update to latest APIs

This commit is contained in:
Paul Frazee
2022-10-26 14:34:47 -05:00
parent 20890227c9
commit 48158e05cb
74 changed files with 2334 additions and 525 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ export class ProfileViewModel {
followersCount: number = 0
followsCount: number = 0
postsCount: number = 0
badges: GetProfile.Badge[] = []
pinnedBadges: GetProfile.Badge[] = []
myState = new ProfileViewMyStateModel()
constructor(
@@ -134,7 +134,7 @@ export class ProfileViewModel {
this.followersCount = res.data.followersCount
this.followsCount = res.data.followsCount
this.postsCount = res.data.postsCount
this.badges = res.data.badges
this.pinnedBadges = res.data.pinnedBadges
if (res.data.myState) {
Object.assign(this.myState, res.data.myState)
}