Class TicketForm
- java.lang.Object
-
- com.zendesk.sdk.model.request.fields.TicketForm
-
public class TicketForm extends java.lang.Object
Model class for ticket forms.
-
-
Constructor Summary
Constructors Constructor and Description TicketForm(long id, java.lang.String name, java.lang.String displayName, java.util.List<TicketField> ticketFields)
Constructor for creating an instance of a ticket form.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static TicketForm
create(RawTicketForm tf, java.util.List<TicketField> ticketFields)
Convert aRawTicketForm
into aTicketForm
java.lang.String
getDisplayName()
Gets the ticket form name for end userslong
getId()
Gets the ID of the ticket form.java.lang.String
getName()
Gets the ticket form name for agentsjava.util.List<TicketField>
getTicketFields()
Gets a list of associatedTicketField
.
-
-
-
Constructor Detail
-
TicketForm
public TicketForm(long id, java.lang.String name, java.lang.String displayName, java.util.List<TicketField> ticketFields)
Constructor for creating an instance of a ticket form.- Parameters:
id
- ticket form idname
- ticket form name for agentsdisplayName
- ticket form name for end usersticketFields
- a list of associated ticket fields
-
-
Method Detail
-
create
public static TicketForm create(RawTicketForm tf, java.util.List<TicketField> ticketFields)
Convert aRawTicketForm
into aTicketForm
- Parameters:
tf
- a raw ticket form from the endpointticketFields
- a list ofTicketField
that are associated with this ticket form- Returns:
- the new
TicketForm
-
getId
public long getId()
Gets the ID of the ticket form.- Returns:
- the id of the ticket form
-
getName
public java.lang.String getName()
Gets the ticket form name for agents- Returns:
- the ticket form name for agents
-
getDisplayName
public java.lang.String getDisplayName()
Gets the ticket form name for end users- Returns:
- the ticket form name for end users
-
getTicketFields
public java.util.List<TicketField> getTicketFields()
Gets a list of associatedTicketField
.- Returns:
- a list of ticket fields
-
-