com.vodafone360.people.datatypes
Class GroupItem

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

public class GroupItem
extends BaseDataType

BaseDataType encapsulating a Group item issued to or retrieved from server.


Nested Class Summary
private static class GroupItem.MemberData
          Enumeration containing items contained within GroupItem Parcel.
private static class GroupItem.Tags
          Tags associated with GroupItem item.
 
Field Summary
 java.lang.String mColor
           
 java.lang.Integer mGroupType
           
 java.lang.Long mId
          Main fields defined in documentation, used for SeGroups
 java.nio.ByteBuffer mImageBytes
           
 java.lang.String mImageMimeType
           
 java.lang.Boolean mIsReadOnly
           
 java.lang.Boolean mIsSmartGroup
           
 java.lang.Boolean mIsSystemGroup
           
 java.lang.Long mLocalGroupId
           
 java.lang.String mName
           
 java.lang.Boolean mRequiresLocalisation
           
 java.lang.Long mUserId
           
 
Constructor Summary
GroupItem()
           
 
Method Summary
 GroupItem createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
          Populate GroupItem from supplied Hashtable.
 java.util.Hashtable<java.lang.String,java.lang.Object> createHashtable()
          Create Hashtable from GroupItem parameters.
 int describeContents()
          
 java.lang.String name()
          Return name of the current Data-type.
private  void setValue(GroupItem.Tags tag, java.lang.Object val)
          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

mGroupType

public java.lang.Integer mGroupType

mIsReadOnly

public java.lang.Boolean mIsReadOnly

mRequiresLocalisation

public java.lang.Boolean mRequiresLocalisation

mIsSystemGroup

public java.lang.Boolean mIsSystemGroup

mIsSmartGroup

public java.lang.Boolean mIsSmartGroup

mLocalGroupId

public java.lang.Long mLocalGroupId

mId

public java.lang.Long mId
Main fields defined in documentation, used for SeGroups


mUserId

public java.lang.Long mUserId

mName

public java.lang.String mName

mImageMimeType

public java.lang.String mImageMimeType

mImageBytes

public java.nio.ByteBuffer mImageBytes

mColor

public java.lang.String mColor
Constructor Detail

GroupItem

public GroupItem()
Method Detail

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.

createFromHashtable

public GroupItem createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Populate GroupItem from supplied Hashtable.

Parameters:
hash - Hashtable containing identity capability details
Returns:
GroupItem instance

setValue

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

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

createHashtable

public java.util.Hashtable<java.lang.String,java.lang.Object> createHashtable()
Create Hashtable from GroupItem parameters.

Returns:
Hashtable generated from GroupItem parameters.

describeContents

public int describeContents()


writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)



JavaDoc