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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComment(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.booleanremoveComment(Comment comment) voidsetCommentsAsObject(String commentsAsObject) voidsetCreatedTime(Date createdTime) The time the note was initially published.voidsetFrom(NamedFacebookType from) The ID of the user who posted the note.voidThe note icon.voidsetMessage(String message) The note content, an HTML string.voidsetSubject(String subject) The title of the note.voidsetUpdatedTime(Date updatedTime) The time the note was last updated.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods 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:
getMessagein 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:
getCreatedTimein 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
-