com.skype.api
Enum ContactGroup.Type

java.lang.Object
  extended by java.lang.Enum<ContactGroup.Type>
      extended by com.skype.api.ContactGroup.Type
All Implemented Interfaces:
EnumConverting, java.io.Serializable, java.lang.Comparable<ContactGroup.Type>
Enclosing class:
ContactGroup

public static enum ContactGroup.Type
extends java.lang.Enum<ContactGroup.Type>
implements EnumConverting

The list of all possible ContactGroup types. A value of this type can be passed to Skype class GetHardwiredContactGroup to retrieve the relevant ContactGroup object.


Enum Constant Summary
ALL_BUDDIES
          The set of all authorized contacts, that is, contacts that were last the target of Contact.SetBuddyStatus(false) plus all SkypeOut contacts.
ALL_KNOWN_CONTACTS
          The superset of all "hardwired" contact groups.
CONTACTS_AUTHORIZED_BY_ME
          All contacts authorized by the user.
CONTACTS_BLOCKED_BY_ME
          Group of contacts the user has blocked from further incoming communications.
CONTACTS_WAITING_MY_AUTHORIZATION
          Contacts to whose authorization request the user has not responded yet.
CUSTOM_GROUP
          A custom group defined by user.
EXTERNAL_CONTACTS
          The set of all contacts that were originally imported from an external address book.
ONLINE_BUDDIES
          The subset of ALL_BUDDIES that are currently online, including those currently marked as DO_NOT_DISTURBED and AWAY.
PROPOSED_SHARED_GROUP
          The shared contact group functionality is no longer supported.
RECENTLY_CONTACTED_CONTACTS
          This filter returns top 10 most recently contacted contacts, based on Contact.P_LASTUSED_TIMESTAMP property values.
SHARED_GROUP
          The shared contact group functionality is no longer supported.
SKYPE_BUDDIES
          The set of all authorized Skype contacts (Contact:_SKYPENAME is non-null).
SKYPEOUT_BUDDIES
          The set of all SkypeOut contacts (Contact:_PSTNNUMBER is non-null).
UNGROUPED_BUDDIES
          The set of all "buddies" that are not also a member of a custom group.
UNKNOWN_OR_PENDING_AUTH_BUDDIES
          The set of all contacts whose Contact:_TYPE reflects UNRECOGNIZED OR have not authorized the local user yet.
 
Field Summary
static int ALL_BUDDIES_VALUE
           
static int ALL_KNOWN_CONTACTS_VALUE
           
static int CONTACTS_AUTHORIZED_BY_ME_VALUE
           
static int CONTACTS_BLOCKED_BY_ME_VALUE
           
static int CONTACTS_WAITING_MY_AUTHORIZATION_VALUE
           
static int CUSTOM_GROUP_VALUE
           
static int EXTERNAL_CONTACTS_VALUE
           
static int ONLINE_BUDDIES_VALUE
           
static int PROPOSED_SHARED_GROUP_VALUE
           
static int RECENTLY_CONTACTED_CONTACTS_VALUE
           
static int SHARED_GROUP_VALUE
           
static int SKYPE_BUDDIES_VALUE
           
static int SKYPEOUT_BUDDIES_VALUE
           
static int UNGROUPED_BUDDIES_VALUE
           
static int UNKNOWN_OR_PENDING_AUTH_BUDDIES_VALUE
           
 
Method Summary
 EnumConverting convert(int from)
           
static ContactGroup.Type get(int from)
           
 EnumConverting[] getArray(int size)
           
 EnumConverting getDefault()
           
 int getId()
           
static ContactGroup.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContactGroup.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL_KNOWN_CONTACTS

public static final ContactGroup.Type ALL_KNOWN_CONTACTS
The superset of all "hardwired" contact groups.


ALL_BUDDIES

public static final ContactGroup.Type ALL_BUDDIES
The set of all authorized contacts, that is, contacts that were last the target of Contact.SetBuddyStatus(false) plus all SkypeOut contacts.


SKYPE_BUDDIES

public static final ContactGroup.Type SKYPE_BUDDIES
The set of all authorized Skype contacts (Contact:_SKYPENAME is non-null). Note that this excludes Skype contacts that have either never been the target of Contact.SetBuddyStatus(true) or were last the target of Contactact.SetBuddyStatus(false).


SKYPEOUT_BUDDIES

public static final ContactGroup.Type SKYPEOUT_BUDDIES
The set of all SkypeOut contacts (Contact:_PSTNNUMBER is non-null). PSTN contacts can be added to the contact list by retrieving a new contact object with Skype.GetContact, passing in the phone number as string, and then either using Contact.SetBuddyStatus(true) or adding the contact to the SKYPEOUT_BUDDIES group with ContactGroup.AddContact.


ONLINE_BUDDIES

public static final ContactGroup.Type ONLINE_BUDDIES
The subset of ALL_BUDDIES that are currently online, including those currently marked as DO_NOT_DISTURBED and AWAY.


UNKNOWN_OR_PENDING_AUTH_BUDDIES

public static final ContactGroup.Type UNKNOWN_OR_PENDING_AUTH_BUDDIES
The set of all contacts whose Contact:_TYPE reflects UNRECOGNIZED OR have not authorized the local user yet.


