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