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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations