package mma.sepnotican.controller.restreflection;

import mma.sepnotican.entity.Contact;

public class ContactRestReflect {

    private long id;
    private String name;

    public ContactRestReflect() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Contact toContact(){
        return new Contact(name);
    }

}
