MsrpMessage.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 MsrpMessage : IDisposable {
  12. private HandleRef swigCPtr;
  13. protected bool swigCMemOwn;
  14. internal MsrpMessage(IntPtr cPtr, bool cMemoryOwn) {
  15. swigCMemOwn = cMemoryOwn;
  16. swigCPtr = new HandleRef(this, cPtr);
  17. }
  18. internal static HandleRef getCPtr(MsrpMessage obj) {
  19. return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  20. }
  21. ~MsrpMessage() {
  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_MsrpMessage(swigCPtr);
  30. }
  31. swigCPtr = new HandleRef(null, IntPtr.Zero);
  32. }
  33. GC.SuppressFinalize(this);
  34. }
  35. }
  36. public MsrpMessage() : this(tinyWRAPPINVOKE.new_MsrpMessage(), true) {
  37. }
  38. public bool isRequest() {
  39. bool ret = tinyWRAPPINVOKE.MsrpMessage_isRequest(swigCPtr);
  40. return ret;
  41. }
  42. public short getCode() {
  43. short ret = tinyWRAPPINVOKE.MsrpMessage_getCode(swigCPtr);
  44. return ret;
  45. }
  46. public string getPhrase() {
  47. string ret = tinyWRAPPINVOKE.MsrpMessage_getPhrase(swigCPtr);
  48. return ret;
  49. }
  50. public tmsrp_request_type_t getRequestType() {
  51. tmsrp_request_type_t ret = (tmsrp_request_type_t)tinyWRAPPINVOKE.MsrpMessage_getRequestType(swigCPtr);
  52. return ret;
  53. }
  54. public void getByteRange(out long arg0, out long arg1, out long arg2) {
  55. tinyWRAPPINVOKE.MsrpMessage_getByteRange(swigCPtr, out arg0, out arg1, out arg2);
  56. }
  57. public bool isLastChunck() {
  58. bool ret = tinyWRAPPINVOKE.MsrpMessage_isLastChunck(swigCPtr);
  59. return ret;
  60. }
  61. public bool isFirstChunck() {
  62. bool ret = tinyWRAPPINVOKE.MsrpMessage_isFirstChunck(swigCPtr);
  63. return ret;
  64. }
  65. public bool isSuccessReport() {
  66. bool ret = tinyWRAPPINVOKE.MsrpMessage_isSuccessReport(swigCPtr);
  67. return ret;
  68. }
  69. public string getMsrpHeaderValue(string name) {
  70. string ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpHeaderValue(swigCPtr, name);
  71. return ret;
  72. }
  73. public string getMsrpHeaderParamValue(string name, string param) {
  74. string ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpHeaderParamValue(swigCPtr, name, param);
  75. return ret;
  76. }
  77. public uint getMsrpContentLength() {
  78. uint ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpContentLength(swigCPtr);
  79. return ret;
  80. }
  81. public uint getMsrpContent(IntPtr output, uint maxsize) {
  82. uint ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpContent(swigCPtr, output, maxsize);
  83. return ret;
  84. }
  85. }
  86. }