1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-11 12:05:06 -05:00
k-9/src/com/fsck/k9/activity/MessageInfoHolder.java
Jesse Vincent 12d1097a24 Big, scary massive "ant astyle" to get us back to something
approximating AOSP coding standards.
2011-02-06 17:09:48 -05:00

54 lines
1.4 KiB
Java

package com.fsck.k9.activity;
import java.util.Date;
import com.fsck.k9.helper.MessageHelper;
import com.fsck.k9.mail.store.LocalStore.LocalMessage;
public class MessageInfoHolder {
public String date;
public Date compareDate;
public String compareSubject;
public CharSequence sender;
public String senderAddress;
public String compareCounterparty;
public String[] recipients;
public String uid;
public boolean read;
public boolean answered;
public boolean flagged;
public boolean downloaded;
public boolean partially_downloaded;
public boolean dirty;
public LocalMessage message;
public FolderInfoHolder folder;
public boolean selected;
public String account;
public String uri;
// Empty constructor for comparison
public MessageInfoHolder() {
this.selected = false;
}
@Override
public boolean equals(Object o) {
if (o instanceof MessageInfoHolder == false) {
return false;
}
MessageInfoHolder other = (MessageInfoHolder)o;
return message.equals(other.message);
}
@Override
public int hashCode() {
return uid.hashCode();
}
public String getDate(MessageHelper messageHelper) {
if (date == null) {
date = messageHelper.formatDate(message.getSentDate());
}
return date;
}
}