@Immutable @LevelUpApi(contract=ENTERPRISE) public final class TicketRequestFactory extends AbstractRequestFactory
Modifier and Type | Field and Description |
---|---|
protected static String |
ENDPOINT
Web service endpoint.
|
Constructor and Description |
---|
TicketRequestFactory(Context context,
AccessTokenRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildSupportRequest(String messageBody,
String category)
Build a request to submit a support request for the current user.
|
getAccessTokenRetriever, getContext
protected static final String ENDPOINT
public TicketRequestFactory(Context context, AccessTokenRetriever retriever)
context
- the Application context.retriever
- the implementation of AccessTokenRetriever
to use to get the
User
's
AccessToken
.@AccessTokenRequired @LevelUpApi(contract=ENTERPRISE) public AbstractRequest buildSupportRequest(String messageBody, String category)
messageBody
- The message to submit.AbstractRequest
representing a support ticket request.