InviteEvent.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 InviteEvent : SipEvent {
  12. private HandleRef swigCPtr;
  13. internal InviteEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.InviteEvent_SWIGUpcast(cPtr), cMemoryOwn) {
  14. swigCPtr = new HandleRef(this, cPtr);
  15. }
  16. internal static HandleRef getCPtr(InviteEvent obj) {
  17. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  18. }
  19. ~InviteEvent() {
  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_InviteEvent(swigCPtr);
  28. }
  29. swigCPtr = new HandleRef(null, IntPtr.Zero);
  30. }
  31. GC.SuppressFinalize(this);
  32. base.Dispose();
  33. }
  34. }
  35. public tsip_invite_event_type_t getType() {
  36. tsip_invite_event_type_t ret = (tsip_invite_event_type_t)tinyWRAPPINVOKE.InviteEvent_getType(swigCPtr);
  37. return ret;
  38. }
  39. public twrap_media_type_t getMediaType() {
  40. twrap_media_type_t ret = (twrap_media_type_t)tinyWRAPPINVOKE.InviteEvent_getMediaType(swigCPtr);
  41. return ret;
  42. }
  43. public InviteSession getSession() {
  44. IntPtr cPtr = tinyWRAPPINVOKE.InviteEvent_getSession(swigCPtr);
  45. InviteSession ret = (cPtr == IntPtr.Zero) ? null : new InviteSession(cPtr, false);
  46. return ret;
  47. }
  48. public CallSession takeCallSessionOwnership() {
  49. IntPtr cPtr = tinyWRAPPINVOKE.InviteEvent_takeCallSessionOwnership(swigCPtr);
  50. CallSession ret = (cPtr == IntPtr.Zero) ? null : new CallSession(cPtr, true);
  51. return ret;
  52. }
  53. public MsrpSession takeMsrpSessionOwnership() {
  54. IntPtr cPtr = tinyWRAPPINVOKE.InviteEvent_takeMsrpSessionOwnership(swigCPtr);
  55. MsrpSession ret = (cPtr == IntPtr.Zero) ? null : new MsrpSession(cPtr, true);
  56. return ret;
  57. }
  58. }
  59. }