source: other-projects/FileTransfer-WebSocketPair/ServerActionResponseBundle/org/nbk4/gwt/action/client/ActionObject.java@ 31449

Last change on this file since 31449 was 31449, checked in by davidb, 7 years ago

Adding three project folders for Nathan Kelly's 2016/2017 summer project, experimenting with Websockets for File Transfer with GWT and Sencha GXT

File size: 718 bytes
Line 
1package org.nbk4.gwt.action.client;
2
3import java.io.Serializable;
4import java.util.ArrayList;
5
6import com.google.gwt.user.client.rpc.IsSerializable;
7
8public class ActionObject implements Serializable, IsSerializable {
9 /*Structure (needs to be JSONable):
10 * Action:
11 * Type:
12 * ID:
13 * Properties:
14 */
15 protected static long id;
16
17 protected static long getID() {
18 return ++id;
19 }
20
21 public ActionObject() {}
22 public ActionObject(ActionType actionType, long actionID, ArrayList<ActionProperty> properties) {
23 this.actionType = actionType;
24 this.actionID = actionID;
25 this.properties = properties;
26 }
27
28 public ActionType actionType;
29 public long actionID;
30 public ArrayList<ActionProperty> properties;
31}
Note: See TracBrowser for help on using the repository browser.