LLSDInventoryItem.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 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. using System;
  28. using System.Collections.Generic;
  29. using System.Text;
  30. using libsecondlife;
  31. namespace OpenSim.Region.Capabilities
  32. {
  33. [LLSDMap]
  34. public class LLSDInventoryItem
  35. {
  36. public LLUUID parent_id;
  37. public LLUUID asset_id;
  38. public LLUUID item_id;
  39. public LLSDPermissions permissions;
  40. public string type;
  41. public string inv_type;
  42. public int flags;
  43. public LLSDSaleInfo sale_info;
  44. public string name;
  45. public string desc;
  46. public int created_at;
  47. }
  48. [LLSDMap]
  49. public class LLSDPermissions
  50. {
  51. public LLUUID creator_id;
  52. public LLUUID owner_id;
  53. public LLUUID group_id;
  54. public int base_mask;
  55. public int owner_mask;
  56. public int group_mask;
  57. public int everyone_mask;
  58. public int next_owner_mask;
  59. public bool is_owner_group;
  60. }
  61. [LLSDMap]
  62. public class LLSDSaleInfo
  63. {
  64. public int sale_price;
  65. public string sale_type;
  66. }
  67. /* [LLSDMap]
  68. public class LLSDFolderItem
  69. {
  70. public LLUUID folder_id;
  71. public LLUUID parent_id;
  72. public int type;
  73. public string name;
  74. }*/
  75. [LLSDMap]
  76. public class LLSDInventoryDescendents
  77. {
  78. public LLSDArray folders = new LLSDArray();
  79. }
  80. [LLSDMap]
  81. public class LLSDFetchInventoryDescendents
  82. {
  83. public LLUUID folder_id;
  84. public LLUUID owner_id;
  85. public int sort_order;
  86. public bool fetch_folders;
  87. public bool fetch_items;
  88. }
  89. [LLSDMap]
  90. public class LLSDInventoryFolderContents
  91. {
  92. public LLUUID agent___id; // the (three "_") "___" so the serialising knows to change this to a "-"
  93. public int descendents;
  94. public LLUUID folder___id; //as LL can't decide if they are going to use "_" or "-" to separate words in the field names
  95. public LLSDArray items = new LLSDArray();
  96. public LLUUID owner___id; // and of course we can't have field names with "-" in
  97. public int version;
  98. }
  99. }