PageRenderTime 48ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/sipsorcery-core/SIPSorcery.SIP.App/Entities/SIPEntitiesDomainService.metadata.cs

https://github.com/thecc4re/sipsorcery-mono
C# | 139 lines | 66 code | 37 blank | 36 comment | 0 complexity | 09d06bcd94e3b194900e34fb2032bbdb MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. namespace SIPSorcery.SIP.App.Entities
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.Linq;
  8. using System.ServiceModel.DomainServices.Hosting;
  9. using System.ServiceModel.DomainServices.Server;
  10. // The MetadataTypeAttribute identifies SIPDialplanOptionMetadata as the class
  11. // that carries additional metadata for the SIPDialplanOption class.
  12. [MetadataTypeAttribute(typeof(SIPDialplanOption.SIPDialplanOptionMetadata))]
  13. public partial class SIPDialplanOption
  14. {
  15. // This class allows you to attach custom attributes to properties
  16. // of the SIPDialplanOption class.
  17. //
  18. // For example, the following marks the Xyz property as a
  19. // required property and specifies the format for valid values:
  20. // [Required]
  21. // [RegularExpression("[A-Z][A-Za-z0-9]*")]
  22. // [StringLength(32)]
  23. // public string Xyz { get; set; }
  24. internal sealed class SIPDialplanOptionMetadata
  25. {
  26. // Metadata classes are not meant to be instantiated.
  27. private SIPDialplanOptionMetadata()
  28. {
  29. }
  30. public string allowedcountrycodes { get; set; }
  31. public Nullable<int> areacode { get; set; }
  32. public Nullable<int> countrycode { get; set; }
  33. public string dialplanname { get; set; }
  34. public bool enablesafeguards { get; set; }
  35. public string enumservers { get; set; }
  36. public string excludedprefixes { get; set; }
  37. public string id { get; set; }
  38. public string owner { get; set; }
  39. public string timezone { get; set; }
  40. public string whitepageskey { get; set; }
  41. }
  42. }
  43. // The MetadataTypeAttribute identifies SIPDialplanProviderMetadata as the class
  44. // that carries additional metadata for the SIPDialplanProvider class.
  45. [MetadataTypeAttribute(typeof(SIPDialplanProvider.SIPDialplanProviderMetadata))]
  46. public partial class SIPDialplanProvider
  47. {
  48. // This class allows you to attach custom attributes to properties
  49. // of the SIPDialplanProvider class.
  50. //
  51. // For example, the following marks the Xyz property as a
  52. // required property and specifies the format for valid values:
  53. // [Required]
  54. // [RegularExpression("[A-Z][A-Za-z0-9]*")]
  55. // [StringLength(32)]
  56. // public string Xyz { get; set; }
  57. internal sealed class SIPDialplanProviderMetadata
  58. {
  59. // Metadata classes are not meant to be instantiated.
  60. private SIPDialplanProviderMetadata()
  61. {
  62. }
  63. public string dialplanname { get; set; }
  64. public string id { get; set; }
  65. public string owner { get; set; }
  66. public string providerdescription { get; set; }
  67. public string providerdialstring { get; set; }
  68. public string providername { get; set; }
  69. public string providerprefix { get; set; }
  70. }
  71. }
  72. // The MetadataTypeAttribute identifies SIPDialplanRouteMetadata as the class
  73. // that carries additional metadata for the SIPDialplanRoute class.
  74. [MetadataTypeAttribute(typeof(SIPDialplanRoute.SIPDialplanRouteMetadata))]
  75. public partial class SIPDialplanRoute
  76. {
  77. // This class allows you to attach custom attributes to properties
  78. // of the SIPDialplanRoute class.
  79. //
  80. // For example, the following marks the Xyz property as a
  81. // required property and specifies the format for valid values:
  82. // [Required]
  83. // [RegularExpression("[A-Z][A-Za-z0-9]*")]
  84. // [StringLength(32)]
  85. // public string Xyz { get; set; }
  86. internal sealed class SIPDialplanRouteMetadata
  87. {
  88. // Metadata classes are not meant to be instantiated.
  89. private SIPDialplanRouteMetadata()
  90. {
  91. }
  92. public string dialplanname { get; set; }
  93. public string id { get; set; }
  94. public string owner { get; set; }
  95. public string routedescription { get; set; }
  96. public string routedestination { get; set; }
  97. public string routename { get; set; }
  98. public string routepattern { get; set; }
  99. public string routeprefix { get; set; }
  100. }
  101. }
  102. }