Skip to content

Commit

Permalink
Merge pull request #485 from noi-techpark/main
Browse files Browse the repository at this point in the history
latest changes
  • Loading branch information
RudiThoeni authored Dec 19, 2024
2 parents 8ee607f + b3e9fd2 commit b005aa5
Show file tree
Hide file tree
Showing 325 changed files with 48,351 additions and 18,362 deletions.
37 changes: 30 additions & 7 deletions A22/GetA22Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,63 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later

using Helper.GetData;
using System.Xml.Linq;
using Helper.GetData;

namespace A22
{
public class GetA22Data
{
public static async Task<XDocument> GetWebcams(string url, string user, string pass)
{
GetData getdata = new GetData(url + "/GetWebCam", user, pass, null, GetDataAuthenticationOptions.Basic);
GetData getdata = new GetData(
url + "/GetWebCam",
user,
pass,
null,
GetDataAuthenticationOptions.Basic
);

return await getdata.GetDataAsXmlAsync();
}

public static async Task<XDocument> GetServiceAreas(string url, string user, string pass)
{
GetData getdata = new GetData(url + "/GetAreeDiServizio", user, pass, null, GetDataAuthenticationOptions.Basic);
GetData getdata = new GetData(
url + "/GetAreeDiServizio",
user,
pass,
null,
GetDataAuthenticationOptions.Basic
);

return await getdata.GetDataAsXmlAsync();
}

public static async Task<XDocument> GetTollStations(string url, string user, string pass)
{
GetData getdata = new GetData(url + "/GetCaselli", user, pass, null, GetDataAuthenticationOptions.Basic);
GetData getdata = new GetData(
url + "/GetCaselli",
user,
pass,
null,
GetDataAuthenticationOptions.Basic
);

return await getdata.GetDataAsXmlAsync();
}

public static async Task<XDocument> GetCoordinates(string url, string user, string pass)
{
GetData getdata = new GetData(url + "/GetCoordinate", user, pass, null, GetDataAuthenticationOptions.Basic);
GetData getdata = new GetData(
url + "/GetCoordinate",
user,
pass,
null,
GetDataAuthenticationOptions.Basic
);

return await getdata.GetDataAsXmlAsync();
}

}
}
}
Loading

0 comments on commit b005aa5

Please sign in to comment.