2010-08-17 22:49:13 -04:00
|
|
|
package com.fsck.k9.activity;
|
|
|
|
|
2011-01-18 18:54:49 -05:00
|
|
|
import java.util.Date;
|
2012-03-05 15:04:34 -05:00
|
|
|
import com.fsck.k9.mail.Message;
|
2010-08-17 22:49:13 -04:00
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public class MessageInfoHolder {
|
2010-08-17 22:49:13 -04:00
|
|
|
public String date;
|
|
|
|
public Date compareDate;
|
2012-03-11 18:48:56 -04:00
|
|
|
public Date compareArrival;
|
2010-08-17 22:49:13 -04:00
|
|
|
public String compareSubject;
|
2010-08-30 10:37:34 -04:00
|
|
|
public CharSequence sender;
|
2010-08-17 22:49:13 -04:00
|
|
|
public String senderAddress;
|
|
|
|
public String compareCounterparty;
|
|
|
|
public String[] recipients;
|
|
|
|
public String uid;
|
|
|
|
public boolean read;
|
|
|
|
public boolean answered;
|
2012-08-20 22:09:34 -04:00
|
|
|
public boolean forwarded;
|
2010-08-17 22:49:13 -04:00
|
|
|
public boolean flagged;
|
2010-10-08 01:34:33 -04:00
|
|
|
public boolean dirty;
|
2012-03-05 15:04:34 -05:00
|
|
|
public Message message;
|
2010-08-17 22:49:13 -04:00
|
|
|
public FolderInfoHolder folder;
|
|
|
|
public boolean selected;
|
|
|
|
public String account;
|
|
|
|
public String uri;
|
|
|
|
|
|
|
|
// Empty constructor for comparison
|
2011-02-06 17:09:48 -05:00
|
|
|
public MessageInfoHolder() {
|
2010-08-17 22:49:13 -04:00
|
|
|
this.selected = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2011-02-06 17:09:48 -05:00
|
|
|
public boolean equals(Object o) {
|
|
|
|
if (o instanceof MessageInfoHolder == false) {
|
2010-08-17 22:49:13 -04:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
MessageInfoHolder other = (MessageInfoHolder)o;
|
|
|
|
return message.equals(other.message);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2011-02-06 17:09:48 -05:00
|
|
|
public int hashCode() {
|
2010-08-17 22:49:13 -04:00
|
|
|
return uid.hashCode();
|
|
|
|
}
|
|
|
|
}
|