java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/HlasXML.java
author František Kučera <franta-hg@frantovo.cz>
Wed Jan 26 18:58:02 2011 +0100 (2011-01-26)
changeset 182 bb8af29610c4
parent 145 0efefbf5f8b6
permissions -rw-r--r--
Added signature for changeset bcf03fc1e3f9
franta-hg@110
     1
package cz.frantovo.nekurak.xml;
franta-hg@110
     2
franta-hg@110
     3
import javax.xml.bind.annotation.XmlElement;
franta-hg@110
     4
import javax.xml.bind.annotation.XmlRootElement;
franta-hg@110
     5
franta-hg@110
     6
/**
franta-hg@110
     7
 * Jeden hlas od uživatele.
franta-hg@110
     8
 * @author fiki
franta-hg@110
     9
 */
franta-hg@145
    10
@XmlRootElement(name = "hlas")
franta-hg@110
    11
public class HlasXML {
franta-hg@110
    12
franta-hg@145
    13
	private int podnik;
franta-hg@145
    14
	private boolean kourit;
franta-hg@174
    15
	private String csrfToken;
franta-hg@110
    16
franta-hg@145
    17
	@XmlElement
franta-hg@145
    18
	public int getPodnik() {
franta-hg@145
    19
		return podnik;
franta-hg@145
    20
	}
franta-hg@110
    21
franta-hg@145
    22
	public void setPodnik(int podnik) {
franta-hg@145
    23
		this.podnik = podnik;
franta-hg@145
    24
	}
franta-hg@110
    25
franta-hg@145
    26
	@XmlElement
franta-hg@145
    27
	public boolean isKourit() {
franta-hg@145
    28
		return kourit;
franta-hg@145
    29
	}
franta-hg@110
    30
franta-hg@145
    31
	public void setKourit(boolean hlas) {
franta-hg@145
    32
		this.kourit = hlas;
franta-hg@145
    33
	}
franta-hg@174
    34
franta-hg@174
    35
	@XmlElement
franta-hg@174
    36
	public String getCsrfToken() {
franta-hg@174
    37
		return csrfToken;
franta-hg@174
    38
	}
franta-hg@174
    39
franta-hg@174
    40
	public void setCsrfToken(String csrfToken) {
franta-hg@174
    41
		this.csrfToken = csrfToken;
franta-hg@174
    42
	}
franta-hg@110
    43
}