1 18 19 package sync4j.syncclient.spds.event; 20 21 import java.util.Date ; 22 23 32 public class SyncTransportEvent { 33 34 35 37 38 public static final int SEND_DATA_BEGIN = 0 ; 39 40 41 public static final int SEND_DATA_END = 1 ; 42 43 44 public static final int RECEIVE_DATA_BEGIN = 2 ; 45 46 47 public static final int DATA_RECEIVED = 3 ; 48 49 50 public static final int RECEIVE_DATA_END = 4 ; 51 52 54 private int data = 0 ; 55 private int type = 0 ; 56 57 59 65 public SyncTransportEvent(int type , 66 int data ) { 67 this.type = type ; 68 this.data = data ; 69 } 70 71 73 public int getData () { 74 return data; 75 } 76 77 public int getType () { 78 return type; 79 } 80 81 public void setData (int data ) { 82 this.data = data ; 83 } 84 85 public void setType (int type ) { 86 this.type = type ; 87 } 88 89 91 } | Popular Tags |