XcapMessage.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 XcapMessage : IDisposable {
  12. private HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal XcapMessage(IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new HandleRef(this, cPtr);
  17. }
  18. internal static HandleRef getCPtr(XcapMessage obj) {
  19. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. ~XcapMessage() {
  22. Dispose();
  23. }
  24. public virtual void Dispose() {
  25. lock(this) {
  26. if (swigCPtr.Handle != IntPtr.Zero) {
  27. if (swigCMemOwn) {
  28. swigCMemOwn = false;
  29. tinyWRAPPINVOKE.delete_XcapMessage(swigCPtr);
  30. }
  31. swigCPtr = new HandleRef(null, IntPtr.Zero);
  32. }
  33. GC.SuppressFinalize(this);
  34. }
  35. }
  36. public XcapMessage() : this(tinyWRAPPINVOKE.new_XcapMessage(), true) {
  37. }
  38. public short getCode() {
  39. short ret = tinyWRAPPINVOKE.XcapMessage_getCode(swigCPtr);
  40. return ret;
  41. }
  42. public string getPhrase() {
  43. string ret = tinyWRAPPINVOKE.XcapMessage_getPhrase(swigCPtr);
  44. return ret;
  45. }
  46. public string getXcapHeaderValue(string name, uint index) {
  47. string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderValue__SWIG_0(swigCPtr, name, index);
  48. return ret;
  49. }
  50. public string getXcapHeaderValue(string name) {
  51. string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderValue__SWIG_1(swigCPtr, name);
  52. return ret;
  53. }
  54. public string getXcapHeaderParamValue(string name, string param, uint index) {
  55. string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderParamValue__SWIG_0(swigCPtr, name, param, index);
  56. return ret;
  57. }
  58. public string getXcapHeaderParamValue(string name, string param) {
  59. string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderParamValue__SWIG_1(swigCPtr, name, param);
  60. return ret;
  61. }
  62. public uint getXcapContentLength() {
  63. uint ret = tinyWRAPPINVOKE.XcapMessage_getXcapContentLength(swigCPtr);
  64. return ret;
  65. }
  66. public uint getXcapContent(IntPtr output, uint maxsize) {
  67. uint ret = tinyWRAPPINVOKE.XcapMessage_getXcapContent(swigCPtr, output, maxsize);
  68. return ret;
  69. }
  70. }
  71. }