ImpsGroupAddresspublic 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.ImEntity | getEntity(ImpsConnection connection)
ImpsChatGroupManager manager =
(ImpsChatGroupManager) connection.getChatGroupManager();
ChatGroup group = manager.getChatGroup(this);
if(group == null) {
group = manager.loadGroupMembersAsync(this);
}
return group;
| public java.lang.String | getScreenName()
return mScreenName == null ? getResource() : mScreenName;
| public void | readFromParcel(android.os.Parcel source)
super.readFromParcel(source);
mScreenName = source.readString();
| public PrimitiveElement | toPrimitiveElement()
PrimitiveElement group = new PrimitiveElement(ImpsTags.Group);
group.addChild(ImpsTags.GroupID, getFullName());
return group;
| public void | writeToParcel(android.os.Parcel dest)
super.writeToParcel(dest);
dest.writeString(mScreenName);
|
|