You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1011 B
40 lines
1011 B
package org.pEp.jniadapter;
|
|
|
|
public class Identity {
|
|
public String address;
|
|
public String fpr;
|
|
public String user_id;
|
|
public String username;
|
|
public CommType comm_type;
|
|
public String lang;
|
|
public boolean me;
|
|
public int flags;
|
|
|
|
public Identity() {
|
|
this.me = false;
|
|
comm_type = CommType.PEP_ct_unknown;
|
|
}
|
|
|
|
public Identity(boolean me) {
|
|
this.me = me;
|
|
comm_type = CommType.PEP_ct_unknown;
|
|
}
|
|
|
|
public Identity(_Identity i) {
|
|
address = AbstractEngine.toUTF16(i.address);
|
|
fpr = AbstractEngine.toUTF16(i.fpr);
|
|
user_id = AbstractEngine.toUTF16(i.user_id);
|
|
username = AbstractEngine.toUTF16(i.username);
|
|
comm_type = CommType.Management.tag.get(i.comm_type);
|
|
lang = AbstractEngine.toUTF16(i.lang);
|
|
me = i.me;
|
|
flags = i.flags;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return address + "::" + username + "\n" +
|
|
user_id + "::" + fpr;
|
|
}
|
|
}
|
|
|
|
|