package net.ghostrealms.ticket;

import org.bukkit.Location;

import java.util.Map;
import java.util.UUID;

/**
 * Created by River on 2/23/2015.
 * Ticket Object Class* 
 */

public class Ticket {
    
    private int id;
    private int tstamp;
    private Location location;
    private String issue;
    private Map<Integer, String> comments;
    private UUID creator;
    private UUID assigned;
    
    public Ticket(int id) {
        
    }
    
    protected Ticket(UUID owner, Location location, String issue) {
        creator = owner;
        this.location = location;
        this.issue = issue;
    }
    
}

@@ -44,24 +44,83 @@
 .bukkit.
-Location
+Bukkit;%0Aimport org.bukkit.Location;%0Aimport org.bukkit.entity.Player
 ;%0A%0Aimpor
@@ -287,19 +287,20 @@
 private 
-int
+long
  tstamp;
@@ -629,24 +629,24 @@
 = location;%0A
-
         this
@@ -672,10 +672,900 @@
  %7D%0A    %0A
+    public int getId() %7B%0A        return id;%0A    %7D%0A    %0A    public Location getLocation() %7B%0A        return location;%0A    %7D%0A    %0A    public String getIssue() %7B%0A        return issue;%0A    %7D%0A    %0A    public UUID getOwner() %7B%0A        return creator;%0A    %7D%0A    %0A    public UUID getAssignedStaff() %7B%0A        return assigned;%0A    %7D%0A    %0A    public long getTimestamp() %7B%0A        return tstamp;%0A    %7D%0A    %0A    public void teleport(Player user) %7B%0A        user.teleport(location);%0A    %7D%0A    %0A    public void setAssignedMember(UUID staff) %7B%0A        this.assigned = staff;%0A    %7D%0A    %0A    public void addComment(String comment) %7B%0A        long time = System.currentTimeMillis();%0A    %7D%0A    %0A    public void setLocation(Location location) %7B%0A        this.location = location;%0A    %7D%0A    %0A    public void update() %7B%0A        //TODO query the database using the DataManager and update the ticket values%0A    %7D%0A    %0A
 %7D%0A

add some setters and getters