diff options
Diffstat (limited to 'OpenSim/Framework/Data.DB4o/DB4oUserData.cs')
-rw-r--r-- | OpenSim/Framework/Data.DB4o/DB4oUserData.cs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs index 402cf24..2ab1488 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs | |||
@@ -55,7 +55,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
55 | /// </summary> | 55 | /// </summary> |
56 | /// <param name="uuid">The users UUID</param> | 56 | /// <param name="uuid">The users UUID</param> |
57 | /// <returns>A user profile</returns> | 57 | /// <returns>A user profile</returns> |
58 | public UserProfileData getUserByUUID(LLUUID uuid) | 58 | public UserProfileData GetUserByUUID(LLUUID uuid) |
59 | { | 59 | { |
60 | if(manager.userProfiles.ContainsKey(uuid)) | 60 | if(manager.userProfiles.ContainsKey(uuid)) |
61 | return manager.userProfiles[uuid]; | 61 | return manager.userProfiles[uuid]; |
@@ -67,9 +67,9 @@ namespace OpenSim.Framework.Data.DB4o | |||
67 | /// </summary> | 67 | /// </summary> |
68 | /// <param name="name">The users account name</param> | 68 | /// <param name="name">The users account name</param> |
69 | /// <returns>A matching users profile</returns> | 69 | /// <returns>A matching users profile</returns> |
70 | public UserProfileData getUserByName(string name) | 70 | public UserProfileData GetUserByName(string name) |
71 | { | 71 | { |
72 | return getUserByName(name.Split(' ')[0], name.Split(' ')[1]); | 72 | return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]); |
73 | } | 73 | } |
74 | 74 | ||
75 | /// <summary> | 75 | /// <summary> |
@@ -78,7 +78,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
78 | /// <param name="fname">The first part of the users account name</param> | 78 | /// <param name="fname">The first part of the users account name</param> |
79 | /// <param name="lname">The second part of the users account name</param> | 79 | /// <param name="lname">The second part of the users account name</param> |
80 | /// <returns>A matching users profile</returns> | 80 | /// <returns>A matching users profile</returns> |
81 | public UserProfileData getUserByName(string fname, string lname) | 81 | public UserProfileData GetUserByName(string fname, string lname) |
82 | { | 82 | { |
83 | foreach (UserProfileData profile in manager.userProfiles.Values) | 83 | foreach (UserProfileData profile in manager.userProfiles.Values) |
84 | { | 84 | { |
@@ -93,11 +93,11 @@ namespace OpenSim.Framework.Data.DB4o | |||
93 | /// </summary> | 93 | /// </summary> |
94 | /// <param name="uuid">The users account ID</param> | 94 | /// <param name="uuid">The users account ID</param> |
95 | /// <returns>A matching users profile</returns> | 95 | /// <returns>A matching users profile</returns> |
96 | public UserAgentData getAgentByUUID(LLUUID uuid) | 96 | public UserAgentData GetAgentByUUID(LLUUID uuid) |
97 | { | 97 | { |
98 | try | 98 | try |
99 | { | 99 | { |
100 | return getUserByUUID(uuid).currentAgent; | 100 | return GetUserByUUID(uuid).currentAgent; |
101 | } | 101 | } |
102 | catch (Exception) | 102 | catch (Exception) |
103 | { | 103 | { |
@@ -110,9 +110,9 @@ namespace OpenSim.Framework.Data.DB4o | |||
110 | /// </summary> | 110 | /// </summary> |
111 | /// <param name="name">The account name</param> | 111 | /// <param name="name">The account name</param> |
112 | /// <returns>The users session agent</returns> | 112 | /// <returns>The users session agent</returns> |
113 | public UserAgentData getAgentByName(string name) | 113 | public UserAgentData GetAgentByName(string name) |
114 | { | 114 | { |
115 | return getAgentByName(name.Split(' ')[0], name.Split(' ')[1]); | 115 | return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]); |
116 | } | 116 | } |
117 | 117 | ||
118 | /// <summary> | 118 | /// <summary> |
@@ -121,11 +121,11 @@ namespace OpenSim.Framework.Data.DB4o | |||
121 | /// <param name="fname">The first part of the users account name</param> | 121 | /// <param name="fname">The first part of the users account name</param> |
122 | /// <param name="lname">The second part of the users account name</param> | 122 | /// <param name="lname">The second part of the users account name</param> |
123 | /// <returns>A user agent</returns> | 123 | /// <returns>A user agent</returns> |
124 | public UserAgentData getAgentByName(string fname, string lname) | 124 | public UserAgentData GetAgentByName(string fname, string lname) |
125 | { | 125 | { |
126 | try | 126 | try |
127 | { | 127 | { |
128 | return getUserByName(fname,lname).currentAgent; | 128 | return GetUserByName(fname,lname).currentAgent; |
129 | } | 129 | } |
130 | catch (Exception) | 130 | catch (Exception) |
131 | { | 131 | { |
@@ -137,7 +137,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
137 | /// Creates a new user profile | 137 | /// Creates a new user profile |
138 | /// </summary> | 138 | /// </summary> |
139 | /// <param name="user">The profile to add to the database</param> | 139 | /// <param name="user">The profile to add to the database</param> |
140 | public void addNewUserProfile(UserProfileData user) | 140 | public void AddNewUserProfile(UserProfileData user) |
141 | { | 141 | { |
142 | try | 142 | try |
143 | { | 143 | { |
@@ -154,7 +154,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
154 | /// </summary> | 154 | /// </summary> |
155 | /// <param name="user">The profile to add to the database</param> | 155 | /// <param name="user">The profile to add to the database</param> |
156 | /// <returns>True on success, false on error</returns> | 156 | /// <returns>True on success, false on error</returns> |
157 | public bool updateUserProfile(UserProfileData user) | 157 | public bool UpdateUserProfile(UserProfileData user) |
158 | { | 158 | { |
159 | try { | 159 | try { |
160 | return manager.UpdateRecord(user); | 160 | return manager.UpdateRecord(user); |
@@ -170,7 +170,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
170 | /// Creates a new user agent | 170 | /// Creates a new user agent |
171 | /// </summary> | 171 | /// </summary> |
172 | /// <param name="agent">The agent to add to the database</param> | 172 | /// <param name="agent">The agent to add to the database</param> |
173 | public void addNewUserAgent(UserAgentData agent) | 173 | public void AddNewUserAgent(UserAgentData agent) |
174 | { | 174 | { |
175 | // Do nothing. yet. | 175 | // Do nothing. yet. |
176 | } | 176 | } |
@@ -182,7 +182,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
182 | /// <param name="to">End account</param> | 182 | /// <param name="to">End account</param> |
183 | /// <param name="amount">The amount to move</param> | 183 | /// <param name="amount">The amount to move</param> |
184 | /// <returns>Success?</returns> | 184 | /// <returns>Success?</returns> |
185 | public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount) | 185 | public bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) |
186 | { | 186 | { |
187 | return true; | 187 | return true; |
188 | } | 188 | } |
@@ -195,7 +195,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
195 | /// <param name="to">Recievers account</param> | 195 | /// <param name="to">Recievers account</param> |
196 | /// <param name="item">Inventory item</param> | 196 | /// <param name="item">Inventory item</param> |
197 | /// <returns>Success?</returns> | 197 | /// <returns>Success?</returns> |
198 | public bool inventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item) | 198 | public bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item) |
199 | { | 199 | { |
200 | return true; | 200 | return true; |
201 | } | 201 | } |
@@ -213,7 +213,7 @@ namespace OpenSim.Framework.Data.DB4o | |||
213 | /// Returns the version of the storage provider | 213 | /// Returns the version of the storage provider |
214 | /// </summary> | 214 | /// </summary> |
215 | /// <returns>Storage provider version</returns> | 215 | /// <returns>Storage provider version</returns> |
216 | public string getVersion() | 216 | public string GetVersion() |
217 | { | 217 | { |
218 | return "0.1"; | 218 | return "0.1"; |
219 | } | 219 | } |