summaryrefslogtreecommitdiffstats
path: root/bindings/java/InviteSession.java
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/java/InviteSession.java')
-rw-r--r--bindings/java/InviteSession.java79
1 files changed, 79 insertions, 0 deletions
diff --git a/bindings/java/InviteSession.java b/bindings/java/InviteSession.java
new file mode 100644
index 0000000..bf85bdf
--- /dev/null
+++ b/bindings/java/InviteSession.java
@@ -0,0 +1,79 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 2.0.9
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package org.doubango.tinyWRAP;
+
+public class InviteSession extends SipSession {
+ private long swigCPtr;
+
+ protected InviteSession(long cPtr, boolean cMemoryOwn) {
+ super(tinyWRAPJNI.InviteSession_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(InviteSession obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ tinyWRAPJNI.delete_InviteSession(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public InviteSession(SipStack Stack) {
+ this(tinyWRAPJNI.new_InviteSession(SipStack.getCPtr(Stack), Stack), true);
+ }
+
+ public boolean accept(ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean accept() {
+ return tinyWRAPJNI.InviteSession_accept__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean hangup(ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_hangup__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean hangup() {
+ return tinyWRAPJNI.InviteSession_hangup__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean reject(ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean reject() {
+ return tinyWRAPJNI.InviteSession_reject__SWIG_1(swigCPtr, this);
+ }
+
+ public boolean sendInfo(java.nio.ByteBuffer payload, long len, ActionConfig config) {
+ return tinyWRAPJNI.InviteSession_sendInfo__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
+ }
+
+ public boolean sendInfo(java.nio.ByteBuffer payload, long len) {
+ return tinyWRAPJNI.InviteSession_sendInfo__SWIG_1(swigCPtr, this, payload, len);
+ }
+
+ public MediaSessionMgr getMediaMgr() {
+ long cPtr = tinyWRAPJNI.InviteSession_getMediaMgr(swigCPtr, this);
+ return (cPtr == 0) ? null : new MediaSessionMgr(cPtr, false);
+ }
+
+}
OpenPOWER on IntegriCloud