public class ContactUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAK_SERVER_CONNECTION_STRING |
Constructor and Description |
---|
ContactUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getConnectStrings(IndividualContact[] contacts,
boolean bFixupForTakServer)
Get array of stringified NetConnectString, from array of contacts
|
static NetConnectString |
getGeoChatIpAddress(IndividualContact contact)
Helper to get NetConnectString in following order:
if TadilJContact, then only use TadilJChatConnector
Use GeoChatConnector, if available
Use IpConnector, if available
TODO is this special case for TADILJ Connector still necessary?
|
static NetConnectString |
getIpAddress(IndividualContact contact)
Helper to get NetConnectString from IpConnector, if available
|
static java.lang.String[] |
getUIDs(Contact[] contacts)
Get array of UIDs from array of contacts
|
static boolean |
isTakContact(MapItem item) |
public static final java.lang.String TAK_SERVER_CONNECTION_STRING
public static boolean isTakContact(MapItem item)
public static NetConnectString getIpAddress(IndividualContact contact)
contact
- the individual contact to obtain the ip address frompublic static NetConnectString getGeoChatIpAddress(IndividualContact contact)
contact
- the individual contact that should be used to get the specific connector.public static java.lang.String[] getUIDs(Contact[] contacts)
contacts
- provides list of contactspublic static java.lang.String[] getConnectStrings(IndividualContact[] contacts, boolean bFixupForTakServer)
contacts
- the list of contactsbFixupForTakServer
- if needing fixup for usage with a takserver.