Class YoutubeChannelHelper.ChannelHeader
- java.lang.Object
-
- org.schabi.newpipe.extractor.services.youtube.YoutubeChannelHelper.ChannelHeader
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- YoutubeChannelHelper
public static final class YoutubeChannelHelper.ChannelHeader extends java.lang.Object implements java.io.Serializable
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YoutubeChannelHelper.ChannelHeader.HeaderType
Types of supported YouTube channel headers.
-
Field Summary
Fields Modifier and Type Field Description YoutubeChannelHelper.ChannelHeader.HeaderType
headerType
The type of the channel header.com.grack.nanojson.JsonObject
json
The channel header JSON response.
-
Constructor Summary
Constructors Constructor Description ChannelHeader(com.grack.nanojson.JsonObject json, YoutubeChannelHelper.ChannelHeader.HeaderType headerType)
-
-
-
Field Detail
-
json
@Nonnull public final com.grack.nanojson.JsonObject json
The channel header JSON response.
-
headerType
public final YoutubeChannelHelper.ChannelHeader.HeaderType headerType
The type of the channel header.See the documentation of the
YoutubeChannelHelper.ChannelHeader.HeaderType
class for more details.
-
-
Constructor Detail
-
ChannelHeader
public ChannelHeader(@Nonnull com.grack.nanojson.JsonObject json, YoutubeChannelHelper.ChannelHeader.HeaderType headerType)
-
-