Search in sources :

Example 1 with ApiAdminSettings

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

the class GroupPermissions method setMembersCanInvite.

@ObjectiveCName("setMembersCanInvite:")
public void setMembersCanInvite(boolean membersCanInvite) {
    SparseArray<Object> unmapped = settings.getUnmappedObjects();
    settings = new ApiAdminSettings(settings.showAdminsToMembers(), membersCanInvite, settings.canMembersEditGroupInfo(), settings.canAdminsEditGroupInfo(), settings.showJoinLeaveMessages());
    settings.setUnmappedObjects(unmapped);
}
Also used : ApiAdminSettings(im.actor.core.api.ApiAdminSettings) ObjectiveCName(com.google.j2objc.annotations.ObjectiveCName)

Example 2 with ApiAdminSettings

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

the class GroupPermissions method setMembersCanEditInfo.

@ObjectiveCName("setMembersCanEditInfo:")
public void setMembersCanEditInfo(boolean canEditInfo) {
    SparseArray<Object> unmapped = settings.getUnmappedObjects();
    settings = new ApiAdminSettings(settings.showAdminsToMembers(), settings.canMembersInvite(), canEditInfo, settings.canAdminsEditGroupInfo(), settings.showJoinLeaveMessages());
    settings.setUnmappedObjects(unmapped);
}
Also used : ApiAdminSettings(im.actor.core.api.ApiAdminSettings) ObjectiveCName(com.google.j2objc.annotations.ObjectiveCName)

Example 3 with ApiAdminSettings

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

the class GroupPermissions method setShowAdminsToMembers.

@ObjectiveCName("showAdminsToMembers:")
public void setShowAdminsToMembers(boolean showAdminsToMembers) {
    SparseArray<Object> unmapped = settings.getUnmappedObjects();
    settings = new ApiAdminSettings(showAdminsToMembers, settings.canMembersInvite(), settings.canMembersEditGroupInfo(), settings.canAdminsEditGroupInfo(), settings.showJoinLeaveMessages());
    settings.setUnmappedObjects(unmapped);
}
Also used : ApiAdminSettings(im.actor.core.api.ApiAdminSettings) ObjectiveCName(com.google.j2objc.annotations.ObjectiveCName)

Example 4 with ApiAdminSettings

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

the class GroupPermissions method setShowJoinLeaveMessages.

@ObjectiveCName("setShowJoinLeaveMessages:")
public void setShowJoinLeaveMessages(boolean showJoinLeaveMessages) {
    SparseArray<Object> unmapped = settings.getUnmappedObjects();
    settings = new ApiAdminSettings(settings.showAdminsToMembers(), settings.canMembersInvite(), settings.canMembersEditGroupInfo(), settings.canAdminsEditGroupInfo(), showJoinLeaveMessages);
    settings.setUnmappedObjects(unmapped);
}
Also used : ApiAdminSettings(im.actor.core.api.ApiAdminSettings) ObjectiveCName(com.google.j2objc.annotations.ObjectiveCName)

Example 5 with ApiAdminSettings

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

the class GroupPermissions method setAdminsCanEditGroupInfo.

@ObjectiveCName("setAdminsCanEditGroupInfo:")
public void setAdminsCanEditGroupInfo(boolean adminsCanEditGroupInfo) {
    SparseArray<Object> unmapped = settings.getUnmappedObjects();
    settings = new ApiAdminSettings(settings.showAdminsToMembers(), settings.canMembersInvite(), settings.canMembersEditGroupInfo(), adminsCanEditGroupInfo, settings.showJoinLeaveMessages());
    settings.setUnmappedObjects(unmapped);
}
Also used : ApiAdminSettings(im.actor.core.api.ApiAdminSettings) ObjectiveCName(com.google.j2objc.annotations.ObjectiveCName)

Aggregations

ObjectiveCName (com.google.j2objc.annotations.ObjectiveCName)5 ApiAdminSettings (im.actor.core.api.ApiAdminSettings)5