Search in sources :

Example 1 with ApiGroup

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());
}
Also used : ApiGroup(im.actor.core.api.ApiGroup) ApiGroup(im.actor.core.api.ApiGroup)

Example 2 with ApiGroup

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());
}
Also used : ApiGroup(im.actor.core.api.ApiGroup) ApiGroup(im.actor.core.api.ApiGroup)

Example 3 with ApiGroup

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());
}
Also used : ApiGroup(im.actor.core.api.ApiGroup) ApiGroup(im.actor.core.api.ApiGroup)

Example 4 with ApiGroup

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());
}
Also used : ApiGroup(im.actor.core.api.ApiGroup) ApiGroup(im.actor.core.api.ApiGroup)

Example 5 with ApiGroup

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());
}
Also used : ApiGroup(im.actor.core.api.ApiGroup) ApiGroup(im.actor.core.api.ApiGroup)

Aggregations

ApiGroup (im.actor.core.api.ApiGroup)10 ApiGroupFull (im.actor.core.api.ApiGroupFull)2 ArrayList (java.util.ArrayList)2 ApiGroupOutPeer (im.actor.core.api.ApiGroupOutPeer)1 ApiMember (im.actor.core.api.ApiMember)1 ApiUser (im.actor.core.api.ApiUser)1 ApiUserOutPeer (im.actor.core.api.ApiUserOutPeer)1 RequestGetReferencedEntitites (im.actor.core.api.rpc.RequestGetReferencedEntitites)1 ModuleActor (im.actor.core.modules.ModuleActor)1 ModuleContext (im.actor.core.modules.ModuleContext)1 HandlerDifferenceUpdates (im.actor.core.modules.sequence.internal.HandlerDifferenceUpdates)1 HandlerRelatedResponse (im.actor.core.modules.sequence.internal.HandlerRelatedResponse)1 HandlerSeqUpdate (im.actor.core.modules.sequence.internal.HandlerSeqUpdate)1 HandlerWeakUpdate (im.actor.core.modules.sequence.internal.HandlerWeakUpdate)1 UpdateProcessor (im.actor.core.modules.sequence.processor.UpdateProcessor)1 Update (im.actor.core.network.parser.Update)1 Log (im.actor.runtime.Log)1 Runtime (im.actor.runtime.Runtime)1 ActorCreator (im.actor.runtime.actors.ActorCreator)1 Void (im.actor.runtime.actors.messages.Void)1