Macro.java

  1. /**
  2.  *
  3.  * Copyright 2003-2007 Jive Software.
  4.  *
  5.  * Licensed under the Apache License, Version 2.0 (the "License");
  6.  * you may not use this file except in compliance with the License.
  7.  * You may obtain a copy of the License at
  8.  *
  9.  *     http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */

  17. package org.jivesoftware.smackx.workgroup.ext.macros;

  18. /**
  19.  * Macro datamodel.
  20.  */
  21. public class Macro {
  22.     public static final int TEXT = 0;
  23.     public static final int URL = 1;
  24.     public static final int IMAGE = 2;


  25.     private String title;
  26.     private String description;
  27.     private String response;
  28.     private int type;

  29.     public String getTitle() {
  30.         return title;
  31.     }

  32.     public void setTitle(String title) {
  33.         this.title = title;
  34.     }

  35.     public String getDescription() {
  36.         return description;
  37.     }

  38.     public void setDescription(String description) {
  39.         this.description = description;
  40.     }

  41.     public String getResponse() {
  42.         return response;
  43.     }

  44.     public void setResponse(String response) {
  45.         this.response = response;
  46.     }

  47.     public int getType() {
  48.         return type;
  49.     }

  50.     public void setType(int type) {
  51.         this.type = type;
  52.     }

  53. }