LockProperty.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace WebDAVSharp.Server
  2. {
  3. /// <summary>
  4. /// The property with all the information of a lock
  5. /// </summary>
  6. internal class LockProperty
  7. {
  8. /// <summary>
  9. /// The standard constructor
  10. /// </summary>
  11. public LockProperty()
  12. {
  13. Locktype = string.Empty;
  14. Lockscope = string.Empty;
  15. Depth = string.Empty;
  16. Owner = string.Empty;
  17. Timeout = string.Empty;
  18. Locktoken = string.Empty;
  19. }
  20. /// <summary>
  21. /// The constructor with all the specific values
  22. /// </summary>
  23. /// <param name="locktype">The locktype of the lock</param>
  24. /// <param name="lockscope">The lockscope of the lock</param>
  25. /// <param name="depth">The depth of the lock</param>
  26. /// <param name="owner">The owner of the lock</param>
  27. /// <param name="timeout">The timeout of the lock</param>
  28. /// <param name="locktoken">The locktoken.</param>
  29. public LockProperty(string locktype, string lockscope, string depth, string owner, string timeout, string locktoken)
  30. {
  31. Locktype = locktype;
  32. Lockscope = lockscope;
  33. Depth = depth;
  34. Owner = owner;
  35. Timeout = timeout;
  36. Locktoken = locktoken;
  37. }
  38. public string Locktype { get; set; }
  39. public string Lockscope { get; set; }
  40. public string Depth { get; set; }
  41. public string Owner { get; set; }
  42. public string Timeout { get; set; }
  43. public string Locktoken { get; set; }
  44. }
  45. }