The api begins

This commit is contained in:
2023-12-20 10:48:01 +02:00
parent b8da1da801
commit 0b45765f4a
3 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package com.example.myapp_1.DB;
public class Arrival
{
public String getArrivalTime()
{
return arrivalTime;
}
public void setArrivalTime(String arrivalTime)
{
this.arrivalTime = arrivalTime;
}
private String arrivalTime;
Arrival(String time) {
this.arrivalTime = time;
}
}

View File

@@ -0,0 +1,17 @@
package com.example.myapp_1.DB;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
public interface GetArrivals
{
//Specify the request type and pass the relative URL//
@GET("/users")
//Wrap the response in a Call object with the type of the expected result//
Call<List<Arrival>> getAllArrivals();
}