FileDocCategorySizeDatePackage
ImpsGroupAddress.javaAPI DocAndroid 1.5 API2531Wed May 06 22:42:46 BST 2009com.android.im.imps

ImpsGroupAddress

public class ImpsGroupAddress extends ImpsAddress

Fields Summary
private String
mScreenName
Constructors Summary
public ImpsGroupAddress()
Default constructor. Required by AddressParcelHelper.

    
public ImpsGroupAddress(String groupId)

        this(groupId, null);
    
public ImpsGroupAddress(ImpsAddress userAddress, String groupName)

        super(userAddress.getUser(), groupName, userAddress.getDomain());
        if(mResource == null) {
            throw new IllegalArgumentException();
        }
    
public ImpsGroupAddress(String groupId, String screenName)

        super(groupId);
        if(mResource == null) {
            throw new IllegalArgumentException();
        }
        mScreenName = screenName;
    
Methods Summary
com.android.im.engine.ImEntitygetEntity(ImpsConnection connection)

        ImpsChatGroupManager manager =
            (ImpsChatGroupManager) connection.getChatGroupManager();
        ChatGroup group = manager.getChatGroup(this);
        if(group == null) {
            group = manager.loadGroupMembersAsync(this);
        }
        return group;
    
public java.lang.StringgetScreenName()

        return mScreenName == null ? getResource() : mScreenName;
    
public voidreadFromParcel(android.os.Parcel source)

        super.readFromParcel(source);
        mScreenName = source.readString();
    
public PrimitiveElementtoPrimitiveElement()

        PrimitiveElement group = new PrimitiveElement(ImpsTags.Group);
        group.addChild(ImpsTags.GroupID, getFullName());
        return group;
    
public voidwriteToParcel(android.os.Parcel dest)

        super.writeToParcel(dest);
        dest.writeString(mScreenName);