org.lantern.state.Friend Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lantern-common Show documentation
Show all versions of lantern-common Show documentation
Lantern is a peer-to-peer and trust-network-based tool for circumventing censors and preventing monitoring.
package org.lantern.state;
/**
* Common interface for friends.
*/
public interface Friend {
public enum Status {
friend,
rejected,
pending //everything else
}
Long getId();
void setId(Long id);
String getUserEmail();
void setUserEmail(String userEmail);
String getEmail();
void setEmail(String email);
String getName();
void setName(String name);
Status getStatus();
void setStatus(Status status);
void setLastUpdated(long lastUpdated);
long getLastUpdated();
}