diff options
Diffstat (limited to 'OpenSim/Services/Interfaces/IUserAccountService.cs')
-rw-r--r-- | OpenSim/Services/Interfaces/IUserAccountService.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index 20414f6..d132a4d 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs | |||
@@ -44,6 +44,17 @@ namespace OpenSim.Services.Interfaces | |||
44 | PrincipalID = principalID; | 44 | PrincipalID = principalID; |
45 | } | 45 | } |
46 | 46 | ||
47 | public UserAccount(UUID scopeID, string firstName, string lastName, string email) | ||
48 | { | ||
49 | PrincipalID = UUID.Random(); | ||
50 | ScopeID = scopeID; | ||
51 | FirstName = firstName; | ||
52 | LastName = lastName; | ||
53 | Email = email; | ||
54 | ServiceURLs = new Dictionary<string, object>(); | ||
55 | Created = Util.UnixTimeSinceEpoch(); | ||
56 | } | ||
57 | |||
47 | public UserAccount(UUID scopeID, UUID principalID, string firstName, string lastName, string email) | 58 | public UserAccount(UUID scopeID, UUID principalID, string firstName, string lastName, string email) |
48 | { | 59 | { |
49 | PrincipalID = principalID; | 60 | PrincipalID = principalID; |
@@ -63,6 +74,7 @@ namespace OpenSim.Services.Interfaces | |||
63 | public int UserLevel; | 74 | public int UserLevel; |
64 | public int UserFlags; | 75 | public int UserFlags; |
65 | public string UserTitle; | 76 | public string UserTitle; |
77 | public string UserCountry; | ||
66 | 78 | ||
67 | public Dictionary<string, object> ServiceURLs; | 79 | public Dictionary<string, object> ServiceURLs; |
68 | 80 | ||
@@ -91,6 +103,8 @@ namespace OpenSim.Services.Interfaces | |||
91 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); | 103 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); |
92 | if (kvp.ContainsKey("UserTitle")) | 104 | if (kvp.ContainsKey("UserTitle")) |
93 | UserTitle = kvp["UserTitle"].ToString(); | 105 | UserTitle = kvp["UserTitle"].ToString(); |
106 | if (kvp.ContainsKey("UserCountry")) | ||
107 | UserCountry = kvp["UserCountry"].ToString(); | ||
94 | 108 | ||
95 | if (kvp.ContainsKey("Created")) | 109 | if (kvp.ContainsKey("Created")) |
96 | Created = Convert.ToInt32(kvp["Created"].ToString()); | 110 | Created = Convert.ToInt32(kvp["Created"].ToString()); |
@@ -124,6 +138,7 @@ namespace OpenSim.Services.Interfaces | |||
124 | result["UserLevel"] = UserLevel.ToString(); | 138 | result["UserLevel"] = UserLevel.ToString(); |
125 | result["UserFlags"] = UserFlags.ToString(); | 139 | result["UserFlags"] = UserFlags.ToString(); |
126 | result["UserTitle"] = UserTitle; | 140 | result["UserTitle"] = UserTitle; |
141 | result["UserCountry"] = UserCountry; | ||
127 | 142 | ||
128 | string str = string.Empty; | 143 | string str = string.Empty; |
129 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) | 144 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) |
@@ -150,6 +165,7 @@ namespace OpenSim.Services.Interfaces | |||
150 | /// <param name="query"></param> | 165 | /// <param name="query"></param> |
151 | /// <returns></returns> | 166 | /// <returns></returns> |
152 | List<UserAccount> GetUserAccounts(UUID scopeID, string query); | 167 | List<UserAccount> GetUserAccounts(UUID scopeID, string query); |
168 | List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where); | ||
153 | 169 | ||
154 | /// <summary> | 170 | /// <summary> |
155 | /// Store the data given, wich replaces the stored data, therefore must be complete. | 171 | /// Store the data given, wich replaces the stored data, therefore must be complete. |