aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-01 11:05:40 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-01 11:05:40 +0100
commit2ab6cb0ada6370e6ea83a73e0a6a39ea3ff90715 (patch)
tree180411e193816a07a49f083504e7279db2796430 /src/eu/siacs/conversations
parent7b1dd0d0ee170c6892e31b2ef0f66f1c828f24d1 (diff)
hover effect
Diffstat (limited to 'src/eu/siacs/conversations')
-rw-r--r--src/eu/siacs/conversations/entities/MucOptions.java39
1 files changed, 38 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/entities/MucOptions.java b/src/eu/siacs/conversations/entities/MucOptions.java
index 4a738e65..d5340ea8 100644
--- a/src/eu/siacs/conversations/entities/MucOptions.java
+++ b/src/eu/siacs/conversations/entities/MucOptions.java
@@ -1,5 +1,42 @@
package eu.siacs.conversations.entities;
-public class MucOptions {
+import android.annotation.SuppressLint;
+@SuppressLint("DefaultLocale")
+public class MucOptions {
+ public class User {
+ public static final int ROLE_MODERATOR = 3;
+ public static final int ROLE_NONE = 0;
+ public static final int ROLE_PARTICIPANT = 2;
+ public static final int ROLE_VISITOR = 1;
+ public static final int AFFILIATION_ADMIN = 4;
+ public static final int AFFILIATION_OWNER = 3;
+ public static final int AFFILIATION_MEMBER = 2;
+ public static final int AFFILIATION_OUTCAST = 1;
+ public static final int AFFILIATION_NONE = 0;
+
+ private int role;
+ private int affiliation;
+ public int getRole() {
+ return this.role;
+ }
+ public void setRole(String role) {
+ role = role.toLowerCase();
+ if (role.equals("moderator")) {
+ this.role = ROLE_MODERATOR;
+ } else if (role.equals("participant")) {
+ this.role = ROLE_PARTICIPANT;
+ } else if (role.equals("visitor")) {
+ this.role = ROLE_VISITOR;
+ } else {
+ this.role = ROLE_NONE;
+ }
+ }
+ public int getAffiliation() {
+ return this.affiliation;
+ }
+ public void setAffiliation() {
+
+ }
+ }
}