org.apache.shindig.social.opensocial.model
Interface MessageCollection

All Known Implementing Classes:
MessageCollectionImpl

public interface MessageCollection

Base interface for all message collection objects. see http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.MessageCollection.html


Nested Class Summary
static class MessageCollection.Field
          An enumeration of field names in a message.
 
Field Summary
static java.lang.String ALL
           
static java.lang.String OUTBOX
           
 
Method Summary
 java.lang.String getId()
          Gets the unique ID of the message collection.
 java.lang.String getTitle()
          Gets the title of the message collection.
 java.lang.Integer getTotal()
          Gets the total number of messages for this collection.
 java.lang.Integer getUnread()
          Gets the total number of unread messages.
 java.util.Date getUpdated()
          Returns the last time this message collection was modified.
 java.util.List<Url> getUrls()
          Get the URLs related to the message collection.
 void setId(java.lang.String id)
          Sets the unique ID of the message collection.
 void setTitle(java.lang.String newTitle)
          Sets the title of the message message collection.
 void setTotal(java.lang.Integer total)
          Sets the total number of messages for this collection
 void setUnread(java.lang.Integer unread)
          Sets the total number of unread messages.
 void setUpdated(java.util.Date updated)
          Sets the updated time for this message collection.
 void setUrls(java.util.List<Url> urls)
          Set the URLs related to the message collection
 

Field Detail

OUTBOX

static final java.lang.String OUTBOX
See Also:
Constant Field Values

ALL

static final java.lang.String ALL
See Also:
Constant Field Values
Method Detail

getId

java.lang.String getId()
Gets the unique ID of the message collection.

Returns:
the ID of the message

setId

void setId(java.lang.String id)
Sets the unique ID of the message collection.

Parameters:
id - the ID value to set

getTitle

java.lang.String getTitle()
Gets the title of the message collection.

Returns:
the title of the message

setTitle

void setTitle(java.lang.String newTitle)
Sets the title of the message message collection.

Parameters:
newTitle - the title of the message

getTotal

java.lang.Integer getTotal()
Gets the total number of messages for this collection.

Returns:
the total number of messages

setTotal

void setTotal(java.lang.Integer total)
Sets the total number of messages for this collection

Parameters:
total - the total number of messages

getUnread

java.lang.Integer getUnread()
Gets the total number of unread messages.

Returns:
the total number of unread messages

setUnread

void setUnread(java.lang.Integer unread)
Sets the total number of unread messages.

Parameters:
unread - the number of unread messages

getUpdated

java.util.Date getUpdated()
Returns the last time this message collection was modified.

Returns:
the updated time

setUpdated

void setUpdated(java.util.Date updated)
Sets the updated time for this message collection.

Parameters:
updated -

getUrls

java.util.List<Url> getUrls()
Get the URLs related to the message collection.

Returns:
the URLs related to the message collection

setUrls

void setUrls(java.util.List<Url> urls)
Set the URLs related to the message collection

Parameters:
urls - the URLs related to the message collection


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.