mirror of
https://github.com/Windscribe/Desktop-App.git
synced 2026-05-07 20:12:44 +00:00
19 lines
415 B
C++
19 lines
415 B
C++
#include "serverlist.h"
|
|
#include <wsnet/WSNetServerLocations.h>
|
|
|
|
namespace api_responses {
|
|
|
|
ServerList::ServerList(std::shared_ptr<wsnet::WSNetServerLocations> serverLocations)
|
|
{
|
|
if (!serverLocations)
|
|
return;
|
|
|
|
for (const auto &loc : serverLocations->locations()) {
|
|
Location location;
|
|
location.initFromWsnet(loc);
|
|
locations_ << location;
|
|
}
|
|
}
|
|
|
|
} // namespace api_responses
|