From 2662ceca22beb6daa6687dc4ed01cc8b8c2356b9 Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 23 Jan 2021 13:06:07 +0100 Subject: [PATCH] rename getHeartedByCreator and getPinned to isPinned and isHeartedByCreator --- .../schabi/newpipe/extractor/comments/CommentsInfoItem.java | 4 ++-- .../newpipe/extractor/comments/CommentsInfoItemExtractor.java | 4 ++-- .../extractor/comments/CommentsInfoItemsCollector.java | 4 ++-- .../extractors/PeertubeCommentsInfoItemExtractor.java | 4 ++-- .../extractors/SoundcloudCommentsInfoItemExtractor.java | 4 ++-- .../youtube/extractors/YoutubeCommentsInfoItemExtractor.java | 4 ++-- .../services/youtube/YoutubeCommentsExtractorTest.java | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java index 965a55753..5d0f36205 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java @@ -92,11 +92,11 @@ public class CommentsInfoItem extends InfoItem { this.heartedByUploader = isHeartedByUploader; } - public boolean getHeartedByUploader() { + public boolean isHeartedByUploader() { return this.heartedByUploader; } - public boolean getPinned() { + public boolean isPinned() { return pinned; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java index ae93ac892..dd38df7fd 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java @@ -47,10 +47,10 @@ public interface CommentsInfoItemExtractor extends InfoItemExtractor { /** * Whether the comment has been hearted by the uploader */ - boolean getHeartedByUploader() throws ParsingException; + boolean isHeartedByUploader() throws ParsingException; /** * Whether the comment is pinned */ - boolean getPinned() throws ParsingException; + boolean isPinned() throws ParsingException; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemsCollector.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemsCollector.java index c84c2fa7f..2fc0faef9 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemsCollector.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemsCollector.java @@ -71,13 +71,13 @@ public class CommentsInfoItemsCollector extends InfoItemsCollector