java/nekurak.net-lib/src/cz/frantovo/nekurak/xml/HlasXML.java
author František Kučera <franta-hg@frantovo.cz>
Wed Jun 09 15:51:41 2010 +0200 (2010-06-09)
changeset 136 230bd05dcfec
child 145 0efefbf5f8b6
permissions -rw-r--r--
PHP služba – Texy, HTTP API
     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 
    16     @XmlElement
    17     public int getPodnik() {
    18 	return podnik;
    19     }
    20 
    21     public void setPodnik(int podnik) {
    22 	this.podnik = podnik;
    23     }
    24 
    25     @XmlElement
    26     public boolean isKourit() {
    27 	return kourit;
    28     }
    29 
    30     public void setKourit(boolean hlas) {
    31 	this.kourit = hlas;
    32     }
    33     
    34 
    35 }