| 1 | package pl.zankowski.iextrading4j.client.rest.request.stocks.v1; | |
| 2 | ||
| 3 | import pl.zankowski.iextrading4j.api.stocks.v1.RecommendationTrends; | |
| 4 | import pl.zankowski.iextrading4j.client.rest.manager.RestRequest; | |
| 5 | import pl.zankowski.iextrading4j.client.rest.manager.RestRequestBuilder; | |
| 6 | import pl.zankowski.iextrading4j.client.rest.request.IEXCloudV1RestRequest; | |
| 7 | import pl.zankowski.iextrading4j.client.rest.request.stocks.AbstractStocksRequestBuilder; | |
| 8 | ||
| 9 | import javax.ws.rs.core.GenericType; | |
| 10 | import java.util.List; | |
| 11 | ||
| 12 | public class RecommendationTrendsRequestBuilder extends AbstractStocksRequestBuilder<List<RecommendationTrends>, | |
| 13 | RecommendationTrendsRequestBuilder> implements IEXCloudV1RestRequest<List<RecommendationTrends>> { | |
| 14 | ||
| 15 | @Override | |
| 16 | public RestRequest<List<RecommendationTrends>> build() { | |
| 17 |
1
1. build : replaced return value with null for pl/zankowski/iextrading4j/client/rest/request/stocks/v1/RecommendationTrendsRequestBuilder::build → KILLED |
return RestRequestBuilder.<List<RecommendationTrends>>builder() |
| 18 | .withPath("/stock/{symbol}/recommendation-trends") | |
| 19 | .addPathParam(SYMBOL_PARAM_NAME, getSymbol()).get() | |
| 20 | .withResponse(new GenericType<List<RecommendationTrends>>() {}) | |
| 21 | .build(); | |
| 22 | } | |
| 23 | } | |
Mutations | ||
| 17 |
1.1 |