package com.nmakademija.nmaakademija.api;

import com.nmakademija.nmaakademija.entity.Article;
import com.nmakademija.nmaakademija.entity.ScheduleEvent;
import com.nmakademija.nmaakademija.entity.Section;
import com.nmakademija.nmaakademija.entity.TimeUntilSession;
import com.nmakademija.nmaakademija.entity.Academic;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;

public interface NMAService {

    @GET("api/events/")
    Call<List<ScheduleEvent>> getEvents();

    @GET("api/tts/")
    Call<TimeUntilSession> getTimeTillSession();

    @GET("api/users/")
    Call<List<Academic>> getUsers();

    @GET("api/news/")
    Call<List<Article>> getArticles();

    @GET("api/sections/")
    Call<List<Section>> getSections();
}

@@ -135,187 +135,24 @@
 ity.
-ScheduleEvent;%0Aimport com.nmakademija.nmaakademija.entity.Section;%0Aimport com.nmakademija.nmaakademija.entity.TimeUntilSession;%0Aimport com.nmakademija.nmaakademija.entity.Academic
+TimeUntilSession
 ;%0A%0Ai
@@ -260,76 +260,8 @@
  %7B%0A%0A
-    @GET(%22api/events/%22)%0A    Call%3CList%3CScheduleEvent%3E%3E getEvents();%0A%0A
     
@@ -345,180 +345,54 @@
 api/
-users/%22)%0A    Call%3CList%3CAcademic%3E%3E getUsers();%0A%0A    @GET(%22api/news/%22)%0A    Call%3CList%3CArticle%3E%3E getArticles();%0A%0A    @GET(%22api/sections/%22)%0A    Call%3CList%3CSection%3E%3E getSections();
+news/%22)%0A    Call%3CList%3CArticle%3E%3E getArticles();%0A
 %0A%7D%0A

Remove unused NMAServices