|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.datatypes.BaseDataType com.vodafone360.people.datatypes.ActivityItem
public class ActivityItem
BaseDataType encapsulating an ActivityItem retrieved from, or to be issued to, Now + server
Nested Class Summary | |
---|---|
static class |
ActivityItem.Flag
Flags identifying ActivityItems as Status or Timeline events and already read |
private static class |
ActivityItem.Tags
Tags associated with ActivityItem representing data items associated with Activities returned from server. |
static class |
ActivityItem.Type
Activity types, a number of these types are not currently handled by People client but will be as more activity events are supported. |
static class |
ActivityItem.Visibility
Visibility flags for ActivityItem |
Field Summary | |
---|---|
private static int |
ADDRESSBOOK
|
static int |
ALREADY_READ
|
private static int |
BUSINESSCONTACTS
|
private static int |
CONNECTED_FRIENDS
|
private static int |
KNOWUSER
|
java.lang.Integer |
mActivityFlags
|
java.lang.Long |
mActivityId
|
java.util.List<ActivityContact> |
mContactList
Defines the contact information of the counter-parties in the activity. |
java.lang.String |
mDescription
Long text description of the activity. |
java.util.List<ActivityItem.Flag> |
mFlagList
Miscellaneous flags. |
java.lang.Boolean |
mHasChildren
Indicates wether this activity 'groups' several child activities. |
java.lang.Long |
mLocalActivityId
local id for db |
java.lang.Long |
mParentActivity
The parent activity for 'grouped' or aggregated activities. |
java.nio.ByteBuffer |
mPreview
Defines a binary preview for the activity. |
java.lang.String |
mPreviewMime
Defines the MIME type of the preview binary data. |
java.lang.String |
mPreviewUrl
Defines an http url that the client can use to retrieve preview binary data. |
java.lang.String |
mStore
Name of the store type for this message. |
java.lang.Long |
mTime
|
java.lang.String |
mTitle
Short text description of the activity. |
ActivityItem.Type |
mType
Defines the type of the activity. |
java.lang.String |
mUri
|
java.util.List<ActivityItem.Visibility> |
mVisibility
Defines the visibility of the activity. |
java.lang.Integer |
mVisibilityFlags
|
private static int |
ORIGINATOR
|
private static int |
RECIPIENT
|
static int |
STATUS_ITEM
|
static int |
TIMELINE_ITEM
|
Constructor Summary | |
---|---|
ActivityItem()
|
Method Summary | |
---|---|
static ActivityItem |
createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create ActivityItem from HashTable generated by Hessian-decoder |
java.lang.String |
name()
Return name of the current Data-type. |
private void |
setValue(ActivityItem.Tags tag,
java.lang.Object value)
Sets the value of the member data item associated with the specified tag. |
java.lang.String |
toString()
|
private void |
updateMiscFlags(ActivityItem.Flag flagValue)
Set values for mActivityFlags flag. |
private void |
updateVisibilityFlags(ActivityItem.Visibility flagValue)
Update visibility flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ALREADY_READ
public static final int TIMELINE_ITEM
public static final int STATUS_ITEM
private static final int ORIGINATOR
private static final int RECIPIENT
private static final int ADDRESSBOOK
private static final int BUSINESSCONTACTS
private static final int KNOWUSER
private static final int CONNECTED_FRIENDS
public java.lang.Long mLocalActivityId
public java.lang.Long mActivityId
public java.lang.Long mTime
public ActivityItem.Type mType
public java.lang.String mUri
public java.lang.String mTitle
public java.lang.String mDescription
public java.nio.ByteBuffer mPreview
public java.lang.String mPreviewMime
public java.lang.String mPreviewUrl
public java.lang.String mStore
public java.util.List<ActivityItem.Flag> mFlagList
public java.lang.Integer mActivityFlags
public java.lang.Long mParentActivity
public java.lang.Boolean mHasChildren
public java.util.List<ActivityItem.Visibility> mVisibility
public java.lang.Integer mVisibilityFlags
public java.util.List<ActivityContact> mContactList
Constructor Detail |
---|
public ActivityItem()
Method Detail |
---|
public java.lang.String name()
name
in class BaseDataType
public static ActivityItem createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
hash
- Hashtable representing ActivityItem
private void setValue(ActivityItem.Tags tag, java.lang.Object value)
tag
- Current tagval
- Value associated with the tagprivate void updateMiscFlags(ActivityItem.Flag flagValue)
flagValue
- Value to add to mActivityFlags item.private void updateVisibilityFlags(ActivityItem.Visibility flagValue)
flagValue
- visibility value to add to mVisibilityFlags.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc