Class Confirmation
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Confirmation
-
public class Confirmation extends java.lang.ObjectThe confirmation options of the link request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfirmation.TypeEnumThe type of confirmation.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_MESSAGEstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Confirmation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)MessagePostgetMessage()The message used to reach out to the user, if desired.Confirmation.TypeEnumgetType()The type of confirmation.inthashCode()Confirmationmessage(MessagePost message)voidsetMessage(MessagePost message)voidsetType(Confirmation.TypeEnum type)java.lang.StringtoString()Confirmationtype(Confirmation.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final java.lang.String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Confirmation type(Confirmation.TypeEnum type)
-
getType
public Confirmation.TypeEnum getType()
The type of confirmation.- Returns:
- type
-
setType
public void setType(Confirmation.TypeEnum type)
-
message
public Confirmation message(MessagePost message)
-
getMessage
@Nullable public MessagePost getMessage()
The message used to reach out to the user, if desired. Messages sent via this method can only be of type text and image. If actions are included they can only be of type link. The confirmation message will not be added to the user’s conversation.- Returns:
- message
-
setMessage
public void setMessage(MessagePost message)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-