|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapi.basecamp.Comment
public class Comment
Comment Object for use with BaseCamp API
Constructor Summary | |
---|---|
Comment(BCAuth auth,
int commentId)
Build Comment from comment ID |
|
Comment(BCAuth auth,
java.lang.String resourceType,
int resourceId,
java.lang.String body)
Add comment to BaseCamp resource and Build Comment object |
Method Summary | |
---|---|
boolean |
delete()
Delete Comment |
int |
getAttachmentCount()
|
int |
getAuthorId()
|
java.lang.String |
getAuthorName()
|
java.lang.String |
getBody()
|
int |
getCommentableId()
|
java.lang.String |
getCommentableType()
|
java.util.Calendar |
getCreatedAt()
|
int |
getId()
|
boolean |
save()
Save Current state of Comment |
void |
setBody(java.lang.String body)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Comment(BCAuth auth, int commentId)
auth
- BCAuth ObjectcommentId
- ID of desired commentpublic Comment(BCAuth auth, java.lang.String resourceType, int resourceId, java.lang.String body)
auth
- BCAuthresourceType
- Resource Type String - example "todo_item", "posts" , "milestones"resourceId
- id of resourcebody
- String body of commentMethod Detail |
---|
public boolean save()
public boolean delete()
public java.lang.String getBody()
public int getId()
public int getAuthorId()
public java.lang.String getAuthorName()
public int getCommentableId()
public java.lang.String getCommentableType()
public java.util.Calendar getCreatedAt()
public int getAttachmentCount()
public void setBody(java.lang.String body)
body
- the body to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |