From 3b0ee92dfaf06b78fbebc38b3af6357491a8b8d7 Mon Sep 17 00:00:00 2001 From: SocksOnHead Date: Mon, 21 Jul 2025 02:02:01 +0200 Subject: [PATCH] Updated Change Public Transport Api (markdown) --- Change-Public-Transport-Api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Change-Public-Transport-Api.md b/Change-Public-Transport-Api.md index b122739..6bfdac8 100644 --- a/Change-Public-Transport-Api.md +++ b/Change-Public-Transport-Api.md @@ -3,11 +3,11 @@ Open the project in preferrable IDE and edit those files: **Update**: - - [ResRobotClient to make request to new api](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Integration/Client/ResRobotClient.cs) - - [Update To Contract Extension to map correctly](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Extensions/ContractExtensions.cs#L133) + - [ResRobotClient.cs: to make request to new api](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Integration/Client/ResRobotClient.cs) + - [ContractExtensions.cs:133: Update To Contract Extension to map correctly](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Extensions/ContractExtensions.cs#L133) **Replace**: - - [TrafikLabsResponse](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Models/Response/TrafikLabsApiResponse.cs) + - [TrafikLabsApiResponse.cs](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Models/Response/TrafikLabsApiResponse.cs) When it comes to the response model, you can simply try to make a request to their endpoint and copy the JSON. For less pain in the ass, use https://json2csharp.com/ or other tool to recreate the model from JSON. \ No newline at end of file