public class Friend extends Object implements Serializable
Constructor and Description |
---|
Friend() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Friend |
fromJSON(JSONObject json) |
static List<Friend> |
fromJSONList(JSONArray jsonArray) |
String |
getFullName() |
String |
getInitials() |
Bitmap |
getInitialsBitmap(int width,
int height,
int fontSize,
int color) |
String |
getKey() |
Location |
getLocation() |
String |
getPhotoUrl() |
int |
hashCode() |
boolean |
isInSameMapAndSharing(EditorKey mapKey) |
boolean |
isSharing() |
void |
setFullName(String fullName) |
void |
setKey(String key) |
void |
setLocation(Location location) |
void |
setPhotoUrl(String photoUrl) |
void |
setSharing(boolean sharing) |
public static Friend fromJSON(JSONObject json) throws JSONException
JSONException
public boolean isInSameMapAndSharing(EditorKey mapKey)
public boolean isSharing()
public static List<Friend> fromJSONList(JSONArray jsonArray) throws JSONException
JSONException
public String getInitials()
public String getKey()
public void setKey(String key)
public void setFullName(String fullName)
public String getFullName()
public Location getLocation()
public void setLocation(Location location)
public String getPhotoUrl()
public void setPhotoUrl(String photoUrl)
public void setSharing(boolean sharing)
public Bitmap getInitialsBitmap(int width, int height, int fontSize, int color)