com.vodafone360.people.service
Enum ServiceUiRequest

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

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

The list of requests that the People Client UI can issue to the People Client service. These requests are handled by the appropriate engine.


Enum Constant Summary
CREATE_CONVERSATION
          Start a chat conversation.
DATABASE_CHANGED_EVENT
           
DOWNLOAD_THUMBNAIL
          Starts me profile thumbnail download, handled by SyncMeEngine.
FETCH_IDENTITIES
          Fetch list of available 3rd party accounts, handled by IdentitiesEngine.
FETCH_PRIVACY_STATEMENT
          Handled by LoginEngine.
FETCH_STATUSES
          Fetch older activities from Server, handled by ActivitiesEngine.
FETCH_TERMS_OF_SERVICE
          Handled by LoginEngine.
FETCH_TIMELINES
          Fetch timelines from the native (invoked by "show older" button)
GET_GROUPS
          Gets the groups for the contacts that are retrieved from the backend.
GET_ME_PROFILE
          Starts me profile download, handled by SyncMeEngine.
GET_MY_CHATABLE_IDENTITIES
          Get list of 3rd party accounts for current user that support chat, handled by IdentitiesEngine.
GET_MY_IDENTITIES
          Get list of 3rd party accounts for current user, handled by IdentitiesEngine.
GET_PRESENCE_LIST
          Request list of current 'presence status'of contacts, handled by PresenceEngine.
LOGIN
          Login to existing account, handled by LoginEngine.
LOGOUT
          Logout from account, handled by LoginEngine.
NOWPLUSSYNC
          Start contacts sync, handled by ContactSyncEngine.
REGISTRATION
          Sign-up a new account, handled by LoginEngine.
REMOVE_USER_DATA
          Remove all user data.
SEND_CHAT_MESSAGE
          Send chat message.
SET_IDENTITY_CAPABILITY_STATUS
          Set required capabilities for specified 3rd party account, handled by IdentitiesEngine.
SET_MY_AVAILABILITY
          Request to set the presence availability status.
SETTING_CHANGED_EVENT
           
UI_REQUEST_COMPLETE
           
UNKNOWN
           
UNSOLICITED_CHAT
           
UNSOLICITED_CHAT_ERROR
           
UNSOLICITED_CHAT_ERROR_REFRESH
           
UNSOLICITED_DIALOG_UPGRADE
          LOW PRIORITY Show the upgrade dialog.
UNSOLICITED_GO_TO_LANDING_PAGE
          HIGH PRIRITY: Go to landing page, explain why in the Bundle.
UNSOLICITED_PRESENCE
           
UNSOLICITED_PRESENCE_ERROR
           
UPDATE_ME_PROFILE
          Starts me profile upload, handled by SyncMeEngine.
UPDATE_PHONE_CALLS
          Update the timeline list (invoked by NAB event)
UPDATE_SMS
          Update the timeline list (invoked by NAB event)
UPDATE_STATUSES
          Fetch latest statuses from Server ("refresh" button, or push event), handled by ActivitiesEngine.
UPDATE_SYNC_STATE
          Update the contact sync progress bar, currently used only in the SyncingYourAddressBookActivity.
UPDATE_TIMELINES
          Update the timeline list (invoked by push event)
UPDATING_UI
          UI might need to display a progress bar, or other background process indication
UPDATING_UI_FINISHED
          UI might need to remove a progress bar, or other background process indication
UPGRADE_CHANGE_FREQUENCY
          Set frequency for upgrade check in UpgradeEngine.
UPGRADE_CHECK_NOW
          Request UpgradeEngine to check if an updated version of application is available.
UPLOAD_ME_STATUS
          Starts me profile status upload.
USERNAME_AVAILABILITY
          Fetch user-name availability state, handled by LoginEngine.
VALIDATE_IDENTITY_CREDENTIALS
          Validate credentials for specified 3rd party account, handled by IdentitiesEngine.
 
Method Summary
static ServiceUiRequest getUiEvent(int input)
          Get the UiEvent from a given Integer value.
static ServiceUiRequest valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServiceUiRequest[] 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

