Package com.symphony.api.model
Class V4Event
- java.lang.Object
-
- com.symphony.api.model.V4Event
-
public class V4Event extends Object
-
-
Constructor Summary
Constructors Constructor Description V4Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V4Event
diagnostic(String diagnostic)
String
getDiagnostic()
Details if event failed to parse for any reason.String
getId()
Event IDV4Initiator
getInitiator()
Get initiatorString
getMessageId()
Message IDV4Payload
getPayload()
Get payloadLong
getTimestamp()
Timestamp of eventString
getType()
Event type, possible events are: - MESSAGESENT - SHAREDPOST - INSTANTMESSAGECREATED - ROOMCREATED - ROOMUPDATED - ROOMDEACTIVATED - ROOMREACTIVATED - USERJOINEDROOM - USERLEFTROOM - ROOMMEMBERPROMOTEDTOOWNER - ROOMMEMBERDEMOTEDFROMOWNER - CONNECTIONREQUESTED - CONNECTIONACCEPTED - MESSAGESUPPRESSED - SYMPHONYELEMENTSACTION - USERREQUESTEDTOJOINROOMV4Event
id(String id)
V4Event
initiator(V4Initiator initiator)
V4Event
messageId(String messageId)
V4Event
payload(V4Payload payload)
void
setDiagnostic(String diagnostic)
void
setId(String id)
void
setInitiator(V4Initiator initiator)
void
setMessageId(String messageId)
void
setPayload(V4Payload payload)
void
setTimestamp(Long timestamp)
void
setType(String type)
V4Event
timestamp(Long timestamp)
String
toString()
V4Event
type(String type)
-
-
-
Method Detail
-
getId
public String getId()
Event ID- Returns:
- id
-
setId
public void setId(String id)
-
getMessageId
public String getMessageId()
Message ID- Returns:
- messageId
-
setMessageId
public void setMessageId(String messageId)
-
getTimestamp
public Long getTimestamp()
Timestamp of event- Returns:
- timestamp
-
setTimestamp
public void setTimestamp(Long timestamp)
-
getType
public String getType()
Event type, possible events are: - MESSAGESENT - SHAREDPOST - INSTANTMESSAGECREATED - ROOMCREATED - ROOMUPDATED - ROOMDEACTIVATED - ROOMREACTIVATED - USERJOINEDROOM - USERLEFTROOM - ROOMMEMBERPROMOTEDTOOWNER - ROOMMEMBERDEMOTEDFROMOWNER - CONNECTIONREQUESTED - CONNECTIONACCEPTED - MESSAGESUPPRESSED - SYMPHONYELEMENTSACTION - USERREQUESTEDTOJOINROOM- Returns:
- type
-
setType
public void setType(String type)
-
getDiagnostic
public String getDiagnostic()
Details if event failed to parse for any reason. The contents of this field may not be useful, depending on the nature of the error. Only present when error occurs.- Returns:
- diagnostic
-
setDiagnostic
public void setDiagnostic(String diagnostic)
-
getInitiator
public V4Initiator getInitiator()
Get initiator- Returns:
- initiator
-
setInitiator
public void setInitiator(V4Initiator initiator)
-
initiator
public V4Event initiator(V4Initiator initiator)
-
getPayload
public V4Payload getPayload()
Get payload- Returns:
- payload
-
setPayload
public void setPayload(V4Payload payload)
-
-