Added Android code
[wl-app.git] / Android / app / src / main / java / com / moiseum / wolnelektury / connection / services / CategoriesService.java
1 package com.moiseum.wolnelektury.connection.services;
2
3 import com.moiseum.wolnelektury.connection.models.CategoryModel;
4
5 import java.util.List;
6
7 import retrofit2.Call;
8 import retrofit2.http.GET;
9 import retrofit2.http.Query;
10
11 /**
12  * Created by piotrostrowski on 25.11.2017.
13  */
14
15 public interface CategoriesService {
16
17         @GET("epochs")
18         Call<List<CategoryModel>> getEpochs(@Query("book_only") boolean bookOnly);
19
20         @GET("genres")
21         Call<List<CategoryModel>> getGenres(@Query("book_only") boolean bookOnly);
22
23         @GET("kinds")
24         Call<List<CategoryModel>> getKinds(@Query("book_only") boolean bookOnly);
25 }