InviteSession.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. namespace org.doubango.tinyWRAP {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. public class InviteSession : SipSession {
  12. private HandleRef swigCPtr;
  13. internal InviteSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.InviteSession_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(InviteSession obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~InviteSession() {
  20. Dispose();
  21. }
  22. public override void Dispose() {
  23. lock(this) {
  24. if (swigCPtr.Handle != IntPtr.Zero) {
  25. if (swigCMemOwn) {
  26. swigCMemOwn = false;
  27. tinyWRAPPINVOKE.delete_InviteSession(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public InviteSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_InviteSession(SipStack.getCPtr(Stack)), true) {
  36. }
  37. public bool accept(ActionConfig config) {
  38. bool ret = tinyWRAPPINVOKE.InviteSession_accept__SWIG_0(swigCPtr, ActionConfig.getCPtr(config));
  39. return ret;
  40. }
  41. public bool accept() {
  42. bool ret = tinyWRAPPINVOKE.InviteSession_accept__SWIG_1(swigCPtr);
  43. return ret;
  44. }
  45. public bool hangup(ActionConfig config) {
  46. bool ret = tinyWRAPPINVOKE.InviteSession_hangup__SWIG_0(swigCPtr, ActionConfig.getCPtr(config));
  47. return ret;
  48. }
  49. public bool hangup() {
  50. bool ret = tinyWRAPPINVOKE.InviteSession_hangup__SWIG_1(swigCPtr);
  51. return ret;
  52. }
  53. public bool reject(ActionConfig config) {
  54. bool ret = tinyWRAPPINVOKE.InviteSession_reject__SWIG_0(swigCPtr, ActionConfig.getCPtr(config));
  55. return ret;
  56. }
  57. public bool reject() {
  58. bool ret = tinyWRAPPINVOKE.InviteSession_reject__SWIG_1(swigCPtr);
  59. return ret;
  60. }
  61. public bool sendInfo(IntPtr payload, uint len, ActionConfig config) {
  62. bool ret = tinyWRAPPINVOKE.InviteSession_sendInfo__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
  63. return ret;
  64. }
  65. public bool sendInfo(IntPtr payload, uint len) {
  66. bool ret = tinyWRAPPINVOKE.InviteSession_sendInfo__SWIG_1(swigCPtr, payload, len);
  67. return ret;
  68. }
  69. public MediaSessionMgr getMediaMgr() {
  70. IntPtr cPtr = tinyWRAPPINVOKE.InviteSession_getMediaMgr(swigCPtr);
  71. MediaSessionMgr ret = (cPtr == IntPtr.Zero) ? null : new MediaSessionMgr(cPtr, false);
  72. return ret;
  73. }
  74. }
  75. }