UNSOLICITED_GO_TO_LANDING_PAGE

public static final ServiceUiRequest UNSOLICITED_GO_TO_LANDING_PAGE
HIGH PRIRITY: Go to landing page, explain why in the Bundle.


UI_REQUEST_COMPLETE

public static final ServiceUiRequest UI_REQUEST_COMPLETE

DATABASE_CHANGED_EVENT

public static final ServiceUiRequest DATABASE_CHANGED_EVENT

SETTING_CHANGED_EVENT

public static final ServiceUiRequest SETTING_CHANGED_EVENT

UPDATE_SYNC_STATE

public static final ServiceUiRequest UPDATE_SYNC_STATE
Update the contact sync progress bar, currently used only in the SyncingYourAddressBookActivity.


UNSOLICITED_CHAT

public static final ServiceUiRequest UNSOLICITED_CHAT

UNSOLICITED_PRESENCE

public static final ServiceUiRequest UNSOLICITED_PRESENCE

UNSOLICITED_CHAT_ERROR

public static final ServiceUiRequest UNSOLICITED_CHAT_ERROR

UNSOLICITED_CHAT_ERROR_REFRESH

public static final ServiceUiRequest UNSOLICITED_CHAT_ERROR_REFRESH

UNSOLICITED_PRESENCE_ERROR

public static final ServiceUiRequest UNSOLICITED_PRESENCE_ERROR

UNSOLICITED_DIALOG_UPGRADE

public static final ServiceUiRequest UNSOLICITED_DIALOG_UPGRADE
LOW PRIORITY Show the upgrade dialog.


LOGIN

public static final ServiceUiRequest LOGIN
Login to existing account, handled by LoginEngine.

See Also:
LoginEngine

REGISTRATION

public static final ServiceUiRequest REGISTRATION
Sign-up a new account, handled by LoginEngine.

See Also:
LoginEngine

USERNAME_AVAILABILITY

public static final ServiceUiRequest USERNAME_AVAILABILITY
Fetch user-name availability state, handled by LoginEngine.

See Also:
LoginEngine

FETCH_TERMS_OF_SERVICE

public static final ServiceUiRequest FETCH_TERMS_OF_SERVICE
Handled by LoginEngine.

See Also:
LoginEngine

FETCH_PRIVACY_STATEMENT

public static final ServiceUiRequest FETCH_PRIVACY_STATEMENT
Handled by LoginEngine.

See Also:
LoginEngine

FETCH_IDENTITIES

public static final ServiceUiRequest FETCH_IDENTITIES
Fetch list of available 3rd party accounts, handled by IdentitiesEngine.

See Also:
com.vodafone360.people.engine.identitys.IdentityEngine

VALIDATE_IDENTITY_CREDENTIALS

public static final ServiceUiRequest VALIDATE_IDENTITY_CREDENTIALS
Validate credentials for specified 3rd party account, handled by IdentitiesEngine.

See Also:
com.vodafone360.people.engine.identitys.IdentityEngine

SET_IDENTITY_CAPABILITY_STATUS

public static final ServiceUiRequest SET_IDENTITY_CAPABILITY_STATUS
Set required capabilities for specified 3rd party account, handled by IdentitiesEngine.

See Also:
com.vodafone360.people.engine.identitys.IdentityEngine

GET_MY_IDENTITIES

public static final ServiceUiRequest GET_MY_IDENTITIES
Get list of 3rd party accounts for current user, handled by IdentitiesEngine.

See Also:
com.vodafone360.people.engine.identitys.IdentityEngine

GET_MY_CHATABLE_IDENTITIES

public static final ServiceUiRequest GET_MY_CHATABLE_IDENTITIES
Get list of 3rd party accounts for current user that support chat, handled by IdentitiesEngine.

See Also:
com.vodafone360.people.engine.identitys.IdentityEngine

FETCH_STATUSES

public static final ServiceUiRequest FETCH_STATUSES
Fetch older activities from Server, handled by ActivitiesEngine.

See Also:
ActivitiesEngine

UPDATE_STATUSES

