What?
Simple C# library to get the latest MTA service status.
Available as a nuget package here: https://www.nuget.org/packages/MTAServiceStatus
or running the command: PM> Install-Package MTAServiceStatus
How?
var repo = new MTARepository();
var status = await repo.GetServiceAsync();
var goodService = from s in status.Subway
where s.Status == ServiceStatus.GOOD_SERVICE
select s;
Console.WriteLine("Currently {0} subway lines with \"GOOD SERVICE\"", goodService.Count());
//Displays "Currently 4 subway lines with "GOOD SERVICE""
Log in or sign up for Devpost to join the conversation.