From 01fa51f3fde9063b1a78c48ca32e9e121c61da2f Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 16 Apr 2023 12:32:18 -0700 Subject: Change package path to domain url --- src/main/java/com/pina/HolodexService.java | 213 ----------------------------- 1 file changed, 213 deletions(-) delete mode 100644 src/main/java/com/pina/HolodexService.java (limited to 'src/main/java/com/pina/HolodexService.java') diff --git a/src/main/java/com/pina/HolodexService.java b/src/main/java/com/pina/HolodexService.java deleted file mode 100644 index 516d419..0000000 --- a/src/main/java/com/pina/HolodexService.java +++ /dev/null @@ -1,213 +0,0 @@ -package com.pina; - -import com.pina.datatypes.*; -import okhttp3.RequestBody; -import retrofit2.Call; -import retrofit2.http.*; - -import javax.xml.transform.Result; -import java.util.List; - -/** - * The interface Holodex service. - */ -public interface HolodexService { - /** - * /api/v2/live endpoint - * - * @param channel_id the YouTube channel id - * @param id the YouTube video id - * @param include the include parameters - * @param lang a comma separated String of languages (e.g "en,ja") - * @param limit the limit for the number of results - * @param maxUpcomingHours number of maximum hours to show upcoming videos - * @param mentioned_channel_id the mentioned channel id of a different channel (for collabs) - * @param offset the offset for the number of results - * @param order the order (asc, desc) - * @param org the organization of which to get videos for (e.g. "Hololive") - * @param paginated paginated field - * @param sort sort by returned field (e.g "start_scheduled") - * @param status filter by video status (e.g. "upcoming") - * @param topic filter by type of video (e.g "stream") - * @param type the type - * @return a list of SimpleVideo objects - */ - @GET("/api/v2/live") - Call> getLiveVideos( - @Query("channel_id") String channel_id, - @Query("id") String id, - @Query("include") String include, - @Query("lang") String lang, - @Query("limit") Integer limit, - @Query("maxUpcomingHours") Integer maxUpcomingHours, - @Query("mentioned_channel_id") String mentioned_channel_id, - @Query("offset") Integer offset, - @Query("order") String order, - @Query("org") String org, - @Query("paginated") String paginated, - @Query("sort") String sort, - @Query("status") String status, - @Query("topic") String topic, - @Query("type") String type - ); - - /** - * /api/v2/video endpoint - * - * @param channel_id the YouTube channel id - * @param id the YouTube video id - * @param include the include parameters comma seperated - * @param lang a comma separated String of languages (e.g "en,ja") - * @param limit the limit for the number of results - * @param max_upcoming_hours number of maximum hours to show upcoming videos - * @param mentioned_channel_id the mentioned channel id of a different channel (for collabs) - * @param offset the offset for the number of results - * @param order the order (asc, desc) - * @param org the organization of which to get videos for (e.g. "Hololive") - * @param paginated paginated field - * @param sort sort by returned field (e.g "start_scheduled") - * @param status filter by video status (e.g. "upcoming") - * @param topic filter by type of video (e.g "stream") - * @param type the type - * @return a list of Video objects - */ - @GET("/api/v2/videos") - Call> getVideos( - @Query("channel_id") String channel_id, - @Query("id") String id, - @Query("include") String include, - @Query("lang") String lang, - @Query("limit") Integer limit, - @Query("max_upcoming_hours") Integer max_upcoming_hours, - @Query("mentioned_channel_id") String mentioned_channel_id, - @Query("offset") Integer offset, - @Query("order") String order, - @Query("org") String org, - @Query("paginated") String paginated, - @Query("sort") String sort, - @Query("status") String status, - @Query("topic") String topic, - @Query("type") String type - ); - - /** - * /api/v2/channels endpoint - * - * @param channelID the channel id - * @return the channel - */ - @GET("/api/v2/channels/{channelID}") - Call getChannel( - @Path("channelID") String channelID - ); - - /** - * /api/v2/channels/{channelID}/{type} endpoint - * - * @param channelID the YouTube channel id - * @param type the type of video resource ("clips", "videos", "collabs") - * @param include the include parameters comma seperated - * @param lang a comma separated String of languages (e.g "en,ja") - * @param limit the limit for the number of results - * @param offset the offset for the number of results - * @param paginated paginated field - * @return list of Videos by channel id - */ - @GET("/api/v2/channels/{channelID}/{type}") - Call> getVideosByChannelId( - @Path("channelID") String channelID, - @Path("type") String type, - @Query("include") String include, - @Query("lang") String lang, - @Query("limit") Integer limit, - @Query("offset") Integer offset, - @Query("paginated") String paginated - ); - - /** - * /api/v2/users/live endpoint - * - * @param channels the channel ids in a comma separated String - * @return the videos from channels - */ - @GET("/api/v2/users/live") - Call> getVideosFromChannels( - @Query("channels") String channels - ); - - /** - * /api/v2/videos/{videoID} endpoint - * - * @param videoID the YouTube video id - * @param lang a comma separated String of languages (e.g "en,ja") - * @param c 1 will return timestamp comments for the video, 0 will not - * @return the video - */ - @GET("/api/v2/videos/{videoID}") - Call