AccessMode class

Access control is mostly usable for group topics. Its usability for me and P2P topics is limited to managing presence notifications and banning uses from initiating or continuing P2P conversations.

Constructors

AccessMode(dynamic acs)
Create new instance by passing an AccessMode or Map<String, dynamic>

Properties

hashCode int
The hash code for this object.
no setterinherited
mode int
Combination of want and given
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getExcessive() String?
What permission is given and user does not want
getGiven() String?
Returns encoded given
getMissing() String?
What user want that is not given
getMode() String?
Returns encoded mode
getWant() String?
Returns encoded want
isAdmin(String side) bool
isApprover(String side) bool
isDeleter(String side) bool
isJoiner(String side) bool
Can this user subscribe on topic?
isMuted(String? side) bool
isOwner(String side) bool
isPresencer(String? side) bool
isReader(String side) bool
isSharer(String side) bool
isWriter(String side) bool
jsonHelper() Map<String, String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setGiven(dynamic given) AccessMode
setMode(dynamic mode) AccessMode
setWant(dynamic want) AccessMode
toString() String
A string representation of this object.
override
updateAll(AccessMode? val) AccessMode
updateGiven(String update) AccessMode
updateMode(String update) AccessMode
updateWant(String update) AccessMode

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](dynamic other) int

Static Methods

checkFlag(AccessMode val, String? side, int flag) bool
Returns true if AccessNode has x flag
decode(dynamic mode) int?
Decodes string access mode to integer
diff(dynamic a1, dynamic a2) int
Get diff from two modes
encode(int val) String?
Decodes integer access mode to string
update(int val, String upd) int
Updates mode with newly given permissions