com.vodafone360.people.datatypes
Class UserProfile

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

public class UserProfile
extends BaseDataType

BaseDataType encapsulating user profile information retrieved from People server.


Nested Class Summary
private static class UserProfile.MemberData
          Enumeration of items written to UserProfile Parcel.
private static class UserProfile.Tags
          Tags for fields associated with UserProfile items.
 
Field Summary
 java.lang.String aboutMe
           
 java.lang.Long contactID
           
 java.util.List<ContactDetail> details
           
private  java.util.List<java.lang.Long> fofList
           
protected  java.lang.Boolean friendOfMine
           
 java.lang.Integer gender
           
private  java.lang.Boolean isMe
           
 java.lang.String profilePath
           
 java.util.List<java.lang.String> sources
           
 java.lang.Long updated
           
 java.lang.Long userID
           
 
Constructor Summary
UserProfile()
           
 
Method Summary
static UserProfile createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
          Create UserProfile from Hashtable.
 int describeContents()
          
private  UserProfile.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(UserProfile.Tags tag, java.lang.Object value)
          Sets the value of the member data item associated with the specified tag.
 java.lang.String toString()
          
 void writeToParcel(Parcel dest, int flags)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userID

public java.lang.Long userID

profilePath

public java.lang.String profilePath

contactID

public java.lang.Long contactID

sources

public java.util.List<java.lang.String> sources

gender

public java.lang.Integer gender

details

public final java.util.List<ContactDetail> details

isMe

private java.lang.Boolean isMe

fofList

private java.util.List<java.lang.Long> fofList

aboutMe

public java.lang.String aboutMe

friendOfMine

protected java.lang.Boolean friendOfMine

updated

public java.lang.Long updated
Constructor Detail

UserProfile

public UserProfile()
Method Detail

findTag

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

Parameters:
tag - String value to search for in Tag
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 static UserProfile createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create UserProfile from Hashtable.

Parameters:
hash - Hashtable containing User Profile information.
Returns:
UserProfile generated from Hashtable.

setValue

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

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

describeContents

public int describeContents()


writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)



JavaDoc