mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Added lastConnected timestamp to Contact, for display in contact list.
This commit is contained in:
@@ -4,10 +4,12 @@ public class Contact {
|
||||
|
||||
private final ContactId id;
|
||||
private final String name;
|
||||
private final long lastConnected;
|
||||
|
||||
public Contact(ContactId id, String name) {
|
||||
public Contact(ContactId id, String name, long lastConnected) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.lastConnected = lastConnected;
|
||||
}
|
||||
|
||||
public ContactId getId() {
|
||||
@@ -18,6 +20,10 @@ public class Contact {
|
||||
return name;
|
||||
}
|
||||
|
||||
public long getLastConnected() {
|
||||
return lastConnected;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return id.hashCode();
|
||||
|
||||
Reference in New Issue
Block a user