FileDocCategorySizeDatePackage
Contact.javaAPI DocAndroid 1.5 API2455Wed May 06 22:42:46 BST 2009com.android.im.engine

Contact

public class Contact extends ImEntity implements android.os.Parcelable

Fields Summary
private Address
mAddress
private String
mName
private Presence
mPresence
public static final Parcelable.Creator
CREATOR
Constructors Summary
public Contact(Address address, String name)

        mAddress = address;
        mName = name;

        mPresence = new Presence();
    
public Contact(android.os.Parcel source)

        mAddress = AddressParcelHelper.readFromParcel(source);
        mName = source.readString();
        mPresence = new Presence(source);
    
Methods Summary
public intdescribeContents()

        return 0;
    
public booleanequals(java.lang.Object other)

        return other instanceof Contact
            && mAddress.equals(((Contact)other).mAddress);
    
public AddressgetAddress()

        return mAddress;
    
public java.lang.StringgetName()

        return mName;
    
public PresencegetPresence()

        return mPresence;
    
public inthashCode()

        return mAddress.hashCode();
    
public voidsetPresence(Presence presence)
Set the presence of the Contact. Note that this method is public but not provide to the user.

param
presence the new presence

        mPresence = presence;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        AddressParcelHelper.writeToParcel(dest, mAddress);
        dest.writeString(mName);
        mPresence.writeToParcel(dest, 0);