Skip to content

Commit

Permalink
add isPinned
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc authored Sep 17, 2024
1 parent 073ff53 commit dd6219a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fanbox/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ impl FanboxItem {
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()
Expand Down Expand Up @@ -173,6 +178,7 @@ impl CheckUnknown for FanboxItem {
"iconUrl",
"userId"+user_id,
],
"isPinned",
);
Ok(())
}
Expand All @@ -192,6 +198,7 @@ impl Debug for FanboxItem {
.field("fee_required", &self.fee_required())
.field("has_adult_content", &self.has_adult_content())
.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("published_datetime", &self.published_datetime())
Expand Down

0 comments on commit dd6219a

Please sign in to comment.