Skip to content

Commit

Permalink
Merge branch 'Philipinho:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
rvullriede authored Jan 6, 2024
2 parents 15736b0 + 29a041b commit 3d83d46
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,22 @@ Map<String, Map<String, Double>> getTokenPrice(String id, String contractAddress

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

@Deprecated
StatusUpdates getStatusUpdates();

@Deprecated
StatusUpdates getStatusUpdates(String category, String projectType, Integer perPage, Integer page);

@Deprecated
Events getEvents();

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

@Deprecated
EventCountries getEventsCountries();

@Deprecated
EventTypes getEventsTypes();

ExchangeRates getExchangeRates();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,30 @@ Call<StatusUpdates> getExchangesStatusUpdatesById(@Path("id") String id, @Query(
@GET("exchanges/{id}/volume_chart")
Call<List<List<String>>> getExchangesVolumeChart(@Path("id") String id,@Query("days") Integer days);

@Deprecated
@GET("status_updates")
Call<StatusUpdates> getStatusUpdates();

@Deprecated
@GET("status_updates")
Call<StatusUpdates> getStatusUpdates(@Query("category") String category, @Query("project_type") String projectType,
@Query("per_page") Integer perPage, @Query("page") Integer page);

@Deprecated
@GET("events")
Call<Events> getEvents();

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

@Deprecated
@GET("events/countries")
Call<EventCountries> getEventsCountries();

@Deprecated
@GET("events/types")
Call<EventTypes> getEventsTypes();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,31 +201,37 @@ public List<List<String>> getExchangesVolumeChart(String id, Integer days) {
return coinGeckoApi.executeSync(coinGeckoApiService.getExchangesVolumeChart(id,days));
}

@Deprecated
@Override
public StatusUpdates getStatusUpdates() {
return coinGeckoApi.executeSync(coinGeckoApiService.getStatusUpdates());
}

@Deprecated
@Override
public StatusUpdates getStatusUpdates(String category, String projectType, Integer perPage, Integer page) {
return coinGeckoApi.executeSync(coinGeckoApiService.getStatusUpdates(category, projectType,perPage,page));
}

@Deprecated
@Override
public Events getEvents() {
return coinGeckoApi.executeSync(coinGeckoApiService.getEvents());
}

@Deprecated
@Override
public Events getEvents(String countryCode, String type, Integer page, boolean upcomingEventsOnly, String fromDate, String toDate) {
return coinGeckoApi.executeSync(coinGeckoApiService.getEvents(countryCode,type,page,upcomingEventsOnly,fromDate,toDate));
}

@Deprecated
@Override
public EventCountries getEventsCountries() {
return coinGeckoApi.executeSync(coinGeckoApiService.getEventsCountries());
}

@Deprecated
@Override
public EventTypes getEventsTypes() {
return coinGeckoApi.executeSync(coinGeckoApiService.getEventsTypes());
Expand Down

0 comments on commit 3d83d46

Please sign in to comment.