
7 changed files with 118 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||||
|
package org.pEp.jniadapter; |
||||
|
|
||||
|
public class _Blob { |
||||
|
public byte[] data; |
||||
|
public byte[] mime_type; |
||||
|
public byte[] filename; |
||||
|
|
||||
|
_Blob() { } |
||||
|
|
||||
|
_Blob(Blob b) { |
||||
|
data = b.data; |
||||
|
mime_type = AbstractEngine.toUTF8(b.mime_type); |
||||
|
filename = AbstractEngine.toUTF8(b.filename); |
||||
|
} |
||||
|
} |
||||
|
|
@ -0,0 +1,30 @@ |
|||||
|
package org.pEp.jniadapter; |
||||
|
|
||||
|
public class _Identity { |
||||
|
public byte[] address; |
||||
|
public byte[] fpr; |
||||
|
public byte[] user_id; |
||||
|
public byte[] username; |
||||
|
CommType comm_type; |
||||
|
public byte[] lang; |
||||
|
public boolean me; |
||||
|
|
||||
|
public _Identity() { |
||||
|
this.me = false; |
||||
|
} |
||||
|
|
||||
|
public _Identity(boolean me) { |
||||
|
this.me = me; |
||||
|
} |
||||
|
|
||||
|
public _Identity(Identity i) { |
||||
|
address = AbstractEngine.toUTF8(i.address); |
||||
|
fpr = AbstractEngine.toUTF8(i.address); |
||||
|
user_id = AbstractEngine.toUTF8(i.address); |
||||
|
username = AbstractEngine.toUTF8(i.address); |
||||
|
comm_type = i.comm_type; |
||||
|
lang = AbstractEngine.toUTF8(i.address); |
||||
|
me = i.me; |
||||
|
} |
||||
|
} |
||||
|
|
Loading…
Reference in new issue