Changeset 387 for binary-improvements2/MapRendering/Web/API/GetStats.cs
- Timestamp:
- Aug 6, 2022, 11:32:32 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/API/GetStats.cs
r383 r387 1 1 using AllocsFixes.JSON; 2 2 using AllocsFixes.LiveData; 3 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;4 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;5 3 6 4 namespace AllocsFixes.NetConnections.Servers.Web.API { 7 public class GetStats : WebAPI { 8 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 9 int _permissionLevel) { 5 public class GetStats : AbsWebAPI { 6 public override void HandleRequest (RequestContext _context) { 10 7 JSONObject result = new JSONObject (); 11 8 … … 20 17 result.Add ("animals", new JSONNumber (Animals.Instance.GetCount ())); 21 18 22 W riteJSON (_resp, result);19 WebUtils.WriteJson (_context.Response, result); 23 20 } 24 21
Note:
See TracChangeset
for help on using the changeset viewer.