38 lines
804 B
Groovy
Raw Normal View History

package com.quantumdigital.ithelp.timeanalyzer
import com.jdbernard.timeanalyzer.Event
public class TicketEvent extends Event {
public final int id
public TicketEvent(String desc, String notes, String start, String duration) {
2011-01-18 17:58:29 -06:00
super(desc, notes, 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+).*/
this.id = m[0][1] as int
}
2011-01-18 17:58:29 -06:00
public TicketEvent(Event e) {
super([:], e)
def m = description =~ /.*#(\d+).*/
this.id = m[0][1] as int
}
}