use of im.actor.core.api.ApiGroup in project actor-platform by actorapp.
the class Group method editExt.
public Group editExt(ApiMapValue ext) {
ApiGroup w = getWrapped();
ApiGroup res = new ApiGroup(w.getId(), w.getAccessHash(), w.getTitle(), w.getAvatar(), w.getMembersCount(), w.isMember(), w.isHidden(), w.getGroupType(), w.getPermissions(), w.isDeleted(), ext);
res.setUnmappedObjects(w.getUnmappedObjects());
return new Group(res, getWrappedExt());
}
use of im.actor.core.api.ApiGroup in project actor-platform by actorapp.
the class Group method editTitle.
//
// Editing Main
//
public Group editTitle(String title) {
ApiGroup w = getWrapped();
ApiGroup res = new ApiGroup(w.getId(), w.getAccessHash(), title, w.getAvatar(), w.getMembersCount(), w.isMember(), w.isHidden(), w.getGroupType(), w.getPermissions(), w.isDeleted(), w.getExt());
res.setUnmappedObjects(w.getUnmappedObjects());
return new Group(res, getWrappedExt());
}
use of im.actor.core.api.ApiGroup in project actor-platform by actorapp.
the class Group method editAvatar.
public Group editAvatar(ApiAvatar avatar) {
ApiGroup w = getWrapped();
ApiGroup res = new ApiGroup(w.getId(), w.getAccessHash(), w.getTitle(), avatar, w.getMembersCount(), w.isMember(), w.isHidden(), w.getGroupType(), w.getPermissions(), w.isDeleted(), w.getExt());
res.setUnmappedObjects(w.getUnmappedObjects());
return new Group(res, getWrappedExt());
}
use of im.actor.core.api.ApiGroup in project actor-platform by actorapp.
the class Group method editPermissions.
public Group editPermissions(long permissions) {
ApiGroup w = getWrapped();
ApiGroup res = new ApiGroup(w.getId(), w.getAccessHash(), w.getTitle(), w.getAvatar(), w.getMembersCount(), w.isMember(), w.isHidden(), w.getGroupType(), permissions, w.isDeleted(), w.getExt());
res.setUnmappedObjects(w.getUnmappedObjects());
return new Group(res, getWrappedExt());
}
use of im.actor.core.api.ApiGroup in project actor-platform by actorapp.
the class Group method editIsMember.
public Group editIsMember(boolean isMember) {
ApiGroup w = getWrapped();
ApiGroup res = new ApiGroup(w.getId(), w.getAccessHash(), w.getTitle(), w.getAvatar(), w.getMembersCount(), isMember, w.isHidden(), w.getGroupType(), w.getPermissions(), w.isDeleted(), w.getExt());
res.setUnmappedObjects(w.getUnmappedObjects());
return new Group(res, getWrappedExt());
}
Aggregations