org.zendesk.client.v2.model.events.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zendesk-java-client Show documentation
Show all versions of zendesk-java-client Show documentation
Java client for the Zendesk API
The newest version!
package org.zendesk.client.v2.model.events;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.io.Serializable;
/**
* @author stephenc
* @since 05/04/2013 11:53
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type",
visible = true,
defaultImpl = UnknownEvent.class)
@JsonSubTypes({
@JsonSubTypes.Type(value = CommentEvent.class, name = "Comment"),
@JsonSubTypes.Type(value = VoiceCommentEvent.class, name = "VoiceComment"),
@JsonSubTypes.Type(value = CommentPrivacyChangeEvent.class, name = "CommentPrivacyChange"),
@JsonSubTypes.Type(value = CreateEvent.class, name = "Create"),
@JsonSubTypes.Type(value = ChangeEvent.class, name = "Change"),
@JsonSubTypes.Type(value = NotificationEvent.class, name = "Notification"),
@JsonSubTypes.Type(value = CcEvent.class, name = "Cc"),
@JsonSubTypes.Type(value = ErrorEvent.class, name = "Error"),
@JsonSubTypes.Type(value = ExternalEvent.class, name = "External"),
@JsonSubTypes.Type(value = FacebookEvent.class, name = "FacebookEvent"),
@JsonSubTypes.Type(value = LogMeInTranscriptEvent.class, name = "LogMeInTranscript"),
@JsonSubTypes.Type(value = PushEvent.class, name = "Push"),
@JsonSubTypes.Type(value = TweetEvent.class, name = "Tweet"),
@JsonSubTypes.Type(value = SMSEvent.class, name = "SMS"),
@JsonSubTypes.Type(value = TicketSharingEvent.class, name = "TicketSharingEvent"),
@JsonSubTypes.Type(value = AttachmentRedactionEvent.class, name = "AttachmentRedactionEvent"),
@JsonSubTypes.Type(value = CommentRedactionEvent.class, name = "CommentRedactionEvent"),
@JsonSubTypes.Type(value = OrganizationActivityEvent.class, name = "OrganizationActivity"),
@JsonSubTypes.Type(value = AgentMacroReferenceEvent.class, name = "AgentMacroReference")
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Event implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Override
public String toString() {
return "Event" + "{id=" + id + '}';
}
}