1 /******************************************************************************
2 * RestRefreshStatus.java - Define a string with a style
3 * $Id: RestStatusString.java,v 1.2 2015/05/04 23:38:38 dick Exp $
4 *
5 * BuckoVidLib - The BuckoSoft Video Library
6 * Copyright(c) 2015 - Dick Balaska
7 *
8 * $Log: RestStatusString.java,v $
9 * Revision 1.2 2015/05/04 23:38:38 dick
10 * Javadoc.
11 *
12 * Revision 1.1 2015/04/30 14:45:18 dick
13 * Define a string with a style.
14 *
15 */
16 package com.buckosoft.BuckoVidLib.domain.rest.admin;
17
18 import javax.xml.bind.annotation.XmlRootElement;
19
20 /** Define a string with a style for the Refresh system.
21 * Uses ugly bootstrap style names.
22 * @author dick
23 * @since 2015-04-30
24 */
25 @XmlRootElement(name="StatusString")
26 public class RestStatusString {
27 private String type;
28 private String message;
29
30 public RestStatusString() {}
31
32 public RestStatusString(String type, String message) {
33 this.type = type;
34 this.message = message;
35 }
36
37 /** Return the type of the message.
38 * @return the type
39 */
40 public String getType() {
41 return type;
42 }
43 /** One of: "primary", "success", "info", "warning", or "danger".
44 * @param type the type to set
45 */
46 public void setType(String type) {
47 this.type = type;
48 }
49 /** Return the text string to display in the browser.
50 * @return the message
51 */
52 public String getMessage() {
53 return message;
54 }
55 /** Set the text string to return to the browser.
56 * @param message the message to set
57 */
58 public void setMessage(String message) {
59 this.message = message;
60 }
61
62
63 }