Class YoutubeChannelHelper.ChannelHeader
java.lang.Object
org.schabi.newpipe.extractor.services.youtube.YoutubeChannelHelper.ChannelHeader
- All Implemented Interfaces:
Serializable
- Enclosing class:
- YoutubeChannelHelper
A channel header response.
This class allows the distinction between a classic header and a carousel one, used for auto-generated ones like the gaming or music topic channels and for big events such as the Coachella music festival, which have a different data structure and do not return the same properties.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of supported YouTube channel headers. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe type of the channel header.final com.grack.nanojson.JsonObjectThe channel header JSON response. -
Constructor Summary
ConstructorsConstructorDescriptionChannelHeader(com.grack.nanojson.JsonObject json, YoutubeChannelHelper.ChannelHeader.HeaderType headerType) -
Method Summary
-
Field Details
-
json
@Nonnull public final com.grack.nanojson.JsonObject jsonThe channel header JSON response. -
headerType
The type of the channel header.See the documentation of the
YoutubeChannelHelper.ChannelHeader.HeaderTypeclass for more details.
-
-
Constructor Details
-
ChannelHeader
public ChannelHeader(@Nonnull com.grack.nanojson.JsonObject json, YoutubeChannelHelper.ChannelHeader.HeaderType headerType)
-