Allow long parameter names.
[rhynodge.git] / src / main / java / net / pterodactylus / rhynodge / states / OutputState.java
1 package net.pterodactylus.rhynodge.states;
2
3 import java.util.Optional;
4
5 import net.pterodactylus.rhynodge.State;
6
7 import com.fasterxml.jackson.annotation.JsonProperty;
8
9 /**
10  * {@link State} implementation that can expose itself as plain text and/or
11  * HTML.
12  *
13  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
14  */
15 public class OutputState extends AbstractState {
16
17         private final Optional<String> plainTextOutput;
18         private final Optional<String> htmlOutput;
19
20         public OutputState() {
21                 this(Optional.<String>empty(), Optional.<String>empty());
22         }
23
24         public OutputState(Optional<String> plainTextOutput, Optional<String> htmlOutput) {
25                 this.plainTextOutput = plainTextOutput;
26                 this.htmlOutput = htmlOutput;
27         }
28
29         public Optional<String> plainTextOutput() {
30                 return plainTextOutput;
31         }
32
33         public Optional<String> htmlOutput() {
34                 return htmlOutput;
35         }
36
37 }