1 24 30 31 package org.datashare.objects; 32 33 39 public class InstantMsgData implements java.io.Serializable 40 { 41 45 static final long serialVersionUID = 9034563813476897504L; 46 47 51 public final static int PLAIN = 0; 52 53 57 public final static int CANCEL = 1; 58 59 63 public final static int INVITE = 2; 64 65 69 public final static int ACCEPT = 3; 70 71 75 public String msg; 76 77 81 public int msgType; 82 83 86 public String [] destinationClientKeyValue; 87 88 91 public InstantMsgData() 92 { 93 } 94 95 100 public InstantMsgData(String [] destinationUser, String msg) 101 { 102 this.msg = msg; 103 destinationClientKeyValue = destinationUser; 104 this.msgType = PLAIN; 105 } 106 107 114 public InstantMsgData(String [] destinationUser, String msg, int msgType) 115 { 116 this.msg = msg; 117 destinationClientKeyValue = destinationUser; 118 this.msgType = msgType; 119 } 120 121 } 122 | Popular Tags |