1 18 19 20 package sync4j.framework.core; 21 22 23 31 public final class Alert 32 extends ItemizedCommand 33 implements java.io.Serializable { 34 35 public static String COMMAND_NAME = "Alert"; 37 38 private int data; 40 41 43 44 protected Alert() {} 45 46 57 public Alert(final CmdID cmdID, 58 final boolean noResp, 59 final Cred cred, 60 final int data, 61 final Item[] items) { 62 super(cmdID, items); 63 64 this.noResp = (noResp) ? new Boolean (noResp) : null; 65 setCred(cred); 66 67 this.data = data; 68 } 69 70 72 77 public int getData() { 78 return data; 79 } 80 81 86 public void setData(int data) { 87 this.data = data; 88 } 89 90 95 public String getName() { 96 return Alert.COMMAND_NAME; 97 } 98 } 99 | Popular Tags |