Changeset 244 for binary-improvements/MapRendering/Web/API
- Timestamp:
- Jul 21, 2015, 9:51:32 PM (9 years ago)
- Location:
- binary-improvements/MapRendering/Web/API
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetLandClaims.cs
r238 r244 9 9 public class GetLandClaims : WebAPI 10 10 { 11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel) 12 12 { 13 13 string steamid = string.Empty; … … 17 17 steamid = req.QueryString ["steamid"]; 18 18 if (steamid.Length != 17 || !long.TryParse (steamid, out tempLong)) { 19 resp.StatusCode = (int)HttpStatusCode. InternalServerError;19 resp.StatusCode = (int)HttpStatusCode.BadRequest; 20 20 Web.SetResponseTextContent (resp, "Invalid SteamID given"); 21 21 return; -
binary-improvements/MapRendering/Web/API/GetPlayerInventory.cs
r233 r244 9 9 public class GetPlayerInventory : WebAPI 10 10 { 11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel) 12 12 { 13 13 if (req.QueryString ["steamid"] == null) { -
binary-improvements/MapRendering/Web/API/GetPlayersLocation.cs
r233 r244 9 9 public class GetPlayersLocation : WebAPI 10 10 { 11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel) 12 12 { 13 13 JSONArray playersJsResult = new JSONArray (); -
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r233 r244 9 9 public class GetPlayersOnline : WebAPI 10 10 { 11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel) 12 12 { 13 13 JSONArray players = new JSONArray(); -
binary-improvements/MapRendering/Web/API/WebAPI.cs
r230 r244 16 16 } 17 17 18 public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user);18 public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel); 19 19 } 20 20 }
Note:
See TracChangeset
for help on using the changeset viewer.