java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/HlasXML.java
changeset 140 0f2df9746a2c
child 145 0efefbf5f8b6
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/HlasXML.java	Sun Jun 13 17:20:20 2010 +0200
     1.3 @@ -0,0 +1,35 @@
     1.4 +package cz.frantovo.nekurak.xml;
     1.5 +
     1.6 +import javax.xml.bind.annotation.XmlElement;
     1.7 +import javax.xml.bind.annotation.XmlRootElement;
     1.8 +
     1.9 +/**
    1.10 + * Jeden hlas od uživatele.
    1.11 + * @author fiki
    1.12 + */
    1.13 +@XmlRootElement(name="hlas")
    1.14 +public class HlasXML {
    1.15 +
    1.16 +    private int podnik;
    1.17 +    private boolean kourit;
    1.18 +
    1.19 +    @XmlElement
    1.20 +    public int getPodnik() {
    1.21 +	return podnik;
    1.22 +    }
    1.23 +
    1.24 +    public void setPodnik(int podnik) {
    1.25 +	this.podnik = podnik;
    1.26 +    }
    1.27 +
    1.28 +    @XmlElement
    1.29 +    public boolean isKourit() {
    1.30 +	return kourit;
    1.31 +    }
    1.32 +
    1.33 +    public void setKourit(boolean hlas) {
    1.34 +	this.kourit = hlas;
    1.35 +    }
    1.36 +    
    1.37 +
    1.38 +}