|
|
@ -25,15 +25,15 @@ import androidx.annotation.Nullable;
|
|
|
|
import java.util.Objects;
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
public class TupleMessageStats {
|
|
|
|
public class TupleMessageStats {
|
|
|
|
public Integer unseen = 0;
|
|
|
|
public Integer unseen;
|
|
|
|
public Integer ignored = 0;
|
|
|
|
public Integer notifying;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean equals(@Nullable Object obj) {
|
|
|
|
public boolean equals(@Nullable Object obj) {
|
|
|
|
if (obj instanceof TupleMessageStats) {
|
|
|
|
if (obj instanceof TupleMessageStats) {
|
|
|
|
TupleMessageStats other = (TupleMessageStats) obj;
|
|
|
|
TupleMessageStats other = (TupleMessageStats) obj;
|
|
|
|
return (Objects.equals(this.unseen, other.unseen) &&
|
|
|
|
return (Objects.equals(this.unseen, other.unseen) &&
|
|
|
|
Objects.equals(this.ignored, other.ignored));
|
|
|
|
Objects.equals(this.notifying, other.notifying));
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -41,6 +41,6 @@ public class TupleMessageStats {
|
|
|
|
@NonNull
|
|
|
|
@NonNull
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
public String toString() {
|
|
|
|
return "unseen=" + unseen + " ignored=" + ignored;
|
|
|
|
return "unseen=" + unseen + " notify=" + notifying;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|