mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-06 05:49:01 +08:00
Add isPinned
This commit is contained in:
@@ -167,6 +167,7 @@ impl CheckUnknown for FanboxItem {
|
|||||||
"feeRequired"+,
|
"feeRequired"+,
|
||||||
"hasAdultContent"+,
|
"hasAdultContent"+,
|
||||||
"isLiked"+,
|
"isLiked"+,
|
||||||
|
"isPinned",
|
||||||
"isRestricted"+,
|
"isRestricted"+,
|
||||||
"likeCount"+,
|
"likeCount"+,
|
||||||
"publishedDatetime"+,
|
"publishedDatetime"+,
|
||||||
@@ -178,7 +179,6 @@ impl CheckUnknown for FanboxItem {
|
|||||||
"iconUrl",
|
"iconUrl",
|
||||||
"userId"+user_id,
|
"userId"+user_id,
|
||||||
],
|
],
|
||||||
"isPinned",
|
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,11 @@ impl FanboxPostArticle {
|
|||||||
self.data["isLiked"].as_bool()
|
self.data["isLiked"].as_bool()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn is_pinned(&self) -> Option<bool> {
|
||||||
|
self.data["isPinned"].as_bool()
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_restricted(&self) -> Option<bool> {
|
pub fn is_restricted(&self) -> Option<bool> {
|
||||||
self.data["isRestricted"].as_bool()
|
self.data["isRestricted"].as_bool()
|
||||||
@@ -185,6 +190,7 @@ impl CheckUnknown for FanboxPostArticle {
|
|||||||
"hasAdultContent"+,
|
"hasAdultContent"+,
|
||||||
"imageForShare",
|
"imageForShare",
|
||||||
"isLiked"+,
|
"isLiked"+,
|
||||||
|
"isPinned"+,
|
||||||
"isRestricted"+,
|
"isRestricted"+,
|
||||||
"likeCount"+,
|
"likeCount"+,
|
||||||
"nextPost",
|
"nextPost",
|
||||||
@@ -236,6 +242,7 @@ impl Debug for FanboxPostArticle {
|
|||||||
.field("has_adult_content", &self.has_adult_content())
|
.field("has_adult_content", &self.has_adult_content())
|
||||||
.field("image_for_share", &self.image_for_share())
|
.field("image_for_share", &self.image_for_share())
|
||||||
.field("is_liked", &self.is_liked())
|
.field("is_liked", &self.is_liked())
|
||||||
|
.field("is_pinned", &self.is_pinned())
|
||||||
.field("is_restricted", &self.is_restricted())
|
.field("is_restricted", &self.is_restricted())
|
||||||
.field("like_count", &self.like_count())
|
.field("like_count", &self.like_count())
|
||||||
.field("next_post", &self.next_post())
|
.field("next_post", &self.next_post())
|
||||||
|
|||||||
Reference in New Issue
Block a user