Skip to content

Commit

Permalink
Merge pull request #484 from noi-techpark/formatting/csharpier
Browse files Browse the repository at this point in the history
adding formatting
  • Loading branch information
RudiThoeni authored Dec 18, 2024
2 parents b36c6ba + 8fdaec6 commit 4ad2704
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 4ad2704

Please sign in to comment.