constructor for event for all parameters