1 25 26 29 package net.killingar.forum.internal; 30 31 import java.sql.Timestamp ; 32 33 public class Poll extends IDItemImpl implements OwnerIDItem 34 { 35 public long ownerID = -1, groupID = -1; 36 public String question; 37 public Timestamp time, lastChanged; 38 39 public Poll(long _ID, long _ownerID, long _groupID, String _question, Timestamp _time, Timestamp _lastChanged) 40 { 41 super(_ID); 42 ownerID = _ownerID; 43 groupID = _groupID; 44 question = _question; 45 time = _time; 46 lastChanged = _lastChanged; 47 } 48 49 public Poll(long _groupID, String _question) 50 { 51 super(-1); 52 groupID = _groupID; 53 question = _question; 54 } 55 56 public String getQuestion() {return question;} 57 public Timestamp getTime() {return time;} 58 public Timestamp getLastChanged() {return lastChanged;} 59 60 public long getOwnerID() { return ownerID; } 61 public long getGroupID() { return groupID; } 62 } | Popular Tags |