RECENTLY_CONTACTED_CONTACTS

public static final ContactGroup.Type RECENTLY_CONTACTED_CONTACTS
This filter returns top 10 most recently contacted contacts, based on Contact.P_LASTUSED_TIMESTAMP property values. This is not configurable. Note that the P_LASTUSED_TIMESTAMP property does not propagate between different Skype instances - thus this filter only works in context of the local database. Recent contacts that were in touch with the user on some other Skype installation will not show up in this filter.


CONTACTS_WAITING_MY_AUTHORIZATION

public static final ContactGroup.Type CONTACTS_WAITING_MY_AUTHORIZATION
Contacts to whose authorization request the user has not responded yet. The UI should enable the user to accept, decline the authorization request and in case of decline, optionally block further incoming communication from the contact. See: Contact.SetBuddyStatus, Contact.SetBlocked and Contact.IgnoreAuthRequest for more information.


CONTACTS_AUTHORIZED_BY_ME

public static final ContactGroup.Type CONTACTS_AUTHORIZED_BY_ME
All contacts authorized by the user.


CONTACTS_BLOCKED_BY_ME

public static final ContactGroup.Type CONTACTS_BLOCKED_BY_ME
Group of contacts the user has blocked from further incoming communications. If the UI enables contact blocking, it should also provide interface for the user to unblock the blocked contacts. Note that a contact can simultaneously be in both CONTACTS_BLOCKED_BY_ME and CONTACTS_AUTHORIZED_BY_ME groups.


UNGROUPED_BUDDIES

public static final ContactGroup.Type UNGROUPED_BUDDIES
The set of all "buddies" that are not also a member of a custom group.


CUSTOM_GROUP

public static final ContactGroup.Type CUSTOM_GROUP
A custom group defined by user.


PROPOSED_SHARED_GROUP

public static final ContactGroup.Type PROPOSED_SHARED_GROUP
The shared contact group functionality is no longer supported. This contact group type can be ignored.


SHARED_GROUP

public static final ContactGroup.Type SHARED_GROUP
The shared contact group functionality is no longer supported. This contact group type can be ignored.


EXTERNAL_CONTACTS

public static final ContactGroup.Type EXTERNAL_CONTACTS
The set of all contacts that were originally imported from an external address book.

Field Detail

ALL_KNOWN_CONTACTS_VALUE

public static final int ALL_KNOWN_CONTACTS_VALUE
See Also:
Constant Field Values

ALL_BUDDIES_VALUE

public static final int ALL_BUDDIES_VALUE
See Also:
Constant Field Values

SKYPE_BUDDIES_VALUE

public static final int SKYPE_BUDDIES_VALUE
See Also:
Constant Field Values

SKYPEOUT_BUDDIES_VALUE

public static final int SKYPEOUT_BUDDIES_VALUE
See Also:
Constant Field Values

ONLINE_BUDDIES_VALUE

public static final int ONLINE_BUDDIES_VALUE
See Also:
Constant Field Values

UNKNOWN_OR_PENDING_AUTH_BUDDIES_VALUE

public static final int UNKNOWN_OR_PENDING_AUTH_BUDDIES_VALUE
See Also:
Constant Field Values

RECENTLY_CONTACTED_CONTACTS_VALUE

public static final int RECENTLY_CONTACTED_CONTACTS_VALUE
See Also:
Constant Field Values

CONTACTS_WAITING_MY_AUTHORIZATION_VALUE

public static final int CONTACTS_WAITING_MY_AUTHORIZATION_VALUE
See Also:
Constant Field Values

CONTACTS_AUTHORIZED_BY_ME_VALUE

public static final int CONTACTS_AUTHORIZED_BY_ME_VALUE
See Also:
Constant Field Values

CONTACTS_BLOCKED_BY_ME_VALUE

public static final int CONTACTS_BLOCKED_BY_ME_VALUE
See Also:
Constant Field Values

UNGROUPED_BUDDIES_VALUE

public static final int UNGROUPED_BUDDIES_VALUE
See Also:
Constant Field Values

CUSTOM_GROUP_VALUE

public static final int CUSTOM_GROUP_VALUE
See Also:
Constant Field Values

PROPOSED_SHARED_GROUP_VALUE

public static final int PROPOSED_SHARED_GROUP_VALUE
See Also:
Constant Field Values

SHARED_GROUP_VALUE

public static final int SHARED_GROUP_VALUE
See Also:
Constant Field Values

EXTERNAL_CONTACTS_VALUE

public static final int EXTERNAL_CONTACTS_VALUE
See Also:
Constant Field Values
Method Detail

values

public static ContactGroup.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ContactGroup.Type c : ContactGroup.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContactGroup.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getId

public int getId()
Specified by:
getId in interface EnumConverting

getDefault

public EnumConverting getDefault()
Specified by:
getDefault in interface EnumConverting

convert

public EnumConverting convert(int from)
Specified by:
convert in interface EnumConverting

getArray

public EnumConverting[] getArray(int size)
Specified by:
getArray in interface EnumConverting

get

public static ContactGroup.Type get(int from)


Copyright © 2010, 2011 Skype Technologies. All Rights Reserved.