public final class HasteServer extends Object
Constructor and Description |
---|
HasteServer() |
HasteServer(ExecutorService executor) |
HasteServer(ExecutorService executor,
String baseUrl) |
HasteServer(okhttp3.OkHttpClient client,
String baseUrl) |
HasteServer(String baseUrl) |
Modifier and Type | Method and Description |
---|---|
RestRequest<String> |
createPaste(String code)
Creates a new paste
|
RestRequest<Paste> |
retrievePaste(String id)
Retrieves the paste with the specified id
|
public HasteServer()
public HasteServer(String baseUrl)
public HasteServer(ExecutorService executor)
public HasteServer(ExecutorService executor, String baseUrl)
public HasteServer(okhttp3.OkHttpClient client, String baseUrl)
public RestRequest<String> createPaste(String code)
code
- codepublic RestRequest<Paste> retrievePaste(String id)
id
- idCopyright © 2019. All rights reserved.