1 package net.pterodactylus.rhynodge.engine;
3 import java.io.IOException;
4 import java.io.InputStream;
6 import com.fasterxml.jackson.annotation.JsonProperty;
7 import com.fasterxml.jackson.databind.ObjectMapper;
10 * Stores general configuration of Rhynodge.
12 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
14 public class Configuration {
17 private final String smtpHostname = null;
20 private String errorEmailSender = null;
23 private String errorEmailRecipient = null;
25 public String getSmtpHostname() {
29 public String getErrorEmailSender() {
30 return errorEmailSender;
33 public String getErrorEmailRecipient() {
34 return errorEmailRecipient;
37 public static Configuration from(InputStream inputStream) throws IOException {
38 return new ObjectMapper().readValue(inputStream, Configuration.class);