1 25 26 29 package net.killingar.forum.internal; 30 31 public class PollAlternative extends IDItemImpl 32 { 33 public long pollID = -1, numberOfAnswers; 34 public String alternative, color; 35 36 public PollAlternative(long _ID, long _pollID, String _alternative, String _color, long _numberOfAnswers) 37 { 38 super(_ID); 39 pollID = _pollID; 40 alternative = _alternative; 41 color = _color; 42 numberOfAnswers = _numberOfAnswers; 43 } 44 45 public PollAlternative(long _pollID, String _alternative, String _color) 46 { 47 super(-1); 48 pollID = _pollID; 49 color = _color; 50 alternative = _alternative; 51 } 52 53 public long getNumberOfAnswers() {return numberOfAnswers;} 54 public String getAlternative() {return alternative;} 55 public String getColor() {return color;} 56 } | Popular Tags |