mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
00d7b5c284
1) Migrate from GSON to Jackson everywhere. 2) Add support for storing identity key conflicts on message rows. 3) Add limited support for surfacing identity key conflicts in UI.
32 lines
681 B
Java
32 lines
681 B
Java
package org.thoughtcrime.securesms.database.documents;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
public class NetworkFailure {
|
|
|
|
@JsonProperty(value = "r")
|
|
private long recipientId;
|
|
|
|
public NetworkFailure(long recipientId) {
|
|
this.recipientId = recipientId;
|
|
}
|
|
|
|
public NetworkFailure() {}
|
|
|
|
public long getRecipientId() {
|
|
return recipientId;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object other) {
|
|
if (other == null || !(other instanceof NetworkFailure)) return false;
|
|
|
|
NetworkFailure that = (NetworkFailure)other;
|
|
return this.recipientId == that.recipientId;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return (int)recipientId;
|
|
}
|
|
}
|