Skip to content

Commit 74215ca

Browse files
committed
implementation added
1 parent 9a07330 commit 74215ca

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

src/main/java/com/contentstack/sdk/AssetLibrary.java

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,85 @@ public int getCount() {
133133
return count;
134134
}
135135

136+
/**
137+
* Add param assetlibrary.
138+
*
139+
* @param paramKey the param key
140+
* @param paramValue the param value
141+
* @return the assetlibrary
142+
*
143+
* <br>
144+
* <br>
145+
* <b>Example :</b><br>
146+
*
147+
* <pre class="prettyprint">
148+
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
149+
* AssetLibrary assetLibObject = stack.assetlibrary();
150+
* assetLibObject.addParam();
151+
* </pre>
152+
*/
153+
public AssetLibrary addParam(@NotNull String paramKey, @NotNull Object paramValue) {
154+
urlQueries.put(paramKey, paramValue);
155+
return this;
156+
}
157+
158+
public AssetLibrary removeParam(@NotNull String paramKey){
159+
if(urlQueries.has(paramKey)){
160+
urlQueries.remove(paramKey);
161+
}
162+
return this;
163+
}
164+
165+
166+
167+
/**
168+
* The number of objects to skip before returning any.
169+
*
170+
* @param number No of objects to skip from returned objects
171+
* @return {@link Query} object, so you can chain this call.
172+
* <p>
173+
* <b> Note: </b> The skip parameter can be used for pagination,
174+
* &#34;skip&#34; specifies the number of objects to skip in the response. <br>
175+
*
176+
* <br>
177+
* <br>
178+
* <b>Example :</b><br>
179+
*
180+
* <pre class="prettyprint">
181+
* Stack stack = Contentstack.stack( "apiKey", "deliveryToken", "environment");
182+
* AssetLibrary assetLibObject = stack.assetlibrary.skip(4);<br>
183+
* </pre>
184+
*/
185+
186+
public AssetLibrary skip (@NotNull int number) {
187+
urlQueries.put("skip",number);
188+
return this;
189+
}
190+
191+
/**
192+
* A limit on the number of objects to return.
193+
*
194+
* @param number No of objects to limit.
195+
* @return {@link Query} object, so you can chain this call.
196+
* <p>
197+
* <b> Note:</b> The limit parameter can be used for pagination, &#34;
198+
* limit&#34; specifies the number of objects to limit to in the response. <br>
199+
*
200+
* <br>
201+
* <br>
202+
* <b>Example :</b><br>
203+
*
204+
* <pre class="prettyprint">
205+
* Stack stack = Contentstack.stack( "apiKey", "deliveryToken", "environment");
206+
* AssetLibrary assetLibObject = stack.assetlibrary.limit(4);<br>
207+
* </pre>
208+
*/
209+
210+
public AssetLibrary limit (@NotNull int number) {
211+
urlQueries.put("limit", number);
212+
return this;
213+
}
214+
136215
/**
137216
* Fetch all.
138217
*

0 commit comments

Comments
 (0)