|
@@ -34,15 +34,23 @@ import java.util.Optional;
|
34
|
34
|
@AutoValue
|
35
|
35
|
public abstract class EventFormat {
|
36
|
36
|
|
|
37
|
+ /** The template to use when rendering the event. */
|
37
|
38
|
public abstract String getTemplate();
|
|
39
|
+ /** The template to use before starting to render the event. */
|
|
40
|
+ public abstract Optional<String> getBeforeTemplate();
|
|
41
|
+ /** The template to use after finishing rendering the event. */
|
|
42
|
+ public abstract Optional<String> getAfterTemplate();
|
38
|
43
|
|
39
|
44
|
// TODO: This should probably be a generic set of properties.
|
40
|
45
|
public abstract Optional<Colour> getDefaultForegroundColour();
|
41
|
46
|
|
42
|
47
|
public static EventFormat create(
|
43
|
48
|
final String template,
|
|
49
|
+ final Optional<String> beforeTemplate,
|
|
50
|
+ final Optional<String> afterTemplate,
|
44
|
51
|
final Optional<Colour> defaultForegroundColour) {
|
45
|
|
- return new AutoValue_EventFormat(template, defaultForegroundColour);
|
|
52
|
+ return new AutoValue_EventFormat(template, beforeTemplate, afterTemplate,
|
|
53
|
+ defaultForegroundColour);
|
46
|
54
|
}
|
47
|
55
|
|
48
|
56
|
}
|