diff options
Diffstat (limited to '')
-rw-r--r-- | OpenGrid.Framework.Data.MySQL/MySQLUserData.cs | 68 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenGrid.Framework.Data; | ||
5 | using libsecondlife; | ||
6 | |||
7 | namespace 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 | } | ||