-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished the Request class, should be able to make requests and recei…
…ve data using the library now.
- Loading branch information
FlareLine
committed
Nov 16, 2017
1 parent
b4b8190
commit c98562b
Showing
4 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace PTVWrapper.Models | ||
{ | ||
/// <summary> | ||
/// API payload class, containing all the possible objects the PTV API can respond with | ||
/// </summary> | ||
public class Payload | ||
{ | ||
public List<Departure> Departures { get; set; } | ||
public List<Route> Routes { get; set; } | ||
public List<Stop> Stops { get; set; } | ||
public List<Run> Runs { get; set; } | ||
public List<Pattern> Patterns { get; set; } | ||
public List<Location> Locations { get; set; } | ||
public List<Disruption> Disruptions { get; set; } | ||
public List<RouteType> RouteTypes { get; set; } | ||
public List<Direction> Directions { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net452" /> | ||
</packages> |