Class Activity
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Activity
-
public class Activity extends java.lang.ObjectActivity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActivity.TypeEnumIf the author type is `user`, only `conversation:read` is supported.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_AUTHORstatic java.lang.StringJSON_PROPERTY_SOURCEstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Activity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Activityauthor(AuthorWebhook author)booleanequals(java.lang.Object o)AuthorWebhookgetAuthor()Get authorSourceWebhookgetSource()The source of the activity.Activity.TypeEnumgetType()If the author type is `user`, only `conversation:read` is supported.inthashCode()voidsetAuthor(AuthorWebhook author)voidsetSource(SourceWebhook source)voidsetType(Activity.TypeEnum type)Activitysource(SourceWebhook source)java.lang.StringtoString()Activitytype(Activity.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE
public static final java.lang.String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTHOR
public static final java.lang.String JSON_PROPERTY_AUTHOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Activity type(Activity.TypeEnum type)
-
getType
@Nullable public Activity.TypeEnum getType()
If the author type is `user`, only `conversation:read` is supported.- Returns:
- type
-
setType
public void setType(Activity.TypeEnum type)
-
source
public Activity source(SourceWebhook source)
-
getSource
@Nullable public SourceWebhook getSource()
The source of the activity.- Returns:
- source
-
setSource
public void setSource(SourceWebhook source)
-
author
public Activity author(AuthorWebhook author)
-
getAuthor
@Nullable public AuthorWebhook getAuthor()
Get author- Returns:
- author
-
setAuthor
public void setAuthor(AuthorWebhook author)
-
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
-
-