Back to project page tum-campus.
The source code is released under:
GNU General Public License
If you think the Android project tum-campus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
?package de.tum.in.tumcampus.models; // ww w. j a va 2 s.c om import java.util.Date; import de.tum.in.tumcampus.common.Utils; /** * CafeteriaMenu object */ public class CafeteriaMenu { /** * CafeteriaMenu Id (empty for addendum) */ int id; /** * Cafeteria ID */ int cafeteriaId; /** * Menu date */ Date date; /** * Short type, e.g. tg */ String typeShort; /** * Long type, e.g. Tagesgericht 1 */ String typeLong; /** * Type ID */ int typeNr; /** * Menu name */ String name; /** * New CafeteriaMenu * * <pre> * @param id CafeteriaMenu Id (empty for addendum) * @param cafeteriaId Cafeteria ID * @param date Menu date * @param typeShort Short type, e.g. tg * @param typeLong Long type, e.g. Tagesgericht 1 * @param typeNr Type ID * @param name Menu name * </pre> */ public CafeteriaMenu(int id, int cafeteriaId, Date date, String typeShort, String typeLong, int typeNr, String name) { this.id = id; this.cafeteriaId = cafeteriaId; this.date = date; this.typeShort = typeShort; this.typeLong = typeLong; this.typeNr = typeNr; this.name = name; } @Override public String toString() { return "id=" + this.id + " cafeteriaId=" + this.cafeteriaId + " date=" + Utils.getDateString(this.date) + " typeShort=" + this.typeShort + " typeLong=" + this.typeLong + " typeNr=" + this.typeNr + " name=" + this.name; } }