|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapi.basecamp.Message
public class Message
BaseCamp Message Object
Constructor Summary | |
---|---|
Message(BCAuth auth)
Create new (UNSAVED) BaseCamp message, set appropriate fields and use '.save()' to post the message |
|
Message(BCAuth auth,
int messageId)
Get Specific Message according to id |
Method Summary | |
---|---|
boolean |
delete()
Delete Message from BaseCamp |
int |
getAttachmentsCount()
|
int |
getAuthorId()
|
java.lang.String |
getAuthorName()
|
java.lang.String |
getBody()
|
int |
getCategoryId()
|
java.util.Calendar |
getCommentedAt()
|
int |
getCommentsCount()
|
java.lang.String |
getDisplayBody()
|
int |
getId()
|
int |
getMilestoneId()
|
java.util.Calendar |
getPostedOn()
|
int |
getProjectId()
|
java.lang.String |
getTitle()
|
boolean |
isUseTextile()
|
boolean |
save()
Save object to basecamp in current state, or post if new. |
boolean |
save(int[] theNotifiedIds)
Save object to basecamp in current state, or post if new. |
void |
setBody(java.lang.String body)
Set the Body of the Message |
void |
setCategoryId(int categoryId)
Set the Category ID of the Message |
void |
setProjectId(int projectId)
If project has not been saved to basecamp yet (id == 0) then we will set the proper projectId to associate this message with upon saving. |
void |
setTitle(java.lang.String title)
Set Title of Message |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message(BCAuth auth)
auth
- BCAuth Objectpublic Message(BCAuth auth, int messageId)
auth
- BCAuth ObjectmessageId
- ID of MessageMethod Detail |
---|
public boolean save(int[] theNotifiedIds)
theNotifiedIds
- int[] of all ids you wish to notify on post
public boolean save()
public boolean delete()
public void setTitle(java.lang.String title)
title
- New title contentpublic void setBody(java.lang.String body)
body
- New body contentpublic void setCategoryId(int categoryId)
categoryId
- New category IDpublic void setProjectId(int projectId)
projectId
- ID of project you wish to associate this message.public int getId()
public java.lang.String getTitle()
public java.lang.String getBody()
public java.lang.String getDisplayBody()
public java.util.Calendar getPostedOn()
public java.util.Calendar getCommentedAt()
public int getProjectId()
public int getCategoryId()
public int getAuthorId()
public java.lang.String getAuthorName()
public int getMilestoneId()
public int getCommentsCount()
public boolean isUseTextile()
public int getAttachmentsCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |