Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1893df8ca0 | |||
| 0a46003741 | |||
| bde893a905 | |||
| a9b258ceb3 | |||
| 9e666a892d | |||
| c10755ad48 | |||
| 3e68a2959f |
4
main.cpp
4
main.cpp
@@ -6,13 +6,13 @@
|
||||
|
||||
int main() {
|
||||
try {
|
||||
std::cout << "Testing JsonService" << std::endl;
|
||||
std::cout << "Testing JSON Service" << std::endl;
|
||||
JsonService js;
|
||||
Weather w1 = js.getWeather("endpoints/weather.json");
|
||||
std::cout << "Weather object created (JSON)" << std::endl;
|
||||
w1.printWeather();
|
||||
|
||||
std::cout << "\nTesting XmlService" << std::endl;
|
||||
std::cout << "\nTesting XML Service" << std::endl;
|
||||
XmlService xs;
|
||||
Weather w2 = xs.getWeather("endpoints/weather.xml");
|
||||
std::cout << "Weather object created (XML)" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user