java.lang.Object | |
↳ | chan.content.model.Post |
Model containing post data.
You can describe thread number and post number with the following methods:
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns attachment at given | |||||||||||
Returns attachments count. | |||||||||||
Returns poster capcode. | |||||||||||
Returns post comment. | |||||||||||
Returns post original comment markup. | |||||||||||
Returns poster email. | |||||||||||
Returns icon at given | |||||||||||
Returns icons count. | |||||||||||
Returns poster identifier. | |||||||||||
Returns poster name. | |||||||||||
Returns parent post number. | |||||||||||
Returns post number. | |||||||||||
Returns post subject. | |||||||||||
Returns real thread number with this post. | |||||||||||
Returns date of post created. | |||||||||||
Returns poster tripcode. | |||||||||||
Returns whether thread is archived. | |||||||||||
Returns whether bump limit reached. | |||||||||||
Returns whether thread is closed. | |||||||||||
Returns whether thread is cyclical. | |||||||||||
Returns whether poster name is default. | |||||||||||
Returns whether post was written by original poster. | |||||||||||
Returns whether poster was banned by moderator. | |||||||||||
Returns whether poster was warned by moderator. | |||||||||||
Returns whether post contains sage mark. | |||||||||||
Returns whether thread is sticky. | |||||||||||
Stores whether thread is archived. | |||||||||||
Stores attachments in this model. | |||||||||||
Stores attachments in this model. | |||||||||||
Stores whether thread reached a bump limit. | |||||||||||
Stores poster capcode in this model. | |||||||||||
Stores whether thread is closed. | |||||||||||
Stores post comment in this model. | |||||||||||
Stores post original comment markup in this model. | |||||||||||
Stores whether thread is cyclical. | |||||||||||
Stores whether poster name is default. | |||||||||||
Stores poster email in this model. | |||||||||||
Stores icons in this model. | |||||||||||
Stores icons in this model. | |||||||||||
Stores poster identifier (an unique poster number or name within the thread) in this model. | |||||||||||
Stores poster name in this model. | |||||||||||
Stores whether post was written by original poster. | |||||||||||
Stores parent post number for this post. | |||||||||||
Stores post number for this post. | |||||||||||
Stores whether poster was banned by moderator. | |||||||||||
Stores whether poster was warned by moderator. | |||||||||||
Stores whether post contains sage mark (in email or another field) and doesn't bump a thread. | |||||||||||
Stores whether thread is sticky. | |||||||||||
Stores post subject in this model. | |||||||||||
Stores thread number in this model. | |||||||||||
Stores date of post created in this model. | |||||||||||
Stores poster tripcode in this model. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns attachments count.
Returns | |
---|---|
int |
Returns poster capcode.
Returns | |
---|---|
String |
Returns post comment.
Returns | |
---|---|
String |
Returns post original comment markup.
This method calls when application want to get original comment markup. By default ChanMarkup
provides
unmark operation, but you can override this method and provide more correct operation if it possible.
Returns | |
---|---|
String |
Returns poster email.
Returns | |
---|---|
String |
Returns icons count.
Returns | |
---|---|
int |
Returns poster identifier.
Returns | |
---|---|
String |
Returns poster name.
Returns | |
---|---|
String |
Returns parent post number.
Returns | |
---|---|
String |
Returns post number.
Returns | |
---|---|
String |
Returns post subject.
Returns | |
---|---|
String |
Returns real thread number with this post.
Returns | |
---|---|
String |
Returns date of post created.
Returns | |
---|---|
long |
Returns poster tripcode.
Returns | |
---|---|
String |
Returns whether thread is archived.
Returns | |
---|---|
boolean |
Returns whether bump limit reached.
Returns | |
---|---|
boolean |
Returns whether thread is closed.
Returns | |
---|---|
boolean |
Returns whether thread is cyclical.
Returns | |
---|---|
boolean |
Returns whether poster name is default.
Returns | |
---|---|
boolean |
Returns whether post was written by original poster.
Returns | |
---|---|
boolean |
Returns whether poster was banned by moderator.
Returns | |
---|---|
boolean |
Returns whether poster was warned by moderator.
Returns | |
---|---|
boolean |
Returns whether post contains sage mark.
Returns | |
---|---|
boolean |
Returns whether thread is sticky.
Returns | |
---|---|
boolean |
Stores whether thread is archived. Will be ignored by application if post is not original.
Parameters | |
---|---|
archived |
boolean :
True if thread is archived, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores attachments in this model.
Parameters | |
---|---|
attachments |
Attachment :
Array of Attachment . |
Returns | |
---|---|
Post |
This model. |
Stores attachments in this model.
Parameters | |
---|---|
attachments |
Collection :
Collection of Attachment . |
Returns | |
---|---|
Post |
This model. |
Stores whether thread reached a bump limit. In this case user will see an icon.
Parameters | |
---|---|
bumpLimitReached |
boolean :
True if bump limit reached, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores poster capcode in this model. Capcode must not contain #
characters.
Parameters | |
---|---|
capcode |
String :
Poster capcode. |
Returns | |
---|---|
Post |
This model. |
Stores whether thread is closed. Will be ignored by application if post is not original.
Parameters | |
---|---|
closed |
boolean :
True if thread is closed, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores post comment in this model.
Parameters | |
---|---|
comment |
String :
Post comment. |
Returns | |
---|---|
Post |
This model. |
Stores post original comment markup in this model.
By default ChanMarkup
provides unmark operation. Some chans stores original markup along with
parsed comment, so you can simplify and precisify unmark operation with this method.
Parameters | |
---|---|
commentMarkup |
String :
Post comment markup. |
Returns | |
---|---|
Post |
This model. |
Stores whether thread is cyclical. Will be ignored by application if post is not original.
Parameters | |
---|---|
cyclical |
boolean :
True if thread is cyclical, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores whether poster name is default. In this case it may be hidden in posts list.
Parameters | |
---|---|
defaultName |
boolean :
True if poster name is default, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores poster email in this model. You must handle "sage" mails by yourself using
setSage(boolean)
method.
Parameters | |
---|---|
email |
String :
Poster email. |
Returns | |
---|---|
Post |
This model. |
Stores poster identifier (an unique poster number or name within the thread) in this model.
Parameters | |
---|---|
identifier |
String :
Poster identifier. |
Returns | |
---|---|
Post |
This model. |
Stores whether post was written by original poster.
Parameters | |
---|---|
originalPoster |
boolean :
True if post was written by original poster, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores parent post number for this post. In chan context parent post number must be equal original post
number which means all posts are replies to original one. The parent post number stored for original post
must be null
.
Parameters | |
---|---|
parentPostNumber |
String :
Parent post number. |
Returns | |
---|---|
Post |
This model. |
Stores post number for this post.
Parameters | |
---|---|
postNumber |
String :
Post number. |
Returns | |
---|---|
Post |
This model. |
Stores whether poster was banned by moderator.
Parameters | |
---|---|
posterBanned |
boolean :
True if poster was banned, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores whether poster was warned by moderator.
Parameters | |
---|---|
posterWarned |
boolean :
True if poster was warned, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores whether post contains sage mark (in email or another field) and doesn't bump a thread.
Parameters | |
---|---|
sage |
boolean :
True if post contains sage mark, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores whether thread is sticky. Will be ignored by application if post is not original.
Parameters | |
---|---|
sticky |
boolean :
True if thread is sticky, false otherwise. |
Returns | |
---|---|
Post |
This model. |
Stores post subject in this model.
Parameters | |
---|---|
subject |
String :
Post subject. |
Returns | |
---|---|
Post |
This model. |
Stores thread number in this model. Usually thread number equals original post number, so in most cases you shouldn't use this method.
Parameters | |
---|---|
threadNumber |
String :
Thread number. |
Returns | |
---|---|
Post |
This model. |
Stores date of post created in this model.
Parameters | |
---|---|
timestamp |
long :
UNIX timestamp. |
Returns | |
---|---|
Post |
This model. |
Stores poster tripcode in this model. Tripcode must include !
characters.
Parameters | |
---|---|
tripcode |
String :
Poster tripcode. |
Returns | |
---|---|
Post |
This model. |