-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCircuits.cs
More file actions
37 lines (34 loc) · 1.13 KB
/
Circuits.cs
File metadata and controls
37 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace JSONAPI
{
/*
Filen inneholder bare klasser for informasjon som blir hentet
fra API og mapper ut strukturen til selve .json filen fra API.
Newtonsoft.json håndterer getting og setting av
disse automatisk når man deserializer.
*/
public class Circuits
{
string circuitId;
string url;
string circuitName;
public string CircuitId { get => circuitId; set => circuitId = value; }
public string Url { get => url; set => url = value; }
public string CircuitName { get => circuitName; set => circuitName = value; }
public Location Location { get; set; }
}
public class Location
{
string lat;
string @long;
string locality;
string country;
public string Lat { get => lat; set => lat = value; }
public string Long { get => @long; set => @long = value; }
public string Locality { get => locality; set => locality = value; }
public string Country { get => country; set => country = value; }
}
}