mirror of
https://github.com/KokaKiwi/BarInsta
synced 2025-11-21 05:16:31 +00:00
Set feed item as saved or not from response. Closes https://github.com/austinhuang0131/barinsta/issues/369
This commit is contained in:
parent
d7661f7cf6
commit
06f4ab56c8
1 changed files with 1 additions and 1 deletions
|
|
@ -642,7 +642,7 @@ public final class ResponseBodyUtils {
|
||||||
.setCommentsCount(itemJson.optInt("comment_count"))
|
.setCommentsCount(itemJson.optInt("comment_count"))
|
||||||
.setTimestamp(itemJson.optLong("taken_at", -1))
|
.setTimestamp(itemJson.optLong("taken_at", -1))
|
||||||
.setLiked(itemJson.optBoolean("has_liked"))
|
.setLiked(itemJson.optBoolean("has_liked"))
|
||||||
// .setBookmarked()
|
.setBookmarked(itemJson.optBoolean("has_viewer_saved"))
|
||||||
.setLikesCount(itemJson.optInt("like_count"))
|
.setLikesCount(itemJson.optInt("like_count"))
|
||||||
.setLocationName(locationJson != null ? locationJson.optString("name") : null)
|
.setLocationName(locationJson != null ? locationJson.optString("name") : null)
|
||||||
.setLocationId(locationJson != null ? String.valueOf(locationJson.optLong("pk")) : null)
|
.setLocationId(locationJson != null ? String.valueOf(locationJson.optLong("pk")) : null)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue