mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Add a careminster API to scripting again
This commit is contained in:
@@ -63,6 +63,7 @@ namespace OpenSim.Services.Interfaces
|
||||
public int UserLevel;
|
||||
public int UserFlags;
|
||||
public string UserTitle;
|
||||
public string UserCountry;
|
||||
|
||||
public Dictionary<string, object> ServiceURLs;
|
||||
|
||||
@@ -91,6 +92,8 @@ namespace OpenSim.Services.Interfaces
|
||||
UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString());
|
||||
if (kvp.ContainsKey("UserTitle"))
|
||||
UserTitle = kvp["UserTitle"].ToString();
|
||||
if (kvp.ContainsKey("UserCountry"))
|
||||
UserCountry = kvp["UserCountry"].ToString();
|
||||
|
||||
if (kvp.ContainsKey("Created"))
|
||||
Created = Convert.ToInt32(kvp["Created"].ToString());
|
||||
@@ -124,6 +127,7 @@ namespace OpenSim.Services.Interfaces
|
||||
result["UserLevel"] = UserLevel.ToString();
|
||||
result["UserFlags"] = UserFlags.ToString();
|
||||
result["UserTitle"] = UserTitle;
|
||||
result["UserCountry"] = UserCountry;
|
||||
|
||||
string str = string.Empty;
|
||||
foreach (KeyValuePair<string, object> kvp in ServiceURLs)
|
||||
|
||||
@@ -148,6 +148,10 @@ namespace OpenSim.Services.UserAccountService
|
||||
Int32.TryParse(d.Data["UserLevel"], out u.UserLevel);
|
||||
if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null)
|
||||
Int32.TryParse(d.Data["UserFlags"], out u.UserFlags);
|
||||
if (d.Data.ContainsKey("UserCountry") && d.Data["UserCountry"] != null)
|
||||
u.UserCountry = d.Data["UserCountry"].ToString();
|
||||
else
|
||||
u.UserTitle = string.Empty;
|
||||
|
||||
if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user