File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ Sorting is possible by passing a SortOptions object into the constructor of supp
30
30
``` java
31
31
// Example printing the 20 top-purchased resources.
32
32
Client client = new Client (new Token (" TOKEN STRING" , Token . Type . PRIVATE ));
33
- Response<Resource []> response = client. sendOrWait(new ListPublicResourcesRequest (new SortOptions (" purchase_count" , Order . DESCENDING , 1 )));
33
+ Response<BasicResource []> response = client. sendOrWait(new ListPublicResourcesRequest (new SortOptions (" purchase_count" , Order . DESCENDING , 1 )));
34
34
35
35
if (response. getError() == null ) {
36
- Resource [] resources = response. getValue();
36
+ BasicResource [] resources = response. getValue();
37
37
38
- for (Resource resource : resources) {
38
+ for (BasicResource resource : resources) {
39
39
System . out. println(resource. getTitle());
40
40
}
41
41
} else {
42
42
Error error = response. getError();
43
43
System . out. println(error. getCode() + " : " + error. getMessage());
44
44
}
45
45
```
46
- Sortable fields can be found at the official API documentation [ here] ( https://www.mc-market.org/wiki/ultimate-api / ) .
46
+ Sortable fields can be found at the official API documentation [ here] ( https://www.mc-market.org/wiki/v1-endpoints / ) .
47
47
48
48
# Jitpack Installation
49
49
## Gradle
You can’t perform that action at this time.
0 commit comments