// Path: app/src/main/java/com/daquexian/chaoli/forum/binding/DiffItem.java
// public interface DiffItem {
//     boolean areContentsTheSame(DiffItem anotherItem);
//     boolean areItemsTheSame(DiffItem anotherItem);
// }


import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.databinding.PropertyChangeRegistry;
import android.os.Parcel;
import android.os.Parcelable;
import com.daquexian.chaoli.forum.BR;
import com.daquexian.chaoli.forum.binding.DiffItem;
import com.google.gson.annotations.SerializedName;

package com.daquexian.chaoli.forum.model;



public class Conversation extends BaseObservable implements DiffItem, Comparable<Conversation>, Parcelable {
	private static final String TAG = "Conversation";
	private int conversationId;
	private int channelId;
	private String title;
	private String firstPost;
	private String link;
	private String startMemberId;
	private String lastPostMemberId;
	private String startMember;
	@SerializedName("startMemberAvatarFormat")
	private String startMemberAvatarSuffix;
	private String startTime;
	@SerializedName("lastPostMemberAvatarFormat")
	private String lastPostMemberAvatarSuffix;
	private String lastPostMember;
	private String lastPostTime;
	private String unread;
	private int replies;
	private transient PropertyChangeRegistry propertyChangeRegistry = new PropertyChangeRegistry();


	@Override
	public boolean areContentsTheSame(DiffItem anotherItem) {
		Conversation newConversation = (Conversation) anotherItem;
		return !(this.getFirstPost() == null && newConversation.getFirstPost() != null)
				&& !(this.getFirstPost() != null && newConversation.getFirstPost() == null)
				&& ((this.getFirstPost() == null && newConversation.getFirstPost() == null) || this.getFirstPost().equals(newConversation.getFirstPost()))
				&& this.getReplies() == newConversation.getReplies();
	}

	@Override

// Path: app/src/main/java/com/daquexian/chaoli/forum/binding/DiffItem.java
// public interface DiffItem {
//     boolean areContentsTheSame(DiffItem anotherItem);
//     boolean areItemsTheSame(DiffItem anotherItem);
// }


// Path: app/src/main/java/com/daquexian/chaoli/forum/model/Conversation.java
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.databinding.PropertyChangeRegistry;
import android.os.Parcel;
import android.os.Parcelable;
import com.daquexian.chaoli.forum.BR;
import com.daquexian.chaoli.forum.binding.DiffItem;
import com.google.gson.annotations.SerializedName;

package com.daquexian.chaoli.forum.model;



public class Conversation extends BaseObservable implements DiffItem, Comparable<Conversation>, Parcelable {
	private static final String TAG = "Conversation";
	private int conversationId;
	private int channelId;
	private String title;
	private String firstPost;
	private String link;
	private String startMemberId;
	private String lastPostMemberId;
	private String startMember;
	@SerializedName("startMemberAvatarFormat")
	private String startMemberAvatarSuffix;
	private String startTime;
	@SerializedName("lastPostMemberAvatarFormat")
	private String lastPostMemberAvatarSuffix;
	private String lastPostMember;
	private String lastPostTime;
	private String unread;
	private int replies;
	private transient PropertyChangeRegistry propertyChangeRegistry = new PropertyChangeRegistry();


	@Override
	public boolean areContentsTheSame(DiffItem anotherItem) {
		Conversation newConversation = (Conversation) anotherItem;
		return !(this.getFirstPost() == null && newConversation.getFirstPost() != null)
				&& !(this.getFirstPost() != null && newConversation.getFirstPost() == null)
				&& ((this.getFirstPost() == null && newConversation.getFirstPost() == null) || this.getFirstPost().equals(newConversation.getFirstPost()))
				&& this.getReplies() == newConversation.getReplies();
	}

	@Override

	public boolean areItemsTheSame(DiffItem anotherItem) {
