contact.setEmail("email"); contact.setGender("gender"); contact.setPhone("phone"); contact.setPassword("password"); contact.setUsername("username");
@Override public Contact map(BddContact model) { if (model == null) { return null; } Contact contact = new Contact(); contact.setMd5(model.getMd5()); contact.setCell(model.getCell()); contact.setEmail(model.getEmail()); contact.setGender(model.getGender()); contact.setName(NAME_MAPPER.map(model.getName())); contact.setPhone(model.getPhone()); contact.setPassword(model.getPassword()); contact.setUsername(model.getUsername()); contact.setVersion(model.getVersion()); contact.setLocation(LOCATION_MAPPER.map(model.getLocation())); contact.setPicture(PICTURE_MAPPER.map(model.getPicture())); return contact; }
@Override public Contact map(ApiContact model) { if (model == null) { return null; } Contact contact = new Contact(); contact.setMd5(model.getMd5()); contact.setCell(model.getCell()); contact.setEmail(model.getEmail()); contact.setGender(model.getGender()); contact.setName(NAME_MAPPER.map(model.getName())); contact.setPhone(model.getPhone()); contact.setPassword(model.getPassword()); contact.setUsername(model.getUsername()); contact.setVersion(model.getVersion()); contact.setLocation(LOCATION_MAPPER.map(model.getLocation())); contact.setPicture(PICTURE_MAPPER.map(model.getPicture())); return contact; } }
private Contact createFullContact() { Contact contact = new Contact(); contact.setMd5("md5"); contact.setCell("cell"); contact.setEmail("email"); contact.setGender("gender"); contact.setPhone("phone"); contact.setPassword("password"); contact.setUsername("username"); contact.setVersion("version"); Name name = new Name(); name.setTitle("title"); name.setFirst("first"); name.setLast("last"); contact.setName(name); Location location = new Location(); location.setCity("city"); location.setState("state"); location.setStreet("street"); location.setZip("zip"); contact.setLocation(location); Picture picture = new Picture(); picture.setThumbnail("thumbnail"); picture.setLarge("large"); picture.setMedium("medium"); contact.setPicture(picture); return contact; }