Search in sources :

Example 11 with ApiGroupFull

use of im.actor.core.api.ApiGroupFull in project actor-platform by actorapp.

the class Group method editMembers.

//
// Members
//
public Group editMembers(List<ApiMember> members) {
    ApiGroupFull fullExt = null;
    if (getWrappedExt() != null) {
        ApiGroupFull e = getWrappedExt();
        fullExt = new ApiGroupFull(e.getId(), e.getCreateDate(), e.getOwnerUid(), members, e.getTheme(), e.getAbout(), e.getExt(), e.isAsyncMembers(), e.isSharedHistory(), e.getShortName(), e.getPermissions());
        fullExt.setUnmappedObjects(e.getUnmappedObjects());
    }
    ApiGroup w = getWrapped();
    ApiGroup res = new ApiGroup(w.getId(), w.getAccessHash(), w.getTitle(), w.getAvatar(), members.size(), w.isMember(), w.isHidden(), w.getGroupType(), w.getPermissions(), w.isDeleted(), w.getExt());
    return new Group(res, fullExt);
}
Also used : ApiGroup(im.actor.core.api.ApiGroup) ApiGroup(im.actor.core.api.ApiGroup) ApiGroupFull(im.actor.core.api.ApiGroupFull)

Aggregations

ApiGroup (im.actor.core.api.ApiGroup)11 ApiGroupFull (im.actor.core.api.ApiGroupFull)11 ApiMember (im.actor.core.api.ApiMember)2 ArrayList (java.util.ArrayList)2