Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.lagrange.officerpg;
- public class Ticket {
- /**
- * Кто выполняет тикет. Если null, то никто.
- */
- private String performerNick = null;
- private int id;//уникальный id. нужен.
- private String description;
- private int remainTime;
- private int cost;
- boolean required;
- public Ticket(String performerNick, int id, String description, int remainTime, int cost, boolean required) {
- this.performerNick = performerNick;
- this.id = id;
- this.description = description;
- this.remainTime = remainTime;
- this.cost = cost;
- this.required = required;
- }
- public void setPerformer(String nick) {
- this.performerNick = nick;
- }
- public String getPerformer() {
- return performerNick;
- }
- public int getId() {
- return id;
- }
- public void changeDescription(String description) {
- this.description = description;
- }
- public void setRemainTime(int time) {
- this.remainTime = time;
- }
- public int getRemainTime() {
- return this.remainTime;
- }
- public void setCost(int cost) {
- this.cost = cost;
- }
- public int getCost() {
- return this.cost;
- }
- public boolean isRequired() {
- return required;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement