InviteSession.java 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class InviteSession extends SipSession {
  10. private long swigCPtr;
  11. protected InviteSession(long cPtr, boolean cMemoryOwn) {
  12. super(tinyWRAPJNI.InviteSession_SWIGUpcast(cPtr), cMemoryOwn);
  13. swigCPtr = cPtr;
  14. }
  15. protected static long getCPtr(InviteSession obj) {
  16. return (obj == null) ? 0 : obj.swigCPtr;
  17. }
  18. protected void finalize() {
  19. delete();
  20. }
  21. public synchronized void delete() {
  22. if (swigCPtr != 0) {
  23. if (swigCMemOwn) {
  24. swigCMemOwn = false;
  25. tinyWRAPJNI.delete_InviteSession(swigCPtr);
  26. }
  27. swigCPtr = 0;
  28. }
  29. super.delete();
  30. }
  31. public InviteSession(SipStack Stack) {
  32. this(tinyWRAPJNI.new_InviteSession(SipStack.getCPtr(Stack), Stack), true);
  33. }
  34. public boolean accept(ActionConfig config) {
  35. return tinyWRAPJNI.InviteSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  36. }
  37. public boolean accept() {
  38. return tinyWRAPJNI.InviteSession_accept__SWIG_1(swigCPtr, this);
  39. }
  40. public boolean hangup(ActionConfig config) {
  41. return tinyWRAPJNI.InviteSession_hangup__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  42. }
  43. public boolean hangup() {
  44. return tinyWRAPJNI.InviteSession_hangup__SWIG_1(swigCPtr, this);
  45. }
  46. public boolean reject(ActionConfig config) {
  47. return tinyWRAPJNI.InviteSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config);
  48. }
  49. public boolean reject() {
  50. return tinyWRAPJNI.InviteSession_reject__SWIG_1(swigCPtr, this);
  51. }
  52. public boolean sendInfo(java.nio.ByteBuffer payload, long len, ActionConfig config) {
  53. return tinyWRAPJNI.InviteSession_sendInfo__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config);
  54. }
  55. public boolean sendInfo(java.nio.ByteBuffer payload, long len) {
  56. return tinyWRAPJNI.InviteSession_sendInfo__SWIG_1(swigCPtr, this, payload, len);
  57. }
  58. public MediaSessionMgr getMediaMgr() {
  59. long cPtr = tinyWRAPJNI.InviteSession_getMediaMgr(swigCPtr, this);
  60. return (cPtr == 0) ? null : new MediaSessionMgr(cPtr, false);
  61. }
  62. }