/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.10
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package nz.mega.sdk;
public class MegaUser {
private long swigCPtr;
protected boolean swigCMemOwn;
protected MegaUser(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(MegaUser obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
protected synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
megaJNI.delete_MegaUser(swigCPtr);
}
swigCPtr = 0;
}
}
MegaUser copy() {
long cPtr = megaJNI.MegaUser_copy(swigCPtr, this);
return (cPtr == 0) ? null : new MegaUser(cPtr, true);
}
public String getEmail() {
return megaJNI.MegaUser_getEmail(swigCPtr, this);
}
public int getVisibility() {
return megaJNI.MegaUser_getVisibility(swigCPtr, this);
}
public long getTimestamp() {
return megaJNI.MegaUser_getTimestamp(swigCPtr, this);
}
public final static int VISIBILITY_UNKNOWN = -1;
public final static int VISIBILITY_HIDDEN = 0;
public final static int VISIBILITY_VISIBLE = VISIBILITY_HIDDEN + 1;
public final static int VISIBILITY_ME = VISIBILITY_VISIBLE + 1;
}