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
Represents the Note Graph API type.
- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addComment
(Comment comment) Comments made on the note.The time the note was initially published.getFrom()
The ID of the user who posted the note.getIcon()
The note icon.The note content, an HTML string.The title of the note.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
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 Details
-
Note
public Note()
-
-
Method Details
-
getComments
Comments made on the note.- Returns:
- Comments made on the note.
- Since:
- 1.6.10
-
addComment
-
removeComment
-
getFrom
The ID of the user who posted the note. -
setFrom
The ID of the user who posted the note. -
getSubject
The title of the note.- Returns:
- The title of the note.
-
setSubject
The title of the note. -
getMessage
The note content, an HTML string.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- The note content, an HTML string.
-
setMessage
The note content, an HTML string. -
getIcon
The note icon.- Returns:
- The note icon.
-
setIcon
The note icon. -
getCreatedTime
The time the note was initially published.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time the note was initially published.
-
setCreatedTime
The time the note was initially published. -
getUpdatedTime
The time the note was last updated.- Returns:
- The time the note was last updated.
-
setUpdatedTime
The time the note was last updated. -
getCommentsAsObject
-
setCommentsAsObject
-