@@ -11,83 +11,71 @@ object.init = function(wrapper) {
11
11
} ;
12
12
13
13
/* functions */
14
- // List a page of downloads for a given resource (with optional sort options) .
14
+ // List a page of downloads for a given resource.
15
15
//
16
- // See documentation for response array object fields:
17
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
16
+ // Response data: {}
18
17
object . list = async function ( resource_id , sort_options ) {
19
18
return await this . wrapper . get ( `/resources/${ resource_id } /downloads` , sort_options ) ;
20
19
} ;
21
20
22
- // List all pages of downloads for a given resource (with optional sort options) .
21
+ // List all pages of downloads for a given resource.
23
22
//
24
- // See documentation for response array object fields:
25
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
23
+ // Response data: {}
26
24
object . list_all = async function ( resource_id , sort_options ) {
27
25
return await this . wrapper . list_until ( `/resources/${ resource_id } /downloads` , ( ) => true , sort_options ) ;
28
26
} ;
29
27
30
- // List multiple pages of downloads for a given resource (with optional sort options) until a condition is no longer
31
- // met.
28
+ // List multiple pages of downloads for a given resource until a condition is no longer met.
32
29
//
33
- // See documentation for response array object fields:
34
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
30
+ // Response data: {}
35
31
object . list_until = async function ( resource_id , should_continue , sort_options ) {
36
32
return await this . wrapper . list_until ( `/resources/${ resource_id } /downloads` , should_continue , sort_options ) ;
37
33
} ;
38
34
39
- // List a page of downloads by member for a given resource (with optional sort options) .
35
+ // List a page of downloads by member for a given resource.
40
36
//
41
- // See documentation for response array object fields:
42
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
37
+ // Response data: {}
43
38
object . list_by_member = async function ( resource_id , member_id , sort_options ) {
44
39
return await this . wrapper . get ( `/resources/${ resource_id } /downloads/members/${ member_id } ` , sort_options ) ;
45
40
} ;
46
41
47
- // List all pages of downloads by member for a given resource (with optional sort options) .
42
+ // List all pages of downloads by member for a given resource.
48
43
//
49
- // See documentation for response array object fields:
50
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
44
+ // Response data: {}
51
45
object . list_by_member_all = async function ( resource_id , member_id , sort_options ) {
52
46
return await this . wrapper . list_until (
53
47
`/resources/${ resource_id } /downloads/members/${ member_id } ` , ( ) => true , sort_options
54
48
) ;
55
49
} ;
56
50
57
- // List multiple pages of downloads by member for a given resource (with optional sort options) until a condition is no
58
- // longer met.
51
+ // List multiple pages of downloads by member for a given resource until a condition is no longer met.
59
52
//
60
- // See documentation for response array object fields:
61
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
53
+ // Response data: {}
62
54
object . list_by_member_until = async function ( resource_id , member_id , should_continue , sort_options ) {
63
55
return await this . wrapper . list_until (
64
56
`/resources/${ resource_id } /downloads/members/${ member_id } ` , should_continue , sort_options
65
57
) ;
66
58
} ;
67
59
68
- // List a page of downloads by version for a given resource (with optional sort options) .
60
+ // List a page of downloads by version for a given resource.
69
61
//
70
- // See documentation for response array object fields:
71
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
62
+ // Response data: {}
72
63
object . list_by_version = async function ( resource_id , version_id , sort_options ) {
73
64
return await this . wrapper . get ( `/resources/${ resource_id } /downloads/versions/${ version_id } ` , sort_options ) ;
74
65
} ;
75
66
76
- // List all pages of downloads by version for a given resource (with optional sort options) .
67
+ // List all pages of downloads by version for a given resource.
77
68
//
78
- // See documentation for response array object fields:
79
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
69
+ // Response data: {}
80
70
object . list_by_version_all = async function ( resource_id , version_id , sort_options ) {
81
71
return await this . wrapper . list_until (
82
72
`/resources/${ resource_id } /downloads/versions/${ version_id } ` , ( ) => true , sort_options
83
73
) ;
84
74
} ;
85
75
86
- // List multiple pages of downloads by version for a given resource (with optional sort options) until a condition is
87
- // no longer met.
76
+ // List multiple pages of downloads by version for a given resource until a condition is no longer met.
88
77
//
89
- // See documentation for response array object fields:
90
- // https://www.mc-market.org/wiki/ultimate-api-v1-resources-downloads/
78
+ // Response data: {}
91
79
object . list_by_version_until = async function ( resource_id , version_id , should_continue , sort_options ) {
92
80
return await this . wrapper . list_until (
93
81
`/resources/${ resource_id } /downloads/versions/${ version_id } ` , should_continue , sort_options
0 commit comments