Skip to content

Commit

Permalink
Merge pull request #18 from ajayyy/master
Browse files Browse the repository at this point in the history
Scheduling based on bluetooth
  • Loading branch information
ajayyy authored Oct 16, 2018
2 parents fa9c0bf + ebdbde2 commit 0384fe6
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 76 deletions.
28 changes: 28 additions & 0 deletions app/src/main/java/lakeeffect/ca/scoutingserverapp/Action.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package lakeeffect.ca.scoutingserverapp;

import android.view.View;

/**
* An action that happens (someone adds a scout, changes properties, etc.)
*
* This is used to undo that action. The actions are stored in a list to be recalled upon if an undo is necessary
*/
public class Action {
//0: start match added
//1: last match added
//2: added scout
//3: removed scout
int type;

//the scout that this happened to
Scout scout;

//the view that was modified, added or removed
View view;

public Action(int type, Scout scout, View view) {
this.type = type;
this.scout = scout;
this.view = view;
}
}
Loading

0 comments on commit 0384fe6

Please sign in to comment.