Station.cs 605 B

12345678910111213141516171819202122232425262728293031
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. namespace EVCB_OCPP.WEBAPI.Models.WebAPI
  7. {
  8. public class Station
  9. {
  10. public int Id { set; get; }
  11. public string Name { set; get; }
  12. [JsonIgnore]
  13. public decimal Latitude { set; get; }
  14. [JsonIgnore]
  15. public decimal Longitude { set; get; }
  16. public GetLocation Coordinates { set; get; }
  17. }
  18. public class GetLocation
  19. {
  20. public decimal Latitude { set; get; }
  21. public decimal Longitude { set; get; }
  22. }
  23. }