// Path: app/src/main/java/com/tylersuehr/cleanarchitecture/data/models/Person.java
// public class Person extends Entity {
//     private String firstName;
//     private String lastName;
//     private String image;
//     private int age;
// 
// 
//     public Person() {}
// 
//     @Override
//     public String getId() {
//         return (String)super.getId();
//     }
// 
//     public String getFirstName() {
//         return firstName;
//     }
// 
//     public void setFirstName(String firstName) {
//         this.firstName = firstName;
//     }
// 
//     public String getLastName() {
//         return lastName;
//     }
// 
//     public void setLastName(String lastName) {
//         this.lastName = lastName;
//     }
// 
//     public int getAge() {
//         return age;
//     }
// 
//     public void setAge(int age) {
//         this.age = age;
//     }
// 
//     public String getImage() {
//         return image;
//     }
// 
//     public void setImage(String image) {
//         this.image = image;
//     }
// }
// 
// Path: app/src/main/java/com/tylersuehr/cleanarchitecture/data/repositories/DatabaseContract.java
// public static abstract class People {
//     public static final String NAME = "people";
//     public static final String COL_ID = "pId";
//     public static final String COL_FIRST_NAME = "pFirst";
//     public static final String COL_LAST_NAME = "pLast";
//     public static final String COL_IMAGE = "pImage";
//     public static final String COL_AGE = "pAge";
// }


import android.content.ContentValues;
import android.database.Cursor;
import com.tylersuehr.cleanarchitecture.data.models.Person;
import static com.tylersuehr.cleanarchitecture.data.repositories.DatabaseContract.People;
package com.tylersuehr.cleanarchitecture.data.mappers;

/**
 * Copyright 2017 Tyler Suehr
 *
 * Concrete implementation of {@link IEntityMapper} for {@link Person} model.
 *
 * @author Tyler Suehr
 * @version 1.0
 */
public class PersonMapper implements IEntityMapper<Person> {
    @Override
    public Person map(Cursor c) {
        Person person = new Person();
// Path: app/src/main/java/com/tylersuehr/cleanarchitecture/data/models/Person.java
// public class Person extends Entity {
//     private String firstName;
//     private String lastName;
//     private String image;
//     private int age;
// 
// 
//     public Person() {}
// 
//     @Override
//     public String getId() {
//         return (String)super.getId();
//     }
// 
//     public String getFirstName() {
//         return firstName;
//     }
// 
//     public void setFirstName(String firstName) {
//         this.firstName = firstName;
//     }
// 
//     public String getLastName() {
//         return lastName;
//     }
// 
//     public void setLastName(String lastName) {
//         this.lastName = lastName;
//     }
// 
//     public int getAge() {
//         return age;
//     }
// 
//     public void setAge(int age) {
//         this.age = age;
//     }
// 
//     public String getImage() {
//         return image;
//     }
// 
//     public void setImage(String image) {
//         this.image = image;
//     }
// }
// 
// Path: app/src/main/java/com/tylersuehr/cleanarchitecture/data/repositories/DatabaseContract.java
// public static abstract class People {
//     public static final String NAME = "people";
//     public static final String COL_ID = "pId";
//     public static final String COL_FIRST_NAME = "pFirst";
//     public static final String COL_LAST_NAME = "pLast";
//     public static final String COL_IMAGE = "pImage";
//     public static final String COL_AGE = "pAge";
// }


// Path: app/src/main/java/com/tylersuehr/cleanarchitecture/data/mappers/PersonMapper.java
import android.content.ContentValues;
import android.database.Cursor;
import com.tylersuehr.cleanarchitecture.data.models.Person;
import static com.tylersuehr.cleanarchitecture.data.repositories.DatabaseContract.People;

package com.tylersuehr.cleanarchitecture.data.mappers;

/**
 * Copyright 2017 Tyler Suehr
 *
 * Concrete implementation of {@link IEntityMapper} for {@link Person} model.
 *
 * @author Tyler Suehr
 * @version 1.0
 */
public class PersonMapper implements IEntityMapper<Person> {
    @Override
    public Person map(Cursor c) {
        Person person = new Person();
        person.setId(c.getString(c.getColumnIndex(People.COL_ID)));