Class AddCodePlaygroundApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.server.request.AddCodePlaygroundApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Long>
public class AddCodePlaygroundApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<Long>
Zulip API request builder for adding a code playground.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddCodePlaygroundApiRequest
(ZulipHttpClient client, String name, String pygmentsLanguage, String urlTemplate) Constructs aAddCodePlaygroundApiRequest
. -
Method Summary
Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString
-
Field Details
-
NAME
- See Also:
-
PYGMENTS_LANGUAGE
- See Also:
-
URL_TEMPLATE
- See Also:
-
-
Constructor Details
-
AddCodePlaygroundApiRequest
public AddCodePlaygroundApiRequest(ZulipHttpClient client, String name, String pygmentsLanguage, String urlTemplate) Constructs aAddCodePlaygroundApiRequest
.- Parameters:
client
- The Zulip HTTP clientname
- The name of the playgroundpygmentsLanguage
- The name of the Pygments language lexer for that programming languageurlTemplate
- The URL template for the playground
-
-
Method Details
-
execute
Executes the Zulip API request for adding a code playground.- Specified by:
execute
in interfaceExecutableApiRequest<Long>
- Returns:
- The response for type T
- Throws:
ZulipClientException
- if the request was not successful
-