/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import javax.annotation.Resource;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "nachricht")
@SessionScoped
public class Nachricht implements Serializable {

  private String code1;
  private String code2;
  private String nachricht;
  private int anzahl;

  public Nachricht() {
  }

  public Nachricht(String code1, String code2, String nachricht, int anzahl) {
    this.code1 = code1;
    this.code2 = code2;
    this.nachricht = nachricht;
    this.anzahl = anzahl;
    //System.out.println(control);
  }

  @Override
  public String toString() {
    return "C1:" + code1 + " C2:" + code2 + " N:" + nachricht + " Anz:" + anzahl;
  }

  public int getAnzahl() {
    return anzahl;
  }

  public void setAnzahl(int anzahl) {
    this.anzahl = anzahl;
  }

  public String getCode1() {
    return code1;
  }

  public void setCode1(String code1) {
    this.code1 = code1;
  }

  public String getCode2() {
    return code2;
  }

  public void setCode2(String code2) {
    this.code2 = code2;
  }

  public String getNachricht() {
    return nachricht;
  }

  public void setNachricht(String nachricht) {
    this.nachricht = nachricht;
  }
}
