- Timestamp:
- Aug 6, 2022, 11:32:32 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/API/GetAnimalsLocation.cs
r383 r387 2 2 using AllocsFixes.JSON; 3 3 using AllocsFixes.LiveData; 4 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;5 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;6 4 7 5 namespace AllocsFixes.NetConnections.Servers.Web.API { 8 internal class GetAnimalsLocation : WebAPI {6 internal class GetAnimalsLocation : AbsWebAPI { 9 7 private readonly List<EntityAnimal> animals = new List<EntityAnimal> (); 10 8 11 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 12 int _permissionLevel) { 9 public override void HandleRequest (RequestContext _context) { 13 10 JSONArray animalsJsResult = new JSONArray (); 14 11 … … 37 34 } 38 35 39 W riteJSON (_resp, animalsJsResult);36 WebUtils.WriteJson (_context.Response, animalsJsResult); 40 37 } 41 38 }
Note:
See TracChangeset
for help on using the changeset viewer.