+ +
+
Package com.pina
+

Class Holodex

+
+
java.lang.Object +
com.pina.Holodex
+
+
+
+
public class Holodex +extends Object
+
The class for interacting with the Holodex API
+
+
+ +
+
+
    + +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      Holodex

      +
      public Holodex(String apiKey)
      +
      Instantiates a new Holodex with the default base url
      +
      +
      Parameters:
      +
      apiKey - the api key
      +
      +
      +
    • +
    • +
      +

      Holodex

      +
      public Holodex(String apiKey, + String baseUrl)
      +
      Instantiates a new Holodex with a custom base url
      +
      +
      Parameters:
      +
      apiKey - the api key
      +
      baseUrl - the base url
      +
      +
      +
    • +
    +
    +
  • + +
  • +
    +

    Method Details

    +
      +
    • +
      +

      getLiveAndUpcomingVideos

      +
      public List<SimpleVideo> getLiveAndUpcomingVideos(VideoQueryBuilder queryBuilder) + throws HolodexException
      +
      Gets a list of upcoming and/or live SimpleVideos matching the VideoQueryBuilder attributes
      +
      +
      Parameters:
      +
      queryBuilder - the query builder
      +
      Returns:
      +
      the live and upcoming videos
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    • +
      +

      getVideos

      +
      public List<Video> getVideos(VideoQueryBuilder queryBuilder) + throws HolodexException
      +
      Gets a list of videos matching the VideoQueryBuilder attributes
      +
      +
      Parameters:
      +
      queryBuilder - the query builder
      +
      Returns:
      +
      the videos
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    • +
      +

      getChannel

      +
      public Channel getChannel(String channelId) + throws HolodexException
      +
      Gets information about a channel when given a channel id
      +
      +
      Parameters:
      +
      channelId - the channel id
      +
      Returns:
      +
      the channel
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    • +
      +

      getVideosByChannelId

      +
      public List<Video> getVideosByChannelId(VideosByChannelIDQueryBuilder query) + throws HolodexException
      +
      Gets a list of Videos matching the VideoByVideoIdQueryBuilder attributes for a specific channel + Used for when the channel id is known
      +
      +
      Parameters:
      +
      query - the query
      +
      Returns:
      +
      the videos by channel id
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    • +
      +

      getVideosFromChannels

      +
      public List<Video> getVideosFromChannels(String[] channels) + throws HolodexException
      +
      Gets upcoming and live videos from an array of channel ids + Response will contain videos from all channels together + This should be used when there is a set of channels that need to be queried
      +
      +
      Parameters:
      +
      channels - the channel ids to get videos from
      +
      Returns:
      +
      the videos from channels
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    • +
      +

      getVideo

      +
      public Video getVideo(VideoByVideoIdQueryBuilder query) + throws HolodexException
      +
      Gets the video matching the VideoByVideoIdQueryBuilder attributes
      +
      +
      Parameters:
      +
      query - the query
      +
      Returns:
      +
      the video
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    • +
      +

      getChannels

      +
      public List<Channel> getChannels(ChannelQueryBuilder query) + throws HolodexException
      +
      Gets a list of channels the match the ChannelQueryBuilder attributes
      +
      +
      Parameters:
      +
      query - the query
      +
      Returns:
      +
      the channels
      +
      Throws:
      +
      HolodexException - the holodex exception
      +
      +
      +
    • +
    +
    +
  • +
+
+ +