java.lang.Object | |
↳ | chan.content.model.Posts |
Model containing posts data.
This class holds array of posts. Use default constructors to store an array.
This model contains all posts or only new ones if request is partial.
In this case this model may contain unique posters count and original thread URI if your char is archive. You can use the following methods to store this data:
The first post model is original post. The rest post models are last replies to original one.
In this case this model may contain number of posts, files or posts with files. You can use the following method to store this data:
Some chans provides files count in thread. Another chans provides count of posts with files in thread.
So, if your chan supports multiple files per post, you can use addFilesCount(int)
in first case
and addPostsWithFilesCount(int)
in the second case. If your chan supports only one
image per post, it's better to use addPostsWithFilesCount(int)
because it's more usual.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for | |||||||||||
Constructor for | |||||||||||
Constructor for |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Stores files count in thread in this model. | |||||||||||
Stores posts count in thread in this model. | |||||||||||
Stores posts count with files in this model. | |||||||||||
Returns archived thread URI. | |||||||||||
Returns files count in thread. | |||||||||||
Returns array of post models this model holds. | |||||||||||
Returns posts count in thread. | |||||||||||
Returns posts count with files. | |||||||||||
Returns unique posters count. | |||||||||||
Stores original URI of archived thread in this model. | |||||||||||
Stores posts in this model. | |||||||||||
Stores posts in this model. | |||||||||||
Stores unique posters count in this model. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Stores files count in thread in this model.
Parameters | |
---|---|
filesCount |
int :
Number of files in thread including original post and last replies. |
Returns | |
---|---|
Posts |
This model. |
Stores posts count in thread in this model.
Parameters | |
---|---|
postsCount |
int :
Number of posts in thread including original post and last replies. |
Returns | |
---|---|
Posts |
This model. |
Stores posts count with files in this model.
Parameters | |
---|---|
postsWithFilesCount |
int :
Number of posts with files in thread including original post and last replies. |
Returns | |
---|---|
Posts |
This model. |
Returns archived thread URI.
Returns | |
---|---|
Uri |
Returns files count in thread.
Returns | |
---|---|
int |
Returns posts count in thread.
Returns | |
---|---|
int |
Returns posts count with files.
Returns | |
---|---|
int |
Returns unique posters count.
Returns | |
---|---|
int |
Stores original URI of archived thread in this model.
Parameters | |
---|---|
uri |
Uri :
Original URI of archived thread. |
Returns | |
---|---|
Posts |
This model. |
Stores unique posters count in this model.
Parameters | |
---|---|
uniquePosters |
int :
Number of unique posters in thread. |
Returns | |
---|---|
Posts |
This model. |