@SuppressWarnings("nls")
public OpenStackRouter(Context context, com.woorea.openstack.quantum.model.Router router) {
super(context);
HashMap<String, String> dictionary = new HashMap<>();
dictionary.put("id", "id");
dictionary.put("name", "name");
dictionary.put("status", "status");
ObjectMapper.map(router, this, dictionary);
String externalNetworkId = null;
if (router.getExternalGatewayInfo() != null) {
externalNetworkId = router.getExternalGatewayInfo().getNetworkId();
}
this.setExternalNetworkId(externalNetworkId);
}
}