Class AuthorWebhook
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.AuthorWebhook
-
public class AuthorWebhook extends java.lang.ObjectThe author of the activity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthorWebhook.TypeEnumThe `type` of the author.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_TYPEstatic java.lang.StringJSON_PROPERTY_USERstatic java.lang.StringJSON_PROPERTY_USER_ID
-
Constructor Summary
Constructors Constructor Description AuthorWebhook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AuthorWebhook.TypeEnumgetType()The `type` of the author.UsergetUser()The user that authored the message or activity.java.lang.StringgetUserId()The id of the user.inthashCode()voidsetType(AuthorWebhook.TypeEnum type)voidsetUser(User user)voidsetUserId(java.lang.String userId)java.lang.StringtoString()AuthorWebhooktype(AuthorWebhook.TypeEnum type)AuthorWebhookuser(User user)AuthorWebhookuserId(java.lang.String userId)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER_ID
public static final java.lang.String JSON_PROPERTY_USER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER
public static final java.lang.String JSON_PROPERTY_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public AuthorWebhook type(AuthorWebhook.TypeEnum type)
-
getType
public AuthorWebhook.TypeEnum getType()
The `type` of the author.- Returns:
- type
-
setType
public void setType(AuthorWebhook.TypeEnum type)
-
userId
public AuthorWebhook userId(java.lang.String userId)
-
getUserId
@Nullable public java.lang.String getUserId()
The id of the user. Only supported when author `type` is `user`.- Returns:
- userId
-
setUserId
public void setUserId(java.lang.String userId)
-
user
public AuthorWebhook user(User user)
-
getUser
@Nullable public User getUser()
The user that authored the message or activity. `profile` is included in the payload if the `includeFullUser` option is enabled.- Returns:
- user
-
setUser
public void setUser(User user)
-
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
-
-