说明
此类的对象供PresenceModel使用
UML类图
PresenceActivityImpl.java
package org.linphone.core;
public class PresenceActivityImpl implements PresenceActivity {
private long mNativePtr;
protected PresenceActivityImpl(long nativePtr) {
mNativePtr = nativePtr;
}
private native long newPresenceActivityImpl(int type, String description);
protected PresenceActivityImpl(PresenceActivityType type, String description) {
mNativePtr = newPresenceActivityImpl(type.toInt(), description);
}
private native void unref(long nativePtr);
protected void finalize() {
unref(mNativePtr);
}
private native String toString(long nativePtr);
@Override
public String toString() {
return toString(mNativePtr);
}
private native int getType(long nativePtr);
@Override
public PresenceActivityType getType() {
return PresenceActivityType.fromInt(getType(mNativePtr));
}
private native int setType(long nativePtr, int type);
@Override
public int setType(PresenceActivityType type) {
return setType(mNativePtr, type.toInt());
}
private native String getDescription(long nativePtr);
@Override
public String getDescription() {
return getDescription(mNativePtr);
}
private native int setDescription(long nativePtr, String description);
@Override
public int setDescription(String description) {
return setDescription(mNativePtr, description);
}
public long getNativePtr() {
return mNativePtr;
}
}