kopia lustrzana https://github.com/SP8EBC/MeteoSystem
consumers adjusted to new API design
rodzic
a4dd0b9972
commit
a05a11988a
|
@ -3,12 +3,13 @@ package cc.pogoda.mobile.pogodacc.web;
|
|||
import cc.pogoda.mobile.pogodacc.type.web.ListOfStationData;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Path;
|
||||
import retrofit2.http.Query;
|
||||
|
||||
public interface LastStationDataConsumer {
|
||||
|
||||
@GET("meteo_backend/lastStationData/")
|
||||
Call<ListOfStationData> getLastDataForStation(@Query("station")String station,
|
||||
@GET("meteo_backend/station/{stationName}/lastStationData/")
|
||||
Call<ListOfStationData> getLastDataForStation(@Path("stationName")String station,
|
||||
@Query("ascendingOrder")boolean ascendingOrder,
|
||||
@Query("isLong")boolean isLong);
|
||||
}
|
||||
|
|
|
@ -3,12 +3,13 @@ package cc.pogoda.mobile.pogodacc.web;
|
|||
import cc.pogoda.mobile.pogodacc.type.web.ListOfStationData;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Path;
|
||||
import retrofit2.http.Query;
|
||||
|
||||
public interface StationDataConsumer {
|
||||
|
||||
@GET("meteo_backend/stationData/")
|
||||
Call<ListOfStationData> getDataForStation(@Query("station")String station,
|
||||
@GET("meteo_backend/station/{stationName}/stationData/")
|
||||
Call<ListOfStationData> getDataForStation(@Path("stationName")String station,
|
||||
@Query("from")long from,
|
||||
@Query("to")long to);
|
||||
}
|
||||
|
|
|
@ -4,10 +4,11 @@ package cc.pogoda.mobile.pogodacc.web;
|
|||
import cc.pogoda.mobile.pogodacc.type.web.Summary;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Path;
|
||||
import retrofit2.http.Query;
|
||||
|
||||
public interface SummaryConsumer {
|
||||
|
||||
@GET("meteo_backend/summary/")
|
||||
Call<Summary> getSummaryForStation(@Query("station")String station);
|
||||
@GET("meteo_backend/station/{stationName}/summary/")
|
||||
Call<Summary> getSummaryForStation(@Path("stationName")String station);
|
||||
}
|
||||
|
|
|
@ -3,10 +3,11 @@ package cc.pogoda.mobile.pogodacc.web;
|
|||
import cc.pogoda.mobile.pogodacc.type.web.Trend;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Path;
|
||||
import retrofit2.http.Query;
|
||||
|
||||
public interface TrendConsumer {
|
||||
|
||||
@GET("meteo_backend/trend/")
|
||||
Call<Trend> getTrendForStation(@Query("station")String station);
|
||||
@GET("meteo_backend/station/{stationName}/trend/")
|
||||
Call<Trend> getTrendForStation(@Path("stationName")String station);
|
||||
}
|
||||
|
|
|
@ -109,4 +109,8 @@
|
|||
<string name="callsign">APRS callsign</string>
|
||||
<string name="select_output_file">Select output file</string>
|
||||
<string name="success">Operation successed</string>
|
||||
<string name="failure">Operation failed</string>
|
||||
<string name="knots_long">kn (knots)</string>
|
||||
<string name="export_decimation">Export data decimation</string>
|
||||
<string name="export_decimation_minutes">Minimum time resolution</string>
|
||||
</resources>
|
|
@ -109,4 +109,8 @@
|
|||
<string name="callsign">APRS izsaukuma signāls</string>
|
||||
<string name="select_output_file">Atlasīt izejas fails</string>
|
||||
<string name="success">"Operācija izdevusies "</string>
|
||||
<string name="failure">-</string>
|
||||
<string name="knots_long">kn</string>
|
||||
<string name="export_decimation">Export data decimation</string>
|
||||
<string name="export_decimation_minutes">Minimum time resolution</string>
|
||||
</resources>
|
||||
|
|
|
@ -109,4 +109,8 @@
|
|||
<string name="callsign">APRS izsaukuma signāls</string>
|
||||
<string name="select_output_file">Atlasīt izejas fails</string>
|
||||
<string name="success">"Operācija izdevusies "</string>
|
||||
<string name="failure">-</string>
|
||||
<string name="knots_long">kn</string>
|
||||
<string name="export_decimation">Export data decimation</string>
|
||||
<string name="export_decimation_minutes">Minimum time resolution</string>
|
||||
</resources>
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
<string name="h8_value">Osiem godzin temu</string>
|
||||
<string name="no_comm_with_backend">Brak komunikacji z serwerem</string>
|
||||
<string name="no_stations_in_fav_1">Brak stacji na Twojej liście ulubionych</string>
|
||||
<string name="no_stations_in_fav_2">Proszę użyć menu w oknie szczegułów stacji aby coś tu dodać</string>
|
||||
<string name="no_stations_in_fav_2">Proszę użyć menu w oknie szczegółów stacji aby coś tu dodać</string>
|
||||
<string name="fav_added_success">Stacja została dodana do ulubionych</string>
|
||||
<string name="fav_deleted_success">Stacja została usunięta z ulubionych</string>
|
||||
<string name="settings">Ustawienia</string>
|
||||
|
@ -109,4 +109,8 @@
|
|||
<string name="callsign">Znak wywoławczy w APRS</string>
|
||||
<string name="select_output_file">Wybierz plik wyjściowy</string>
|
||||
<string name="success">Zakończono z powodzeniem</string>
|
||||
<string name="failure">Wystąpił błąd</string>
|
||||
<string name="knots_long">kn (węzły)</string>
|
||||
<string name="export_decimation">Decymacja eskportowanych danych</string>
|
||||
<string name="export_decimation_minutes">Minimalny krok w minutach</string>
|
||||
</resources>
|
|
@ -80,7 +80,7 @@
|
|||
<string name="h8_value">Osiem godzin temu</string>
|
||||
<string name="no_comm_with_backend">Brak komunikacji z serwerem</string>
|
||||
<string name="no_stations_in_fav_1">Brak stacji na Twojej liście ulubionych</string>
|
||||
<string name="no_stations_in_fav_2">Proszę użyć menu w oknie szczegułów stacji aby coś tu dodać</string>
|
||||
<string name="no_stations_in_fav_2">Proszę użyć menu w oknie szczegółów stacji aby coś tu dodać</string>
|
||||
<string name="fav_added_success">Stacja została dodana do ulubionych</string>
|
||||
<string name="fav_deleted_success">Stacja została usunięta z ulubionych</string>
|
||||
<string name="settings">Ustawienia</string>
|
||||
|
@ -109,4 +109,8 @@
|
|||
<string name="callsign">Znak wywoławczy w APRS</string>
|
||||
<string name="select_output_file">Wybierz plik wyjściowy</string>
|
||||
<string name="success">Zakończono z powodzeniem</string>
|
||||
<string name="failure">Wystąpił błąd</string>
|
||||
<string name="knots_long">kn (węzły)</string>
|
||||
<string name="export_decimation">Decymacja eskportowanych danych</string>
|
||||
<string name="export_decimation_minutes">Minimalny krok w minutach</string>
|
||||
</resources>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Pogoda.cc</string>
|
||||
</resources>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Pogoda.cc</string>
|
||||
</resources>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Pogoda.cc</string>
|
||||
</resources>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Pogoda.cc</string>
|
||||
</resources>
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Pogoda.cc</string>
|
||||
</resources>
|
|
@ -128,4 +128,8 @@
|
|||
</string-array>
|
||||
<string name="select_output_file">Select output file</string>
|
||||
<string name="success">Operation successed</string>
|
||||
<string name="failure">Operation failed</string>
|
||||
<string name="knots_long">kn (knots)</string>
|
||||
<string name="export_decimation">Export data decimation</string>
|
||||
<string name="export_decimation_minutes">Minimum time resolution</string>
|
||||
</resources>
|
Ładowanie…
Reference in New Issue