2011-01-10 00:24:08 -06:00
|
|
|
package com.quantumdigital.ithelp.timeanalyzer
|
|
|
|
|
|
|
|
import com.jdbernard.timeanalyzer.Entry
|
|
|
|
import com.jdbernard.timeanalyzer.Event
|
|
|
|
|
|
|
|
public class TicketEntry extends Entry {
|
|
|
|
|
|
|
|
public int id
|
|
|
|
|
2011-01-11 08:21:41 -06:00
|
|
|
public TicketEntry(TicketCategory category, Event e) {
|
2011-01-10 00:24:08 -06:00
|
|
|
super(category, e)
|
|
|
|
|
2011-01-11 08:21:41 -06:00
|
|
|
def m = e.description =~ /^ITHelp:\s*(.*#(\d+).*)$/
|
2011-01-10 00:24:08 -06:00
|
|
|
this.description = m[0][1]
|
|
|
|
this.id = m[0][2] as int
|
|
|
|
}
|
|
|
|
}
|