-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ajayyy/master
Scheduling based on bluetooth
- Loading branch information
Showing
6 changed files
with
271 additions
and
76 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
app/src/main/java/lakeeffect/ca/scoutingserverapp/Action.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.