com.vodafone360.people.datatypes
Class ContactChanges

java.lang.Object
  extended by com.vodafone360.people.datatypes.BaseDataType
      extended by com.vodafone360.people.datatypes.ContactChanges

public class ContactChanges
extends BaseDataType

BaseDataType representing Contact change information retrieved from server.


Nested Class Summary
private static class ContactChanges.Tags
          Tags associated with ContactChanges item.
 
Field Summary
 java.util.List<Contact> mContacts
          Array of Contact data-types generated from data returned from Server.
 java.lang.Integer mCurrentServerVersion
          Current Server version.
private  java.lang.Boolean mHasGroupChanges
           
 java.lang.Integer mNumberOfPages
          Number of pages returned.
 java.lang.Integer mServerRevisionAfter
          Final Server revision.
 java.lang.Integer mServerRevisionBefore
          Initial Server revision.
 UserProfile mUserProfile
           
 java.lang.Integer mVersionAnchor
          Version anchor.
 
Constructor Summary
ContactChanges()
           
 
Method Summary
 ContactChanges createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
          Create ContactChanges from Hashtable generated by Hessian-decoder
private  ContactChanges.Tags findTag(java.lang.String tag)
          Find Tags item for specified String
 java.lang.String name()
          Return name of the current Data-type.
private  void setValue(ContactChanges.Tags tag, java.lang.Object value)
          Sets the value of the member data item associated with the specified tag.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mContacts

public java.util.List<Contact> mContacts
Array of Contact data-types generated from data returned from Server.


mNumberOfPages

public java.lang.Integer mNumberOfPages
Number of pages returned.


mCurrentServerVersion

public java.lang.Integer mCurrentServerVersion
Current Server version.


mVersionAnchor

public java.lang.Integer mVersionAnchor
Version anchor.


mServerRevisionBefore

public java.lang.Integer mServerRevisionBefore
Initial Server revision.


mServerRevisionAfter

public java.lang.Integer mServerRevisionAfter
Final Server revision.


mHasGroupChanges

private java.lang.Boolean mHasGroupChanges

mUserProfile

public UserProfile mUserProfile
Constructor Detail

ContactChanges

public ContactChanges()
Method Detail

findTag

private ContactChanges.Tags findTag(java.lang.String tag)
Find Tags item for specified String

Parameters:
tag - String value to find Tags item for
Returns:
Tags item for specified String, null otherwise

name

public java.lang.String name()
Return name of the current Data-type.

Specified by:
name in class BaseDataType
Returns:
String containing name of the data-type.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

createFromHashtable

public ContactChanges createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create ContactChanges from Hashtable generated by Hessian-decoder

Parameters:
hash - Hashtable generated by Hessian-decoder
Returns:
ContactChanges created from supplied Hashtable

setValue

private void setValue(ContactChanges.Tags tag,
                      java.lang.Object value)
Sets the value of the member data item associated with the specified tag.

Parameters:
tag - Current tag
val - Value associated with the tag


JavaDoc