package io.teiler.server.dto;

import com.google.gson.annotations.SerializedName;

/**
 * Class holding all information about a debt.
 *
 *  @author dthoma
 */
public class Debt {

    @SerializedName("title")
    private Person person;

    @SerializedName("balance")
    private int balance;

    public Debt(Person person, int balance) {
        this.person = person;
        this.balance = balance;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "Debt [person=" + person + ", balance=" + balance + "]";
    }
}

@@ -199,13 +199,14 @@
 me(%22
-title
+person
 %22)%0A 
@@ -216,22 +216,19 @@
 private 
-Person
+int
  person;
@@ -302,22 +302,19 @@
 ic Debt(
-Person
+int
  person,
@@ -409,22 +409,19 @@
  public 
-Person
+int
  getPers
@@ -483,22 +483,19 @@
 tPerson(
-Person
+int
  person)

add debt