Removed subject line, which won't be used in new conversation views.

This commit is contained in:
akwizgran
2013-11-30 15:09:26 +00:00
parent d771f6c94c
commit 3e6d7ba66a
15 changed files with 60 additions and 236 deletions

View File

@@ -9,9 +9,9 @@ public class GroupMessageHeader extends MessageHeader {
private final GroupId groupId;
public GroupMessageHeader(MessageId id, MessageId parent, Author author,
String contentType, String subject, long timestamp, boolean read,
String contentType, long timestamp, boolean read,
GroupId groupId) {
super(id, parent, author, contentType, subject, timestamp, read);
super(id, parent, author, contentType, timestamp, read);
this.groupId = groupId;
}

View File

@@ -7,17 +7,16 @@ public abstract class MessageHeader {
private final MessageId id, parent;
private final Author author;
private final String contentType, subject;
private final String contentType;
private final long timestamp;
private final boolean read;
protected MessageHeader(MessageId id, MessageId parent, Author author,
String contentType, String subject, long timestamp, boolean read) {
String contentType, long timestamp, boolean read) {
this.id = id;
this.parent = parent;
this.author = author;
this.contentType = contentType;
this.subject = subject;
this.timestamp = timestamp;
this.read = read;
}
@@ -47,11 +46,6 @@ public abstract class MessageHeader {
return contentType;
}
/** Returns the message's subject line. */
public String getSubject() {
return subject;
}
/** Returns the timestamp created by the message's author. */
public long getTimestamp() {
return timestamp;

View File

@@ -10,9 +10,9 @@ public class PrivateMessageHeader extends MessageHeader {
private final boolean incoming;
public PrivateMessageHeader(MessageId id, MessageId parent, Author author,
String contentType, String subject, long timestamp, boolean read,
String contentType, long timestamp, boolean read,
ContactId contactId, boolean incoming) {
super(id, parent, author, contentType, subject, timestamp, read);
super(id, parent, author, contentType, timestamp, read);
this.contactId = contactId;
this.incoming = incoming;
}

View File

@@ -28,13 +28,6 @@ public interface Message {
/** Returns the message's content type. */
String getContentType();
/**
* Returns the message's subject line, which is created from the first 50
* bytes of the message body if the content type is text/plain, or is the
* empty string otherwise.
*/
String getSubject();
/** Returns the message's timestamp. */
long getTimestamp();