Ignore:
Timestamp:
Jul 21, 2015, 9:51:32 PM (9 years ago)
Author:
alloc
Message:

Fixes intermediate state

Location:
binary-improvements/MapRendering/Web/API
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/GetLandClaims.cs

    r238 r244  
    99        public class GetLandClaims : WebAPI
    1010        {
    11                 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)
     11                public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
    1212                {
    1313                        string steamid = string.Empty;
     
    1717                                steamid = req.QueryString ["steamid"];
    1818                                if (steamid.Length != 17 || !long.TryParse (steamid, out tempLong)) {
    19                                         resp.StatusCode = (int)HttpStatusCode.InternalServerError;
     19                                        resp.StatusCode = (int)HttpStatusCode.BadRequest;
    2020                                        Web.SetResponseTextContent (resp, "Invalid SteamID given");
    2121                                        return;
  • binary-improvements/MapRendering/Web/API/GetPlayerInventory.cs

    r233 r244  
    99        public class GetPlayerInventory : WebAPI
    1010        {
    11                 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)
     11                public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
    1212                {
    1313                        if (req.QueryString ["steamid"] == null) {
  • binary-improvements/MapRendering/Web/API/GetPlayersLocation.cs

    r233 r244  
    99        public class GetPlayersLocation : WebAPI
    1010        {
    11                 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)
     11                public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
    1212                {
    1313                        JSONArray playersJsResult = new JSONArray ();
  • binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs

    r233 r244  
    99        public class GetPlayersOnline : WebAPI
    1010        {
    11                 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user)
     11                public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
    1212                {
    1313                        JSONArray players = new JSONArray();
  • binary-improvements/MapRendering/Web/API/WebAPI.cs

    r230 r244  
    1616                }
    1717
    18                 public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, HttpListenerBasicIdentity user);
     18                public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel);
    1919        }
    2020}
Note: See TracChangeset for help on using the changeset viewer.