com.acrolinx.sidebar.pojo.settings.SidebarMessage Maven / Gradle / Ivy
/* Copyright (c) 2018 Acrolinx GmbH */
package com.acrolinx.sidebar.pojo.settings;
import com.google.gson.Gson;
public class SidebarMessage {
private final String type;
private final String title;
private final String text;
public SidebarMessage(String title, String text, SidebarMessageType sidebarMessageType) {
this.type = sidebarMessageType.getValue();
this.title = title;
this.text = text;
}
public String getTitle() {
return title;
}
public String getText() {
return text;
}
public String getType() {
return type;
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
}