29 using System.Collections.Generic;
32 namespace OpenSim.Services.Interfaces
38 PrincipalID = principalID;
43 if (kvp.ContainsKey(
"PrincipalID"))
44 UUID.TryParse(kvp[
"PrincipalID"], out PrincipalID);
45 if (kvp.ContainsKey(
"AccessPrefs"))
46 AccessPrefs = kvp[
"AccessPrefs"];
47 if (kvp.ContainsKey(
"HoverHeight"))
48 HoverHeight =
double.Parse(kvp[
"HoverHeight"]);
49 if (kvp.ContainsKey(
"Language"))
50 Language = kvp[
"Language"];
51 if (kvp.ContainsKey(
"LanguageIsPublic"))
52 LanguageIsPublic =
bool.Parse(kvp[
"LanguageIsPublic"]);
53 if (kvp.ContainsKey(
"PermEveryone"))
54 PermEveryone =
int.Parse(kvp[
"PermEveryone"]);
55 if (kvp.ContainsKey(
"PermGroup"))
56 PermGroup =
int.Parse(kvp[
"PermGroup"]);
57 if (kvp.ContainsKey(
"PermNextOwner"))
58 PermNextOwner =
int.Parse(kvp[
"PermNextOwner"]);
63 if (kvp.ContainsKey(
"PrincipalID"))
64 UUID.TryParse(kvp[
"PrincipalID"].ToString(), out PrincipalID);
65 if (kvp.ContainsKey(
"AccessPrefs"))
66 AccessPrefs = kvp[
"AccessPrefs"].ToString();
67 if (kvp.ContainsKey(
"HoverHeight"))
68 HoverHeight =
double.Parse(kvp[
"HoverHeight"].ToString());
69 if (kvp.ContainsKey(
"Language"))
70 Language = kvp[
"Language"].ToString();
71 if (kvp.ContainsKey(
"LanguageIsPublic"))
72 LanguageIsPublic =
bool.Parse(kvp[
"LanguageIsPublic"].ToString());
73 if (kvp.ContainsKey(
"PermEveryone"))
74 PermEveryone =
int.Parse(kvp[
"PermEveryone"].ToString());
75 if (kvp.ContainsKey(
"PermGroup"))
76 PermGroup =
int.Parse(kvp[
"PermGroup"].ToString());
77 if (kvp.ContainsKey(
"PermNextOwner"))
78 PermNextOwner =
int.Parse(kvp[
"PermNextOwner"].ToString());
83 Dictionary<string, object> result =
new Dictionary<string, object>();
84 result[
"PrincipalID"] = PrincipalID.ToString();
85 result[
"AccessPrefs"] = AccessPrefs.ToString();
86 result[
"HoverHeight"] = HoverHeight.ToString();
87 result[
"Language"] = Language.ToString();
88 result[
"LanguageIsPublic"] = LanguageIsPublic.ToString();
89 result[
"PermEveryone"] = PermEveryone.ToString();
90 result[
"PermGroup"] = PermGroup.ToString();
91 result[
"PermNextOwner"] = PermNextOwner.ToString();
95 public UUID PrincipalID = UUID.Zero;
96 public string AccessPrefs =
"M";
98 public double HoverHeight = 0.0;
99 public string Language =
"en-us";
100 public bool LanguageIsPublic =
true;
102 public int PermEveryone = 0;
103 public int PermGroup = 0;
104 public int PermNextOwner = 532480;
109 AgentPrefs GetAgentPreferences(UUID principalID);
112 string GetLang(UUID principalID);
AgentPrefs(UUID principalID)
AgentPrefs(Dictionary< string, object > kvp)
AgentPrefs(Dictionary< string, string > kvp)
Dictionary< string, object > ToKeyValuePairs()