public static final ServiceUiRequest UPDATE_STATUSES
Fetch latest statuses from Server ("refresh" button, or push event), handled by ActivitiesEngine.

See Also:
com.vodafone360.people.engine.identitys.AvtivitiesEngine

FETCH_TIMELINES

public static final ServiceUiRequest FETCH_TIMELINES
Fetch timelines from the native (invoked by "show older" button)

See Also:
com.vodafone360.people.engine.identitys.AvtivitiesEngine

UPDATE_PHONE_CALLS

public static final ServiceUiRequest UPDATE_PHONE_CALLS
Update the timeline list (invoked by NAB event)

See Also:
com.vodafone360.people.engine.identitys.AvtivitiesEngine

UPDATE_SMS

public static final ServiceUiRequest UPDATE_SMS
Update the timeline list (invoked by NAB event)

See Also:
com.vodafone360.people.engine.identitys.AvtivitiesEngine

UPDATE_TIMELINES

public static final ServiceUiRequest UPDATE_TIMELINES
Update the timeline list (invoked by push event)

See Also:
com.vodafone360.people.engine.identitys.AvtivitiesEngine

NOWPLUSSYNC

public static final ServiceUiRequest NOWPLUSSYNC
Start contacts sync, handled by ContactSyncEngine.

See Also:
ContactSyncEngine

GET_ME_PROFILE

public static final ServiceUiRequest GET_ME_PROFILE
Starts me profile download, handled by SyncMeEngine.

See Also:
SyncMeEngine

UPDATE_ME_PROFILE

public static final ServiceUiRequest UPDATE_ME_PROFILE
Starts me profile upload, handled by SyncMeEngine.

See Also:
SyncMeEngine

UPLOAD_ME_STATUS

public static final ServiceUiRequest UPLOAD_ME_STATUS
Starts me profile status upload.

See Also:
SyncMeEngine

DOWNLOAD_THUMBNAIL

public static final ServiceUiRequest DOWNLOAD_THUMBNAIL
Starts me profile thumbnail download, handled by SyncMeEngine.

See Also:
SyncMeEngine

REMOVE_USER_DATA

public static final ServiceUiRequest REMOVE_USER_DATA
Remove all user data.


LOGOUT

public static final ServiceUiRequest LOGOUT
Logout from account, handled by LoginEngine. For debug/development use only.

See Also:
LoginEngine

UPGRADE_CHECK_NOW

public static final ServiceUiRequest UPGRADE_CHECK_NOW
Request UpgradeEngine to check if an updated version of application is available.

See Also:
UpgradeEngine

UPGRADE_CHANGE_FREQUENCY

public static final ServiceUiRequest UPGRADE_CHANGE_FREQUENCY
Set frequency for upgrade check in UpgradeEngine.

See Also:
UpgradeEngine

GET_PRESENCE_LIST

public static final ServiceUiRequest GET_PRESENCE_LIST
Request list of current 'presence status'of contacts, handled by PresenceEngine.


SET_MY_AVAILABILITY

public static final ServiceUiRequest SET_MY_AVAILABILITY
Request to set the presence availability status.


CREATE_CONVERSATION

public static final ServiceUiRequest CREATE_CONVERSATION
Start a chat conversation.


SEND_CHAT_MESSAGE

public static final ServiceUiRequest SEND_CHAT_MESSAGE
Send chat message.


UPDATING_UI

public static final ServiceUiRequest UPDATING_UI
UI might need to display a progress bar, or other background process indication


UPDATING_UI_FINISHED

public static final ServiceUiRequest UPDATING_UI_FINISHED
UI might need to remove a progress bar, or other background process indication


GET_GROUPS

public static final ServiceUiRequest GET_GROUPS
Gets the groups for the contacts that are retrieved from the backend.


UNKNOWN

public static final ServiceUiRequest UNKNOWN
Method Detail

values

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

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

valueOf

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

getUiEvent

public static ServiceUiRequest getUiEvent(int input)
Get the UiEvent from a given Integer value.

Parameters:
input - Integer.ordinal value of the UiEvent
Returns:
Relevant UiEvent or UNKNOWN if the Integer is not known.


JavaDoc