XmlRpcXmlTokens.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * Copyright (c) Contributors, http://www.openmetaverse.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSim Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. *
  27. */
  28. namespace Nwc.XmlRpc
  29. {
  30. using System;
  31. /// <summary>Class collecting <c>String</c> tokens that are part of XML-RPC files.</summary>
  32. public class XmlRpcXmlTokens
  33. {
  34. /// <summary>C# formatting string to describe an ISO 8601 date.</summary>
  35. public const String ISO_DATETIME = "yyyyMMdd\\THH\\:mm\\:ss";
  36. /// <summary>Base64 field indicator.</summary>
  37. /// <remarks>Corresponds to the &lt;base64&gt; tag.</remarks>
  38. public const String BASE64 = "base64";
  39. /// <summary>String field indicator.</summary>
  40. /// <remarks>Corresponds to the &lt;string&gt; tag.</remarks>
  41. public const String STRING = "string";
  42. /// <summary>Integer field integer.</summary>
  43. /// <remarks>Corresponds to the &lt;i4&gt; tag.</remarks>
  44. public const String INT = "i4";
  45. /// <summary>Alternate integer field indicator.</summary>
  46. /// <remarks>Corresponds to the &lt;int&gt; tag.</remarks>
  47. public const String ALT_INT = "int";
  48. /// <summary>Date field indicator.</summary>
  49. /// <remarks>Corresponds to the &lt;dateTime.iso8601&gt; tag.</remarks>
  50. public const String DATETIME = "dateTime.iso8601";
  51. /// <summary>Boolean field indicator.</summary>
  52. /// <remarks>Corresponds to the &lt;boolean&gt; tag.</remarks>
  53. public const String BOOLEAN = "boolean";
  54. /// <summary>Value token.</summary>
  55. /// <remarks>Corresponds to the &lt;value&gt; tag.</remarks>
  56. public const String VALUE = "value";
  57. /// <summary>Name token.</summary>
  58. /// <remarks>Corresponds to the &lt;name&gt; tag.</remarks>
  59. public const String NAME = "name";
  60. /// <summary>Array field indicator..</summary>
  61. /// <remarks>Corresponds to the &lt;array&gt; tag.</remarks>
  62. public const String ARRAY = "array";
  63. /// <summary>Data token.</summary>
  64. /// <remarks>Corresponds to the &lt;data&gt; tag.</remarks>
  65. public const String DATA = "data";
  66. /// <summary>Member token.</summary>
  67. /// <remarks>Corresponds to the &lt;member&gt; tag.</remarks>
  68. public const String MEMBER = "member";
  69. /// <summary>Stuct field indicator.</summary>
  70. /// <remarks>Corresponds to the &lt;struct&gt; tag.</remarks>
  71. public const String STRUCT = "struct";
  72. /// <summary>Double field indicator.</summary>
  73. /// <remarks>Corresponds to the &lt;double&gt; tag.</remarks>
  74. public const String DOUBLE = "double";
  75. /// <summary>Param token.</summary>
  76. /// <remarks>Corresponds to the &lt;param&gt; tag.</remarks>
  77. public const String PARAM = "param";
  78. /// <summary>Params token.</summary>
  79. /// <remarks>Corresponds to the &lt;params&gt; tag.</remarks>
  80. public const String PARAMS = "params";
  81. /// <summary>MethodCall token.</summary>
  82. /// <remarks>Corresponds to the &lt;methodCall&gt; tag.</remarks>
  83. public const String METHOD_CALL = "methodCall";
  84. /// <summary>MethodName token.</summary>
  85. /// <remarks>Corresponds to the &lt;methodName&gt; tag.</remarks>
  86. public const String METHOD_NAME = "methodName";
  87. /// <summary>MethodResponse token</summary>
  88. /// <remarks>Corresponds to the &lt;methodResponse&gt; tag.</remarks>
  89. public const String METHOD_RESPONSE = "methodResponse";
  90. /// <summary>Fault response token.</summary>
  91. /// <remarks>Corresponds to the &lt;fault&gt; tag.</remarks>
  92. public const String FAULT = "fault";
  93. /// <summary>FaultCode token.</summary>
  94. /// <remarks>Corresponds to the &lt;faultCode&gt; tag.</remarks>
  95. public const String FAULT_CODE = "faultCode";
  96. /// <summary>FaultString token.</summary>
  97. /// <remarks>Corresponds to the &lt;faultString&gt; tag.</remarks>
  98. public const String FAULT_STRING = "faultString";
  99. }
  100. }