aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService/LLLoginResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginResponse.cs44
1 files changed, 43 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
index e2f947c..f641955 100644
--- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
@@ -196,6 +196,7 @@ namespace OpenSim.Services.LLLoginService
196 private BuddyList m_buddyList = null; 196 private BuddyList m_buddyList = null;
197 197
198 private string currency; 198 private string currency;
199 private string classifiedFee;
199 200
200 static LLLoginResponse() 201 static LLLoginResponse()
201 { 202 {
@@ -233,7 +234,7 @@ namespace OpenSim.Services.LLLoginService
233 GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, 234 GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService,
234 string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, 235 string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message,
235 GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, 236 GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency,
236 string DSTZone, UUID realID) 237 string DSTZone, string destinationsURL, string avatarsURL, UUID realID, string classifiedFee)
237 : this() 238 : this()
238 { 239 {
239 FillOutInventoryData(invSkel, libService); 240 FillOutInventoryData(invSkel, libService);
@@ -253,14 +254,18 @@ namespace OpenSim.Services.LLLoginService
253 MapTileURL = mapTileURL; 254 MapTileURL = mapTileURL;
254 ProfileURL = profileURL; 255 ProfileURL = profileURL;
255 OpenIDURL = openIDURL; 256 OpenIDURL = openIDURL;
257 DestinationsURL = destinationsURL;
258 AvatarsURL = avatarsURL;
256 259
257 SearchURL = searchURL; 260 SearchURL = searchURL;
258 Currency = currency; 261 Currency = currency;
262 ClassifiedFee = classifiedFee;
259 263
260 FillOutHomeData(pinfo, home); 264 FillOutHomeData(pinfo, home);
261 LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); 265 LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z);
262 266
263 FillOutRegionData(destination); 267 FillOutRegionData(destination);
268 // m_log.DebugFormat("[LOGIN RESPONSE] LLLoginResponse create. sizeX=<{0},{1}>", RegionSizeX, RegionSizeY);
264 269
265 FillOutSeedCap(aCircuit, destination, clientIP); 270 FillOutSeedCap(aCircuit, destination, clientIP);
266 271
@@ -387,6 +392,8 @@ namespace OpenSim.Services.LLLoginService
387 SimPort = (uint)endPoint.Port; 392 SimPort = (uint)endPoint.Port;
388 RegionX = (uint)destination.RegionLocX; 393 RegionX = (uint)destination.RegionLocX;
389 RegionY = (uint)destination.RegionLocY; 394 RegionY = (uint)destination.RegionLocY;
395 RegionSizeX = destination.RegionSizeX;
396 RegionSizeY = destination.RegionSizeY;
390 } 397 }
391 398
392 private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) 399 private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient)
@@ -470,6 +477,7 @@ namespace OpenSim.Services.LLLoginService
470 searchURL = String.Empty; 477 searchURL = String.Empty;
471 478
472 currency = String.Empty; 479 currency = String.Empty;
480 ClassifiedFee = "0";
473 } 481 }
474 482
475 483
@@ -533,6 +541,9 @@ namespace OpenSim.Services.LLLoginService
533 responseData["message"] = welcomeMessage; 541 responseData["message"] = welcomeMessage;
534 responseData["region_x"] = (Int32)(RegionX); 542 responseData["region_x"] = (Int32)(RegionX);
535 responseData["region_y"] = (Int32)(RegionY); 543 responseData["region_y"] = (Int32)(RegionY);
544 responseData["region_size_x"] = (Int32)RegionSizeX;
545 responseData["region_size_y"] = (Int32)RegionSizeY;
546 // m_log.DebugFormat("[LOGIN RESPONSE] returning sizeX=<{0},{1}>", RegionSizeX, RegionSizeY);
536 547
537 if (searchURL != String.Empty) 548 if (searchURL != String.Empty)
538 responseData["search"] = searchURL; 549 responseData["search"] = searchURL;
@@ -543,6 +554,12 @@ namespace OpenSim.Services.LLLoginService
543 if (profileURL != String.Empty) 554 if (profileURL != String.Empty)
544 responseData["profile-server-url"] = profileURL; 555 responseData["profile-server-url"] = profileURL;
545 556
557 if (DestinationsURL != String.Empty)
558 responseData["destination_guide_url"] = DestinationsURL;
559
560 if (AvatarsURL != String.Empty)
561 responseData["avatar_picker_url"] = AvatarsURL;
562
546 // We need to send an openid_token back in the response too 563 // We need to send an openid_token back in the response too
547 if (openIDURL != String.Empty) 564 if (openIDURL != String.Empty)
548 responseData["openid_url"] = openIDURL; 565 responseData["openid_url"] = openIDURL;
@@ -557,6 +574,9 @@ namespace OpenSim.Services.LLLoginService
557 // responseData["real_currency"] = currency; 574 // responseData["real_currency"] = currency;
558 responseData["currency"] = currency; 575 responseData["currency"] = currency;
559 } 576 }
577
578 if (ClassifiedFee != String.Empty)
579 responseData["classified_fee"] = ClassifiedFee;
560 580
561 responseData["login"] = "true"; 581 responseData["login"] = "true";
562 582
@@ -662,6 +682,9 @@ namespace OpenSim.Services.LLLoginService
662 if (searchURL != String.Empty) 682 if (searchURL != String.Empty)
663 map["search"] = OSD.FromString(searchURL); 683 map["search"] = OSD.FromString(searchURL);
664 684
685 if (ClassifiedFee != String.Empty)
686 map["classified_fee"] = OSD.FromString(ClassifiedFee);
687
665 if (m_buddyList != null) 688 if (m_buddyList != null)
666 { 689 {
667 map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray()); 690 map["buddy-list"] = ArrayListToOSDArray(m_buddyList.ToArray());
@@ -917,6 +940,9 @@ namespace OpenSim.Services.LLLoginService
917 set { regionY = value; } 940 set { regionY = value; }
918 } 941 }
919 942
943 public int RegionSizeX { get; private set; }
944 public int RegionSizeY { get; private set; }
945
920 public string SunTexture 946 public string SunTexture
921 { 947 {
922 get { return sunTexture; } 948 get { return sunTexture; }
@@ -1073,6 +1099,22 @@ namespace OpenSim.Services.LLLoginService
1073 set { currency = value; } 1099 set { currency = value; }
1074 } 1100 }
1075 1101
1102 public string ClassifiedFee
1103 {
1104 get { return classifiedFee; }
1105 set { classifiedFee = value; }
1106 }
1107
1108 public string DestinationsURL
1109 {
1110 get; set;
1111 }
1112
1113 public string AvatarsURL
1114 {
1115 get; set;
1116 }
1117
1076 #endregion 1118 #endregion
1077 1119
1078 public class UserInfo 1120 public class UserInfo