Skip to content

Commit

Permalink
[cli] basic interface (daily)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoscik committed Mar 25, 2022
1 parent 606ce6f commit 6ebc724
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions cli.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
namespace Weather
{
public class Cli
{
public static void printDaily(Geolocation.Place place, Weather forecast)
{
string output = new string("");

output += $"Current weather in: {place.name}, {place.country}\n";
output += $"Temperature: {forecast.weatherCurrent.temp}";

Console.WriteLine(output);
}

// TODO: implement weekly forecast
public static void printWeekly(Geolocation.Place place, Weather forecast)
{
string output = new string("TO IMPLEMENT");

Console.WriteLine(output);
}

// TODO: implement monthly forecast
public static void printMonthly(Geolocation.Place place, Weather forecast)
{
string output = new string("TO IMPLEMENT");

Console.WriteLine(output);
}
}
}

0 comments on commit 6ebc724

Please sign in to comment.