Skip to content

Commit 473d562

Browse files
committed
Annotate deprecated endpoints
1 parent 4f93394 commit 473d562

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/main/java/com/litesoftwares/coingecko/CoinGeckoApiClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,22 @@ Map<String, Map<String, Double>> getTokenPrice(String id, String contractAddress
8383

8484
List<List<String>> getExchangesVolumeChart(String id, Integer days);
8585

86+
@Deprecated
8687
StatusUpdates getStatusUpdates();
8788

89+
@Deprecated
8890
StatusUpdates getStatusUpdates(String category, String projectType, Integer perPage, Integer page);
8991

92+
@Deprecated
9093
Events getEvents();
9194

95+
@Deprecated
9296
Events getEvents(String countryCode, String type, Integer page, boolean upcomingEventsOnly, String fromDate, String toDate);
9397

98+
@Deprecated
9499
EventCountries getEventsCountries();
95100

101+
@Deprecated
96102
EventTypes getEventsTypes();
97103

98104
ExchangeRates getExchangeRates();

src/main/java/com/litesoftwares/coingecko/CoinGeckoApiService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,30 @@ Call<StatusUpdates> getExchangesStatusUpdatesById(@Path("id") String id, @Query(
107107
@GET("exchanges/{id}/volume_chart")
108108
Call<List<List<String>>> getExchangesVolumeChart(@Path("id") String id,@Query("days") Integer days);
109109

110+
@Deprecated
110111
@GET("status_updates")
111112
Call<StatusUpdates> getStatusUpdates();
112113

114+
@Deprecated
113115
@GET("status_updates")
114116
Call<StatusUpdates> getStatusUpdates(@Query("category") String category, @Query("project_type") String projectType,
115117
@Query("per_page") Integer perPage, @Query("page") Integer page);
116118

119+
@Deprecated
117120
@GET("events")
118121
Call<Events> getEvents();
119122

123+
@Deprecated
120124
@GET("events")
121125
Call<Events> getEvents(@Query("country_code") String countryCode, @Query("type") String type,
122126
@Query("page") Integer page, @Query("upcoming_events_only") boolean upcomingEventsOnly,
123127
@Query("from_date") String fromDate, @Query("to_date") String toDate);
124128

129+
@Deprecated
125130
@GET("events/countries")
126131
Call<EventCountries> getEventsCountries();
127132

133+
@Deprecated
128134
@GET("events/types")
129135
Call<EventTypes> getEventsTypes();
130136

src/main/java/com/litesoftwares/coingecko/impl/CoinGeckoApiClientImpl.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,31 +201,37 @@ public List<List<String>> getExchangesVolumeChart(String id, Integer days) {
201201
return coinGeckoApi.executeSync(coinGeckoApiService.getExchangesVolumeChart(id,days));
202202
}
203203

204+
@Deprecated
204205
@Override
205206
public StatusUpdates getStatusUpdates() {
206207
return coinGeckoApi.executeSync(coinGeckoApiService.getStatusUpdates());
207208
}
208209

210+
@Deprecated
209211
@Override
210212
public StatusUpdates getStatusUpdates(String category, String projectType, Integer perPage, Integer page) {
211213
return coinGeckoApi.executeSync(coinGeckoApiService.getStatusUpdates(category, projectType,perPage,page));
212214
}
213215

216+
@Deprecated
214217
@Override
215218
public Events getEvents() {
216219
return coinGeckoApi.executeSync(coinGeckoApiService.getEvents());
217220
}
218221

222+
@Deprecated
219223
@Override
220224
public Events getEvents(String countryCode, String type, Integer page, boolean upcomingEventsOnly, String fromDate, String toDate) {
221225
return coinGeckoApi.executeSync(coinGeckoApiService.getEvents(countryCode,type,page,upcomingEventsOnly,fromDate,toDate));
222226
}
223227

228+
@Deprecated
224229
@Override
225230
public EventCountries getEventsCountries() {
226231
return coinGeckoApi.executeSync(coinGeckoApiService.getEventsCountries());
227232
}
228233

234+
@Deprecated
229235
@Override
230236
public EventTypes getEventsTypes() {
231237
return coinGeckoApi.executeSync(coinGeckoApiService.getEventsTypes());

0 commit comments

Comments
 (0)