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