Package com.restfb.types
Class Note
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.Note
-
- All Implemented Interfaces:
HasCreatedTime
,HasFrom
,HasMessage
,Serializable
public class Note extends FacebookType implements HasCreatedTime, HasFrom, HasMessage
Represents the Note Graph API type.- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Note()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addComment(Comment comment)
List<Comment>
getComments()
Comments made on the note.String
getCommentsAsObject()
Date
getCreatedTime()
The time the note was initially published.NamedFacebookType
getFrom()
The ID of the user who posted the note.String
getIcon()
The note icon.String
getMessage()
The note content, an HTML string.String
getSubject()
The title of the note.Date
getUpdatedTime()
The time the note was last updated.boolean
removeComment(Comment comment)
void
setCommentsAsObject(String commentsAsObject)
void
setCreatedTime(Date createdTime)
The time the note was initially published.void
setFrom(NamedFacebookType from)
The ID of the user who posted the note.void
setIcon(String icon)
The note icon.void
setMessage(String message)
The note content, an HTML string.void
setSubject(String subject)
The title of the note.void
setUpdatedTime(Date updatedTime)
The time the note was last updated.-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Note
public Note()
-
-
Method Detail
-
getComments
public List<Comment> getComments()
Comments made on the note.- Returns:
- Comments made on the note.
- Since:
- 1.6.10
-
addComment
public boolean addComment(Comment comment)
-
removeComment
public boolean removeComment(Comment comment)
-
getFrom
public NamedFacebookType getFrom()
The ID of the user who posted the note.
-
setFrom
public void setFrom(NamedFacebookType from)
The ID of the user who posted the note.
-
getSubject
public String getSubject()
The title of the note.- Returns:
- The title of the note.
-
setSubject
public void setSubject(String subject)
The title of the note.
-
getMessage
public String getMessage()
The note content, an HTML string.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- The note content, an HTML string.
-
setMessage
public void setMessage(String message)
The note content, an HTML string.
-
getCreatedTime
public Date getCreatedTime()
The time the note was initially published.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time the note was initially published.
-
setCreatedTime
public void setCreatedTime(Date createdTime)
The time the note was initially published.
-
getUpdatedTime
public Date getUpdatedTime()
The time the note was last updated.- Returns:
- The time the note was last updated.
-
setUpdatedTime
public void setUpdatedTime(Date updatedTime)
The time the note was last updated.
-
getCommentsAsObject
public String getCommentsAsObject()
-
setCommentsAsObject
public void setCommentsAsObject(String commentsAsObject)
-
-