EstateBan.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.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 OpenSimulator 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. using OpenMetaverse;
  28. namespace OpenSim.Framework
  29. {
  30. public class EstateBan
  31. {
  32. private uint m_estateID = 1;
  33. /// <summary>
  34. /// ID of the estate this ban limits access to.
  35. /// </summary>
  36. public uint EstateID
  37. {
  38. get
  39. {
  40. return m_estateID;
  41. }
  42. set
  43. {
  44. m_estateID = value;
  45. }
  46. }
  47. private UUID m_bannedUserID = UUID.Zero;
  48. /// <summary>
  49. /// ID of the banned user.
  50. /// </summary>
  51. public UUID BannedUserID
  52. {
  53. get
  54. {
  55. return m_bannedUserID;
  56. }
  57. set
  58. {
  59. m_bannedUserID = value;
  60. }
  61. }
  62. private string m_bannedHostAddress = string.Empty;
  63. /// <summary>
  64. /// IP address or domain name of the banned client.
  65. /// </summary>
  66. public string BannedHostAddress
  67. {
  68. get
  69. {
  70. return m_bannedHostAddress;
  71. }
  72. set
  73. {
  74. m_bannedHostAddress = value;
  75. }
  76. }
  77. private string m_bannedHostIPMask = string.Empty;
  78. /// <summary>
  79. /// IP address mask for banning group of client hosts.
  80. /// </summary>
  81. public string BannedHostIPMask
  82. {
  83. get
  84. {
  85. return m_bannedHostIPMask;
  86. }
  87. set
  88. {
  89. m_bannedHostIPMask = value;
  90. }
  91. }
  92. private string m_bannedHostNameMask = string.Empty;
  93. /// <summary>
  94. /// Domain name mask for banning group of client hosts.
  95. /// </summary>
  96. public string BannedHostNameMask
  97. {
  98. get
  99. {
  100. return m_bannedHostNameMask;
  101. }
  102. set
  103. {
  104. m_bannedHostNameMask = value;
  105. }
  106. }
  107. }
  108. }