|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.utils.ThirdPartyAccount
public class ThirdPartyAccount
Holds data about a third party account i.e. facebook, msn, google.
Field Summary | |
---|---|
private Bitmap |
mBitmap
|
private boolean |
mChecked
|
private java.lang.String |
mDisplayName
|
private Identity |
mIdentity
|
private java.lang.String |
mIdentityID
username |
private boolean |
mIsVerified
|
private boolean |
mShouldBeProcessed
|
static java.lang.String |
SNS_TYPE_FACEBOOK
|
static java.lang.String |
SNS_TYPE_GOOGLE
|
static java.lang.String |
SNS_TYPE_HYVES
|
private static java.lang.String |
SNS_TYPE_LIVE
|
private static java.lang.String |
SNS_TYPE_MICROSOFT
|
private static java.lang.String |
SNS_TYPE_MSN
|
private static java.lang.String |
SNS_TYPE_NOWPLUS
|
static java.lang.String |
SNS_TYPE_TWITTER
|
static java.lang.String |
SNS_TYPE_VODAFONE
|
private static java.lang.String |
SNS_TYPE_WINDOWS
|
private static java.lang.String |
SNS_TYPE_ZYB
|
Constructor Summary | |
---|---|
ThirdPartyAccount(java.lang.String userName,
Identity identity,
boolean checkedByDefault,
boolean isVerified)
Create a new third party account object. |
Method Summary | |
---|---|
Bitmap |
getBitmap()
|
java.lang.String |
getDisplayName()
|
Identity |
getIdentity()
|
java.lang.String |
getIdentityID()
|
static java.lang.String |
getSnsString(Context context,
java.lang.String sns)
Gets the Localised string for the given SNS. |
boolean |
isChecked()
|
boolean |
isShouldBeProcessed()
|
boolean |
isVerified()
|
static boolean |
isVodafone(java.lang.String sns)
|
static boolean |
isWindowsLive(java.lang.String sns)
|
void |
setBitmap(Bitmap mBitmap)
|
void |
setChecked(boolean mChecked)
|
void |
setDisplayName(java.lang.String mDisplayName)
|
void |
setIdentity(Identity mIdentity)
|
void |
setIdentityID(java.lang.String mIdentityID)
|
void |
setIsVerified(boolean mIsVerified)
|
void |
setShouldBeProcessed(boolean mShouldBeProcessed)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Identity mIdentity
private Bitmap mBitmap
private boolean mIsVerified
private boolean mChecked
private boolean mShouldBeProcessed
private java.lang.String mDisplayName
private java.lang.String mIdentityID
public static final java.lang.String SNS_TYPE_FACEBOOK
private static final java.lang.String SNS_TYPE_MICROSOFT
private static final java.lang.String SNS_TYPE_MSN
private static final java.lang.String SNS_TYPE_WINDOWS
private static final java.lang.String SNS_TYPE_LIVE
public static final java.lang.String SNS_TYPE_GOOGLE
public static final java.lang.String SNS_TYPE_VODAFONE
private static final java.lang.String SNS_TYPE_NOWPLUS
private static final java.lang.String SNS_TYPE_ZYB
public static final java.lang.String SNS_TYPE_TWITTER
public static final java.lang.String SNS_TYPE_HYVES
Constructor Detail |
---|
public ThirdPartyAccount(java.lang.String userName, Identity identity, boolean checkedByDefault, boolean isVerified)
userName
- - the username for the account.identity
- - Identity details retrieved from server.checkedByDefault
- - true for the account to be enabled in the list.isVerified
- -Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isWindowsLive(java.lang.String sns)
public static boolean isVodafone(java.lang.String sns)
public static java.lang.String getSnsString(Context context, java.lang.String sns)
sns
- - text of the sns type
public void setBitmap(Bitmap mBitmap)
mBitmap
- the mBitmap to setpublic Bitmap getBitmap()
public void setIdentity(Identity mIdentity)
mIdentity
- the mIdentity to setpublic Identity getIdentity()
public void setIsVerified(boolean mIsVerified)
mIsVerified
- the mIsVerified to setpublic boolean isVerified()
public void setDisplayName(java.lang.String mDisplayName)
mDisplayName
- the mDisplayName to setpublic java.lang.String getDisplayName()
public void setIdentityID(java.lang.String mIdentityID)
mIdentityID
- the mIdentityID to setpublic java.lang.String getIdentityID()
public void setChecked(boolean mChecked)
mChecked
- the mChecked to setpublic boolean isChecked()
public void setShouldBeProcessed(boolean mShouldBeProcessed)
mShouldBeProcessed
- the mShouldBeProcessed to setpublic boolean isShouldBeProcessed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc