MsrpSession.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 MsrpSession : InviteSession {
  12. private HandleRef swigCPtr;
  13. internal MsrpSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(MsrpSession obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~MsrpSession() {
  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_MsrpSession(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public MsrpSession(SipStack pStack, MsrpCallback pCallback) : this(tinyWRAPPINVOKE.new_MsrpSession(SipStack.getCPtr(pStack), MsrpCallback.getCPtr(pCallback)), true) {
  36. }
  37. public bool setCallback(MsrpCallback pCallback) {
  38. bool ret = tinyWRAPPINVOKE.MsrpSession_setCallback(swigCPtr, MsrpCallback.getCPtr(pCallback));
  39. return ret;
  40. }
  41. public bool callMsrp(string remoteUriString, ActionConfig config) {
  42. bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_0(swigCPtr, remoteUriString, ActionConfig.getCPtr(config));
  43. return ret;
  44. }
  45. public bool callMsrp(string remoteUriString) {
  46. bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_1(swigCPtr, remoteUriString);
  47. return ret;
  48. }
  49. public bool callMsrp(SipUri remoteUri, ActionConfig config) {
  50. bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_2(swigCPtr, SipUri.getCPtr(remoteUri), ActionConfig.getCPtr(config));
  51. return ret;
  52. }
  53. public bool callMsrp(SipUri remoteUri) {
  54. bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_3(swigCPtr, SipUri.getCPtr(remoteUri));
  55. return ret;
  56. }
  57. public bool sendMessage(IntPtr payload, uint len, ActionConfig config) {
  58. bool ret = tinyWRAPPINVOKE.MsrpSession_sendMessage__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
  59. return ret;
  60. }
  61. public bool sendMessage(IntPtr payload, uint len) {
  62. bool ret = tinyWRAPPINVOKE.MsrpSession_sendMessage__SWIG_1(swigCPtr, payload, len);
  63. return ret;
  64. }
  65. public bool sendFile(ActionConfig config) {
  66. bool ret = tinyWRAPPINVOKE.MsrpSession_sendFile__SWIG_0(swigCPtr, ActionConfig.getCPtr(config));
  67. return ret;
  68. }
  69. public bool sendFile() {
  70. bool ret = tinyWRAPPINVOKE.MsrpSession_sendFile__SWIG_1(swigCPtr);
  71. return ret;
  72. }
  73. }
  74. }