- Timestamp:
- Jul 28, 2023, 8:42:10 PM (16 months ago)
- Location:
- binary-improvements/MapRendering/API
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/API/GetAnimalsLocation.cs
r453 r454 1 1 using System.Collections.Generic; 2 using System.Net;3 2 using AllocsFixes.JSON; 4 3 using AllocsFixes.LiveData; 4 using Webserver; 5 using Webserver.WebAPI; 5 6 6 namespace AllocsFixes. NetConnections.Servers.Web.API{7 internal class GetAnimalsLocation : WebAPI {7 namespace AllocsFixes.WebAPIs { 8 internal class GetAnimalsLocation : AbsWebAPI { 8 9 private readonly List<EntityAnimal> animals = new List<EntityAnimal> (); 9 10 10 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 11 int _permissionLevel) { 11 public override void HandleRequest (RequestContext _context) { 12 12 JSONArray animalsJsResult = new JSONArray (); 13 13 … … 36 36 } 37 37 38 WriteJSON (_resp, animalsJsResult);38 LegacyApiHelper.WriteJSON (_context.Response, animalsJsResult); 39 39 } 40 40 }
Note:
See TracChangeset
for help on using the changeset viewer.