aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-05-16 21:10:45 +0000
committerAdam Frisby2007-05-16 21:10:45 +0000
commitdc2acaa8a887e986644480237910308701c84c1a (patch)
treed5f292670f2295877cbece26ca43444dba82f03b /OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
parent* sing loud, sing proud, sing from the heart (diff)
downloadopensim-SC_OLD-dc2acaa8a887e986644480237910308701c84c1a.zip
opensim-SC_OLD-dc2acaa8a887e986644480237910308701c84c1a.tar.gz
opensim-SC_OLD-dc2acaa8a887e986644480237910308701c84c1a.tar.bz2
opensim-SC_OLD-dc2acaa8a887e986644480237910308701c84c1a.tar.xz
Let stuff be broken!
Diffstat (limited to '')
-rw-r--r--OpenGrid.Framework.Data.MySQL/MySQLUserData.cs68
1 files changed, 68 insertions, 0 deletions
diff --git a/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs b/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
new file mode 100644
index 0000000..4f35a59
--- /dev/null
+++ b/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
@@ -0,0 +1,68 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenGrid.Framework.Data;
5using libsecondlife;
6
7namespace OpenGrid.Framework.Data.MySQL
8{
9 class MySQLUserData : IUserData
10 {
11 public MySQLManager manager;
12
13 public void Initialise()
14 {
15 manager = new MySQLManager("host", "database", "user", "password", "false");
16 }
17
18 public UserProfileData getUserByName(string name)
19 {
20 return getUserByName(name.Split(' ')[0], name.Split(' ')[1]);
21 }
22
23 public UserProfileData getUserByName(string user, string last)
24 {
25 return new UserProfileData();
26 }
27
28 public UserProfileData getUserByUUID(LLUUID uuid)
29 {
30 return new UserProfileData();
31 }
32
33 public UserAgentData getAgentByName(string name)
34 {
35 return getAgentByName(name.Split(' ')[0], name.Split(' ')[1]);
36 }
37
38 public UserAgentData getAgentByName(string user, string last)
39 {
40 return new UserAgentData();
41 }
42
43 public UserAgentData getAgentByUUID(LLUUID uuid)
44 {
45 return new UserAgentData();
46 }
47
48 public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount)
49 {
50 return false;
51 }
52
53 public bool inventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item)
54 {
55 return false;
56 }
57
58 public string getName()
59 {
60 return "MySQL Userdata Interface";
61 }
62
63 public string getVersion()
64 {
65 return "0.1";
66 }
67 }
68}