X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff..269195b3729c1bdc22e9053ee4ebca667ea8549d:/Android/app/src/main/java/com/moiseum/wolnelektury/connection/services/NewsService.java diff --git a/Android/app/src/main/java/com/moiseum/wolnelektury/connection/services/NewsService.java b/Android/app/src/main/java/com/moiseum/wolnelektury/connection/services/NewsService.java new file mode 100644 index 0000000..fa317eb --- /dev/null +++ b/Android/app/src/main/java/com/moiseum/wolnelektury/connection/services/NewsService.java @@ -0,0 +1,16 @@ +package com.moiseum.wolnelektury.connection.services; + +import com.moiseum.wolnelektury.connection.models.NewsModel; + +import java.util.List; + +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.Path; +import retrofit2.http.Query; + +public interface NewsService { + + @GET("blog") + Call> getNews(@Query("after") String lastKey, @Query("count") int count); +}