Work with Latest Messages

Use the Latest classes to work with the latest message in a channel or conversation.

Latest Class 

Represents the latest message.

Latest Methods 

The following are methods for Latest.

getBotId() 

Signature

1public String getBotId()

Return Value

Type: String

getBotLink() 

Signature

1public String getBotLink()

Return Value

Type: String

getBotProfile() 

Signature

1public Slack.BotProfile getBotProfile()

Return Value

Type: Slack.BotProfile

getClientMsgId() 

Signature

1public String getClientMsgId()

Return Value

Type: String

getEdited() 

Signature

1public Slack.Latest.Edited getEdited()

Return Value

Type: Slack.Latest.Edited

getFiles() 

Signature

1public List<Slack.File> getFiles()

Return Value

Type: List<Slack.File>

getParentUserId() 

Signature

1public String getParentUserId()

Return Value

Type: String

getReactions() 

Signature

1public List<Slack.Reaction> getReactions()

Return Value

Type: List<Slack.Reaction>

getSubtype() 

Signature

1public String getSubtype()

Return Value

Type: String

getTeam() 

Signature

1public String getTeam()

Return Value

Type: String

getText() 

Signature

1public String getText()

Return Value

Type: String

getThreadTs() 

Signature

1public String getThreadTs()

Return Value

Type: String

getTopic() 

Signature

1public String getTopic()

Return Value

Type: String

getTs() 

Signature

1public String getTs()

Return Value

Type: String

getType() 

Signature

1public String getType()

Return Value

Type: String

getUser() 

Signature

1public String getUser()

Return Value

Type: String

getUsername() 

Signature

1public String getUsername()

Return Value

Type: String

getXFiles() 

Signature

1public List<String> getXFiles()

Return Value

Type: List<String>

isDisplayAsBot() 

Signature

1public Boolean isDisplayAsBot()

Return Value

Type: Boolean

isUpload() 

Signature

1public Boolean isUpload()

Return Value

Type: Boolean

setBotId(botId) 

Signature

1public void setBotId(String botId)

Parameters

botId

Type: String

Return Value

Type: void

setBotLink(botLink) 

Signature

1public void setBotLink(String botLink)

Parameters

botLink

Type: String

Return Value

Type: void

setBotProfile(botProfile) 

Signature

1public void setBotProfile(Slack.BotProfile botProfile)

Parameters

botProfile

Type: Slack.BotProfile

Return Value

Type: void

setClientMsgId(clientMsgId) 

Signature

1public void setClientMsgId(String clientMsgId)

Parameters

clientMsgId

Type: String

Return Value

Type: void

setDisplayAsBot(displayAsBot) 

Signature

1public void setDisplayAsBot(Boolean displayAsBot)

Parameters

displayAsBot

Type: Boolean

Return Value

Type: void

setEdited(edited) 

Signature

1public void setEdited(Slack.Latest.Edited edited)

Parameters

edited

Type: Slack.Latest.Edited

Return Value

Type: void

setFiles(files) 

Signature

1public void setFiles(List<Slack.File> files)

Parameters

files

Type: List<Slack.File>

Return Value

Type: void

setParentUserId(parentUserId) 

Signature

1public void setParentUserId(String parentUserId)

Parameters

parentUserId

Type: String

Return Value

Type: void

setReactions(reactions) 

Signature

1public void setReactions(List<Slack.Reaction> reactions)

Parameters

reactions

Type: List<Slack.Reaction>

Return Value

Type: void

setSubtype(subtype) 

Signature

1public void setSubtype(String subtype)

Parameters

subtype

Type: String

Return Value

Type: void

setTeam(team) 

Signature

1public void setTeam(String team)

Parameters

team

Type: String

Return Value

Type: void

setText(text) 

Signature

1public void setText(String text)

Parameters

text

Type: String

Return Value

Type: void

setThreadTs(threadTs) 

Signature

1public void setThreadTs(String threadTs)

Parameters

threadTs

Type: String

Return Value

Type: void

setTopic(topic) 

Signature

1public void setTopic(String topic)

Parameters

topic

Type: String

Return Value

Type: void

setTs(ts) 

Signature

1public void setTs(String ts)

Parameters

ts

Type: String

Return Value

Type: void

setType(type) 

Signature

1public void setType(String type)

Parameters

type

Type: String

Return Value

Type: void

setUpload(upload) 

Signature

1public void setUpload(Boolean upload)

Parameters

upload

Type: Boolean

Return Value

Type: void

setUser(user) 

Signature

1public void setUser(String user)

Parameters

user

Type: String

Return Value

Type: void

setUsername(username) 

Signature

1public void setUsername(String username)

Parameters

username

Type: String

Return Value

Type: void

setXFiles(xFiles) 

Signature

1public void setXFiles(List<String> xFiles)

Parameters

xFiles

Type: List<String>

Return Value

Type: void


Latest.Edited Class 

Latest.Edited Methods 

The following are methods for Latest.Edited.

getTs() 

Signature

1public String getTs()

Return Value

Type: String

getUser() 

Signature

1public String getUser()

Return Value

Type: String

setTs(ts) 

Signature

1public void setTs(String ts)

Parameters

ts

Type: String

Return Value

Type: void

setUser(user) 

Signature

1public void setUser(String user)

Parameters

user

Type: String

Return Value

Type: void

Beta Feature

This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.