aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pina/HolodexService.java
blob: dcbb2c8122cd234225eb28fe83065b7bee8c43b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.pina;

import java.util.List;

import com.pina.datatypes.Channel;
import com.pina.datatypes.Video;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface HolodexService {
    @GET("/api/v2/live")
    Call<List<Video>> getLiveVideos(
            @Query("channelID") String channelID,
            @Query("id") String id,
            @Query("include") String include,
            @Query("lang") String lang,
            @Query("limit") Integer limit,
            @Query("maxUpcomingHours") Integer offset,
            @Query("mentionedChannelID") String mentionedChannelID,
            @Query("offset") Integer maxUpcomingHours,
            @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
    );

    @GET("/api/v2/videos")
    Call<List<Video>> getVideos(
            @Query("channelID") String channelID,
            @Query("id") String id,
            @Query("include") String include,
            @Query("lang") String lang,
            @Query("limit") Integer limit,
            @Query("maxUpcomingHours") Integer offset,
            @Query("mentionedChannelID") String mentionedChannelID,
            @Query("offset") Integer maxUpcomingHours,
            @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
    );

    @GET("/api/v2/channels/{channelID}")
    Call<Channel> getChannel(
            @Path("channelID") String channelID
    );

    @GET("/api/v2/channels/{channelID}/{type}")
    Call<List<Video>> 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
    );

    @GET("/api/v2/users/live")
    Call<List<Video>> getVideosFromChannels(
            @Query("channels") String channels
    );

    @GET("/api/v2/videos/{videoID}")
    Call<Video> getVideo(
            @Path("videoID") String videoID,
            @Query("lang") String lang,
            @Query("c") String c
    );

    @GET("/api/v2/channels")
    Call<List<Channel>> getChannels(
            @Query("limit") Integer limit,
            @Query("offset") Integer offset,
            @Query("type") String type,
            @Query("lang") String lang,
            @Query("order") String order,
            @Query("org") String org,
            @Query("sort") String sort
    );

}

send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage