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"+,
|
||||
"hasAdultContent"+,
|
||||
"isLiked"+,
|
||||
"isPinned",
|
||||
"isRestricted"+,
|
||||
"likeCount"+,
|
||||
"publishedDatetime"+,
|
||||
@@ -178,7 +179,6 @@ impl CheckUnknown for FanboxItem {
|
||||
"iconUrl",
|
||||
"userId"+user_id,
|
||||
],
|
||||
"isPinned",
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -80,6 +80,11 @@ impl FanboxPostArticle {
|
||||
self.data["isLiked"].as_bool()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_pinned(&self) -> Option<bool> {
|
||||
self.data["isPinned"].as_bool()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_restricted(&self) -> Option<bool> {
|
||||
self.data["isRestricted"].as_bool()
|
||||
@@ -185,6 +190,7 @@ impl CheckUnknown for FanboxPostArticle {
|
||||
"hasAdultContent"+,
|
||||
"imageForShare",
|
||||
"isLiked"+,
|
||||
"isPinned"+,
|
||||
"isRestricted"+,
|
||||
"likeCount"+,
|
||||
"nextPost",
|
||||
@@ -236,6 +242,7 @@ impl Debug for FanboxPostArticle {
|
||||
.field("has_adult_content", &self.has_adult_content())
|
||||
.field("image_for_share", &self.image_for_share())
|
||||
.field("is_liked", &self.is_liked())
|
||||
.field("is_pinned", &self.is_pinned())
|
||||
.field("is_restricted", &self.is_restricted())
|
||||
.field("like_count", &self.like_count())
|
||||
.field("next_post", &self.next_post())
|
||||
|
||||
Reference in New Issue
Block a user