Ignore:
Timestamp:
Jan 19, 2019, 6:12:21 PM (6 years ago)
Author:
alloc
Message:

Fixed game version compatibility of GamePrefs
Code style cleanup (mostly argument names)

File:
1 edited

Legend:

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

    r332 r351  
    1717#endif
    1818
    19                 public static void WriteJSON (HttpListenerResponse resp, JSONNode root) {
     19                public static void WriteJSON (HttpListenerResponse _resp, JSONNode _root) {
    2020#if ENABLE_PROFILER
    2121                        jsonSerializeSampler.Begin ();
    2222#endif
    2323                        StringBuilder sb = new StringBuilder ();
    24                         root.ToString (sb);
     24                        _root.ToString (sb);
    2525#if ENABLE_PROFILER
    2626                        jsonSerializeSampler.End ();
     
    2828#endif
    2929                        byte[] buf = Encoding.UTF8.GetBytes (sb.ToString ());
    30                         resp.ContentLength64 = buf.Length;
    31                         resp.ContentType = "application/json";
    32                         resp.ContentEncoding = Encoding.UTF8;
    33                         resp.OutputStream.Write (buf, 0, buf.Length);
     30                        _resp.ContentLength64 = buf.Length;
     31                        _resp.ContentType = "application/json";
     32                        _resp.ContentEncoding = Encoding.UTF8;
     33                        _resp.OutputStream.Write (buf, 0, buf.Length);
    3434#if ENABLE_PROFILER
    3535                        netWriteSampler.End ();
     
    4545                }
    4646
    47                 public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user,
    48                         int permissionLevel);
     47                public abstract void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
     48                        int _permissionLevel);
    4949
    5050                public virtual int DefaultPermissionLevel () {
Note: See TracChangeset for help on using the changeset viewer.