com.vodafone360.people.service.io.rpg
Enum PushMessageTypes

java.lang.Object
  extended by java.lang.Enum<PushMessageTypes>
      extended by com.vodafone360.people.service.io.rpg.PushMessageTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PushMessageTypes>

public enum PushMessageTypes
extends java.lang.Enum<PushMessageTypes>

Defines values for the RPG Push message types as defined in Now+ API - Communication Protocol & Events


Enum Constant Summary
AVAILABILITY_STATE_CHANGE
          String containing the user ID or external IM identifier string as the hashmap key / Map a HashMap of key/value pairs String [community] / String [availability], indicating community presence information, where: [community] is a community or presence id (e.g.
CHAT_MESSAGE
          String 'conversation' / String conversation ID String 'from' / String with senders user ID or external IM identifier string (e.g.
CLOSED_CONVERSATION
           
CONTACTS_CHANGE
          No payload
CONVERSATION_END
          String conversation id is returned
FRIENDSHIP_REQUEST_RECEIVED
          Payload = String text of the invitation message
IDENTITY_CHANGE
          No payload
IDENTITY_NETWORK_CHANGE
           
PROFILE_CHANGE
          No payload
START_CONVERSATION
           
STATUS_ACTIVITY_CHANGE
          No payload
SYSTEM_NOTIFICATION
           
TIMELINE_ACTIVITY_CHANGE
          No payload
 
Field Summary
private  java.lang.String tag
           
 
Method Summary
protected  java.lang.String tag()
          Return string value for the specified tag.
static PushMessageTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PushMessageTypes[] 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

CHAT_MESSAGE

public static final PushMessageTypes CHAT_MESSAGE
  • String 'conversation' / String conversation ID
  • String 'from' / String with senders user ID or external IM identifier string (e.g. google::steve@gmail.com)
  • String 'tos' / List containing Strings with recipients user IDs or external IM identifier string (e.g. google::hieu@gmail.com)
  • String 'body' / String with text message
    Note: all formatting tags, e.g. bold, color, etc... will be stripped from the message body


  • START_CONVERSATION

    public static final PushMessageTypes START_CONVERSATION

    CLOSED_CONVERSATION

    public static final PushMessageTypes CLOSED_CONVERSATION

    AVAILABILITY_STATE_CHANGE

    public static final PushMessageTypes AVAILABILITY_STATE_CHANGE
    String containing the user ID or external IM identifier string as the hashmap key / Map a HashMap of key/value pairs String [community] / String [availability], indicating community presence information, where: [community] is a community or presence id (e.g. 'pc', 'mobile', 'google', 'msn'). NOTE: 'pc' or 'mobile' presence indicates a device specific NOW+ presence/availability state [availability] is the presence/availability state, online | offline


    CONVERSATION_END

    public static final PushMessageTypes CONVERSATION_END
    String conversation id is returned


    PROFILE_CHANGE

    public static final PushMessageTypes PROFILE_CHANGE
    No payload


    CONTACTS_CHANGE

    public static final PushMessageTypes CONTACTS_CHANGE
    No payload


    TIMELINE_ACTIVITY_CHANGE

    public static final PushMessageTypes TIMELINE_ACTIVITY_CHANGE
    No payload


    STATUS_ACTIVITY_CHANGE

    public static final PushMessageTypes STATUS_ACTIVITY_CHANGE
    No payload


    FRIENDSHIP_REQUEST_RECEIVED

    public static final PushMessageTypes FRIENDSHIP_REQUEST_RECEIVED
    Payload = String text of the invitation message


    IDENTITY_CHANGE

    public static final PushMessageTypes IDENTITY_CHANGE
    No payload


    SYSTEM_NOTIFICATION

    public static final PushMessageTypes SYSTEM_NOTIFICATION

    IDENTITY_NETWORK_CHANGE

    public static final PushMessageTypes IDENTITY_NETWORK_CHANGE
    Field Detail

    tag

    private final java.lang.String tag
    Method Detail

    values

    public static PushMessageTypes[] 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 (PushMessageTypes c : PushMessageTypes.values())
        System.out.println(c);
    

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

    valueOf

    public static PushMessageTypes 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

    tag

    protected java.lang.String tag()
    Return string value for the specified tag.

    Returns:
    String value for tag.


    JavaDoc