aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pina/HolodexService.java
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-04-04 22:19:22 -0700
committerPinapelz <donaldshan1@outlook.com>2023-04-04 22:19:22 -0700
commitc0f3a15069c0af41e9196779c829fb545ba870e6 (patch)
treea2d5a7f999892c723e4866b237da9821988c5a9f /src/main/java/com/pina/HolodexService.java
parent4b94e48529e41ef90e3ee6ccbd90668678f1d12d (diff)
Implemented getChannel method and added javadoc to VideoQueryBuilder
Diffstat (limited to 'src/main/java/com/pina/HolodexService.java')
-rw-r--r--src/main/java/com/pina/HolodexService.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/pina/HolodexService.java b/src/main/java/com/pina/HolodexService.java
index da2a62a..40a402c 100644
--- a/src/main/java/com/pina/HolodexService.java
+++ b/src/main/java/com/pina/HolodexService.java
@@ -2,6 +2,7 @@ package com.pina;
import java.util.List;
+import com.pina.datatypes.Channel;
import com.pina.datatypes.Video;
import retrofit2.Call;
import retrofit2.http.GET;
@@ -10,7 +11,7 @@ import retrofit2.http.Query;
public interface HolodexService {
@GET("/api/v2/live")
- Call<List<Video>> getLiveVideo(
+ Call<List<Video>> getLiveVideos(
@Query("channelID") String channelID,
@Query("id") String id,
@Query("include") String include,
@@ -48,12 +49,12 @@ public interface HolodexService {
);
@GET("/api/v2/channels/{channelID}")
- Call<List<Video>> getChannel(
+ Call<Channel> getChannel(
@Path("channelID") String channelID
);
@GET("/api/v2/channels/{channelID}/{type}")
- Call<List<Video>> getChannelType(
+ Call<List<Video>> getVideosByChannelId(
@Path("channelID") String channelID,
@Path("type") String type,
@Query("include") String include,
@@ -64,7 +65,7 @@ public interface HolodexService {
);
@GET("/api/v2/channels/users/live")
- Call<List<Video>> getLiveChannels(
+ Call<List<Video>> getVideosFromChannels(
@Query("channels") String[] channels
);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage