12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /* ----------------------------------------------------------------------------
- * 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);
- }
- }
|