(Link object)
| 43 | map.put(Link.class, new JSONConverter<Link>() { |
| 44 | |
| 45 | @Override |
| 46 | public String convert(Link object) { |
| 47 | return String.format("{%s, %s, %s, %s, %s, %s}", |
| 48 | pair("id", object.getId()), |
| 49 | pair("name", object.getLinkName()), |
| 50 | pair("addr", object.getLinkAddress()), |
| 51 | pair("address", object.getProtocolAddress()), |
| 52 | pair("password", object.getProtocolPassword()), |
| 53 | pair("pktpassword", object.getPaketPassword())); |
| 54 | } |
| 55 | }); |
| 56 | map.put(LinkOption.class, new JSONConverter<LinkOption>() { |
| 57 |
nothing calls this directly
no test coverage detected