mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-16 11:47:29 +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
@ -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…
Reference in New Issue
Block a user