2011-01-10 00:24:08 -06:00
|
|
|
package com.quantumdigital.ithelp.timeanalyzer
|
|
|
|
|
|
|
|
import com.jdbernard.timeanalyzer.Event
|
|
|
|
|
2011-01-18 07:20:56 -06:00
|
|
|
public class TicketEvent extends Event {
|
2011-01-10 00:24:08 -06:00
|
|
|
|
2011-01-18 07:20:56 -06:00
|
|
|
public final int id
|
2011-01-10 00:24:08 -06:00
|
|
|
|
2011-01-18 07:20:56 -06:00
|
|
|
public TicketEvent(String desc, String notes, String start, String duration) {
|
2011-01-10 00:24:08 -06:00
|
|
|
|
2011-01-18 07:20:56 -06:00
|
|
|
super(desc, note, start, duration)
|
|
|
|
|
|
|
|
def m = desc =~ /.*#(\d+).*/
|
|
|
|
this.id = m[0][1] as int
|
|
|
|
}
|
|
|
|
|
|
|
|
public TicketEvent(Map params) {
|
|
|
|
super(params)
|
|
|
|
|
|
|
|
def m = description =~ /.*#(\d+).*/
|
|
|
|
this.id = m[0][1] as int
|
|
|
|
}
|
|
|
|
|
|
|
|
public TicketEvent(Map params, Event e) {
|
|
|
|
super(params, e)
|
|
|
|
|
|
|
|
def m = description =~ /.*#(\d+).*/
|
2011-01-12 17:21:39 -06:00
|
|
|
this.id = m[0][1] as int
|
2011-01-10 00:24:08 -06:00
|
|
|
}
|
|
|
|
}
|