XmlRpcXmlTokens.cs 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. namespace Nwc.XmlRpc
  2. {
  3. using System;
  4. /// <summary>Class collecting <c>String</c> tokens that are part of XML-RPC files.</summary>
  5. public class XmlRpcXmlTokens
  6. {
  7. /// <summary>C# formatting string to describe an ISO 8601 date.</summary>
  8. public const String ISO_DATETIME = "yyyyMMdd\\THH\\:mm\\:ss";
  9. /// <summary>Base64 field indicator.</summary>
  10. /// <remarks>Corresponds to the &lt;base64&gt; tag.</remarks>
  11. public const String BASE64 = "base64";
  12. /// <summary>String field indicator.</summary>
  13. /// <remarks>Corresponds to the &lt;string&gt; tag.</remarks>
  14. public const String STRING = "string";
  15. /// <summary>Integer field integer.</summary>
  16. /// <remarks>Corresponds to the &lt;i4&gt; tag.</remarks>
  17. public const String INT = "i4";
  18. /// <summary>Alternate integer field indicator.</summary>
  19. /// <remarks>Corresponds to the &lt;int&gt; tag.</remarks>
  20. public const String ALT_INT = "int";
  21. /// <summary>Date field indicator.</summary>
  22. /// <remarks>Corresponds to the &lt;dateTime.iso8601&gt; tag.</remarks>
  23. public const String DATETIME = "dateTime.iso8601";
  24. /// <summary>Boolean field indicator.</summary>
  25. /// <remarks>Corresponds to the &lt;boolean&gt; tag.</remarks>
  26. public const String BOOLEAN = "boolean";
  27. /// <summary>Value token.</summary>
  28. /// <remarks>Corresponds to the &lt;value&gt; tag.</remarks>
  29. public const String VALUE = "value";
  30. /// <summary>Name token.</summary>
  31. /// <remarks>Corresponds to the &lt;name&gt; tag.</remarks>
  32. public const String NAME = "name";
  33. /// <summary>Array field indicator..</summary>
  34. /// <remarks>Corresponds to the &lt;array&gt; tag.</remarks>
  35. public const String ARRAY = "array";
  36. /// <summary>Data token.</summary>
  37. /// <remarks>Corresponds to the &lt;data&gt; tag.</remarks>
  38. public const String DATA = "data";
  39. /// <summary>Member token.</summary>
  40. /// <remarks>Corresponds to the &lt;member&gt; tag.</remarks>
  41. public const String MEMBER = "member";
  42. /// <summary>Stuct field indicator.</summary>
  43. /// <remarks>Corresponds to the &lt;struct&gt; tag.</remarks>
  44. public const String STRUCT = "struct";
  45. /// <summary>Double field indicator.</summary>
  46. /// <remarks>Corresponds to the &lt;double&gt; tag.</remarks>
  47. public const String DOUBLE = "double";
  48. /// <summary>Param token.</summary>
  49. /// <remarks>Corresponds to the &lt;param&gt; tag.</remarks>
  50. public const String PARAM = "param";
  51. /// <summary>Params token.</summary>
  52. /// <remarks>Corresponds to the &lt;params&gt; tag.</remarks>
  53. public const String PARAMS = "params";
  54. /// <summary>MethodCall token.</summary>
  55. /// <remarks>Corresponds to the &lt;methodCall&gt; tag.</remarks>
  56. public const String METHOD_CALL = "methodCall";
  57. /// <summary>MethodName token.</summary>
  58. /// <remarks>Corresponds to the &lt;methodName&gt; tag.</remarks>
  59. public const String METHOD_NAME = "methodName";
  60. /// <summary>MethodResponse token</summary>
  61. /// <remarks>Corresponds to the &lt;methodResponse&gt; tag.</remarks>
  62. public const String METHOD_RESPONSE = "methodResponse";
  63. /// <summary>Fault response token.</summary>
  64. /// <remarks>Corresponds to the &lt;fault&gt; tag.</remarks>
  65. public const String FAULT = "fault";
  66. /// <summary>FaultCode token.</summary>
  67. /// <remarks>Corresponds to the &lt;faultCode&gt; tag.</remarks>
  68. public const String FAULT_CODE = "faultCode";
  69. /// <summary>FaultString token.</summary>
  70. /// <remarks>Corresponds to the &lt;faultString&gt; tag.</remarks>
  71. public const String FAULT_STRING = "faultString";
  72. }
  73. }