Code cleanup
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using libmetar.Services;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EFB.Metar
|
||||
{
|
||||
@ -10,16 +8,18 @@ namespace EFB.Metar
|
||||
{
|
||||
private static MetarService metarService { get; set; } = new MetarService();
|
||||
private static TafService tafService { get; set; } = new TafService();
|
||||
|
||||
|
||||
public static async Task<string> GetMETAR(string ICAO){
|
||||
|
||||
public static async Task<string> GetMETAR(string ICAO)
|
||||
{
|
||||
return (await metarService.GetRawAsync(ICAO)).Raw;
|
||||
}
|
||||
|
||||
public static async Task<List<string>> GetTAF(string ICAO){
|
||||
public static async Task<List<string>> GetTAF(string ICAO)
|
||||
{
|
||||
var downloadedTAF = (await tafService.GetRawAsync(ICAO)).RawSplit;
|
||||
List<string> TAF = new List<string>();
|
||||
|
||||
|
||||
foreach (var line in downloadedTAF)
|
||||
{
|
||||
TAF.Add(line);
|
||||
|
Reference in New Issue
Block a user