com.vodafone360.people.database.tables
Class ActivitiesTable.TimelineSummaryItem

java.lang.Object
  extended by com.vodafone360.people.database.tables.ActivitiesTable.TimelineSummaryItem
Enclosing class:
ActivitiesTable

public static class ActivitiesTable.TimelineSummaryItem
extends java.lang.Object

This class encapsulates a timeline activity item.


Nested Class Summary
static class ActivitiesTable.TimelineSummaryItem.Type
          Enum of Timeline types.
 
Field Summary
 java.lang.String mContactAddress
          Contact address (phone number or email address).
 java.lang.Long mContactId
          Server contact ID.
 java.lang.String mContactName
          Maps to the contact name in the table.
 java.lang.String mContactNetwork
          Maps to contact network stored in the table.
 java.lang.String mDescription
          Maps to description stored in the table.
private  boolean mHasAvatar
          Set to true if there is an avatar URL stored in the table.
 ActivitiesTable.TimelineSummaryItem.Type mIncoming
          Messages can be incoming and outgoing.
private  java.lang.Long mLocalActivityId
          Maps to the local activity ID (primary key).
 java.lang.Long mLocalContactId
          Maps to local contact id in the table.
 java.lang.Integer mNativeItemId
          Key linking to the call-log or message-log item in the native database.
 java.lang.Integer mNativeItemType
          Maps to native item type in the table Can be an ordinal from the ActivitiesTable#TimelineNativeTypes.
 java.lang.Integer mNativeThreadId
          Thread ID from the native database (for messages).
 java.lang.Long mTimestamp
          Maps to the activity timestamp in the table.
 java.lang.String mTitle
          Maps to title stored in the table.
 ActivityItem.Type mType
          Maps to type in the table.
 java.lang.Long mUserId
          User ID from the server.
 
Constructor Summary
ActivitiesTable.TimelineSummaryItem()
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
static ActivitiesTable.TimelineSummaryItem.Type getType(int input)
          Get the Type from a given Integer value.
 java.lang.String toString()
          Returns a string describing the timeline summary item.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mLocalActivityId

private java.lang.Long mLocalActivityId
Maps to the local activity ID (primary key).


mTimestamp

public java.lang.Long mTimestamp
Maps to the activity timestamp in the table.


mContactName

public java.lang.String mContactName
Maps to the contact name in the table.


mHasAvatar

private boolean mHasAvatar
Set to true if there is an avatar URL stored in the table.


mType

public ActivityItem.Type mType
Maps to type in the table.


mLocalContactId

public java.lang.Long mLocalContactId
Maps to local contact id in the table.


mContactNetwork

public java.lang.String mContactNetwork
Maps to contact network stored in the table.


mTitle

public java.lang.String mTitle
Maps to title stored in the table.


mDescription

public java.lang.String mDescription
Maps to description stored in the table.


mNativeItemType

public java.lang.Integer mNativeItemType
Maps to native item type in the table Can be an ordinal from the ActivitiesTable#TimelineNativeTypes.


mNativeItemId

public java.lang.Integer mNativeItemId
Key linking to the call-log or message-log item in the native database.


mContactId

public java.lang.Long mContactId
Server contact ID.


mUserId

public java.lang.Long mUserId
User ID from the server.


mNativeThreadId

public java.lang.Integer mNativeThreadId
Thread ID from the native database (for messages).


mContactAddress

public java.lang.String mContactAddress
Contact address (phone number or email address).


mIncoming

public ActivitiesTable.TimelineSummaryItem.Type mIncoming
Messages can be incoming and outgoing.

Constructor Detail

ActivitiesTable.TimelineSummaryItem

public ActivitiesTable.TimelineSummaryItem()
Method Detail

getType

public static ActivitiesTable.TimelineSummaryItem.Type getType(int input)
Get the Type from a given Integer value.

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

toString

public final java.lang.String toString()
Returns a string describing the timeline summary item.

Overrides:
toString in class java.lang.Object
Returns:
String describing the timeline summary item.

equals

public final boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object


JavaDoc