Spring Social Yammer

org.springframework.social.yammer.api
Class YammerMessage

java.lang.Object
  extended by org.springframework.social.yammer.api.YammerMessage

public class YammerMessage
extends java.lang.Object

Represents a Message retrieved posted to Yammer

Author:
Morten Andersen-Gott

Nested Class Summary
static class YammerMessage.Attachment
           
static class YammerMessage.Body
          Holds the text of a message in different formats
static class YammerMessage.LikedBy
           
 
Constructor Summary
YammerMessage(long id, YammerMessage.Body body, java.lang.String url, long networkId, java.lang.String privacy, long threadId, java.lang.String senderType, java.util.List<YammerMessage.Attachment> attachments, java.lang.Long repliedToId, long senderId, java.lang.String webUrl, java.lang.String clientUrl, boolean systemMessage, java.lang.String messageType, java.util.Date createdAt, boolean directMessage, java.lang.String clientType, YammerMessage.LikedBy likedBy, long groupId, long sharedMessageId)
           
 
Method Summary
 java.util.List<YammerMessage.Attachment> getAttachments()
          The list of attachments, if any
 YammerMessage.Body getBody()
          The body (text) of the yammer message
 java.lang.String getClientType()
           
 java.lang.String getClientUrl()
           
 java.util.Date getCreatedAt()
           
 long getGroupId()
           
 long getId()
          The unique identifier for the message
 YammerMessage.LikedBy getLikedBy()
           
 java.lang.String getMessageType()
           
 long getNetworkId()
          The id of the network this message is posted to
 java.lang.String getPrivacy()
          Privacy status of this message, either public or private
 java.lang.Long getRepliedToId()
          The id of the message this message is a reply to, if any
 long getSenderId()
           
 java.lang.String getSenderType()
           
 long getSharedMessageId()
           
 long getThreadId()
          The id for the thread this message is a part of
 java.lang.String getUrl()
          The restful URL of for this single message
 java.lang.String getWebUrl()
           
 boolean isDirectMessage()
           
 boolean isSystemMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YammerMessage

public YammerMessage(long id,
                     YammerMessage.Body body,
                     java.lang.String url,
                     long networkId,
                     java.lang.String privacy,
                     long threadId,
                     java.lang.String senderType,
                     java.util.List<YammerMessage.Attachment> attachments,
                     java.lang.Long repliedToId,
                     long senderId,
                     java.lang.String webUrl,
                     java.lang.String clientUrl,
                     boolean systemMessage,
                     java.lang.String messageType,
                     java.util.Date createdAt,
                     boolean directMessage,
                     java.lang.String clientType,
                     YammerMessage.LikedBy likedBy,
                     long groupId,
                     long sharedMessageId)
Method Detail

getId

public long getId()
The unique identifier for the message

Returns:
message id

getUrl

public java.lang.String getUrl()
The restful URL of for this single message

Returns:
url

getNetworkId

public long getNetworkId()
The id of the network this message is posted to

Returns:
network id

getPrivacy

public java.lang.String getPrivacy()
Privacy status of this message, either public or private

Returns:
private or public as String

getThreadId

public long getThreadId()
The id for the thread this message is a part of

Returns:
id of thread

getSenderType

public java.lang.String getSenderType()

getAttachments

public java.util.List<YammerMessage.Attachment> getAttachments()
The list of attachments, if any

Returns:
attachments

getRepliedToId

public java.lang.Long getRepliedToId()
The id of the message this message is a reply to, if any

Returns:
id of message this is a reply to, or null if this is not a reply

getSenderId

public long getSenderId()

getWebUrl

public java.lang.String getWebUrl()

getClientUrl

public java.lang.String getClientUrl()

isSystemMessage

public boolean isSystemMessage()

getMessageType

public java.lang.String getMessageType()

getCreatedAt

public java.util.Date getCreatedAt()

isDirectMessage

public boolean isDirectMessage()

getClientType

public java.lang.String getClientType()

getBody

public YammerMessage.Body getBody()
The body (text) of the yammer message

Returns:
body

getLikedBy

public YammerMessage.LikedBy getLikedBy()

getGroupId

public long getGroupId()

getSharedMessageId

public long getSharedMessageId()

Spring Social Yammer