Skip to content

Commit

Permalink
+#adding formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Dec 18, 2024
1 parent b36c6ba commit 8fdaec6
Show file tree
Hide file tree
Showing 324 changed files with 48,012 additions and 18,201 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 8fdaec6

Please sign in to comment.