Validate New Messages for Reblogging and Comments of Blog Posts

Also includes unit tests for the new message types.

Closes #591
This commit is contained in:
Torsten Grote
2016-08-09 19:39:57 -03:00
parent 84d4bf2205
commit caee7fe61b
7 changed files with 433 additions and 70 deletions

View File

@@ -14,10 +14,10 @@ public class BlogPostHeader extends PostHeader {
private final long timeReceived;
public BlogPostHeader(@Nullable String title, @NotNull MessageId id,
@Nullable MessageId parentId, long timestamp, long timeReceived,
@NotNull Author author, @NotNull Status authorStatus,
@NotNull String contentType, boolean read) {
super(id, parentId, timestamp, author, authorStatus, contentType, read);
long timestamp, long timeReceived, @NotNull Author author,
@NotNull Status authorStatus, @NotNull String contentType,
boolean read) {
super(id, null, timestamp, author, authorStatus, contentType, read);
this.title = title;
this.timeReceived = timeReceived;