Skip to content

Commit

Permalink
Initial set of interfaces...
Browse files Browse the repository at this point in the history
  • Loading branch information
t4ce committed May 5, 2015
1 parent 89e2b85 commit 4d42679
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/java/evaluating/History.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package evaluating;

/**
* Created by jonas on 05/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface History {

}
10 changes: 10 additions & 0 deletions app/src/main/java/planning/Exercise.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package planning;

/**
* Created by jonas on 05/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface Exercise {
String getName();
void setName(String name);
}
14 changes: 14 additions & 0 deletions app/src/main/java/planning/Plan.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package planning;

import java.util.ArrayList;

/**
* Created by jonas on 05/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface Plan {
ArrayList<Exercise> getExercises();
void setExercises(ArrayList<Exercise> exercises);
void addExercise(Exercise exercise);
void removeExercise(Exercise exercise);
}
9 changes: 9 additions & 0 deletions app/src/main/java/planning/PlanStore.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package planning;

/**
* Created by jonas on 06/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface PlanStore {

}
17 changes: 17 additions & 0 deletions app/src/main/java/training/Fit.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package training;

import java.util.ArrayList;

import planning.Plan;

/**
* Created by jonas on 05/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface Fit {
// Setter und Getter für alle Fitnesspläne
public ArrayList<Plan> getPlans();
public void setPlans(ArrayList<Plan> plans);
void addPlan(Plan plan);
void removePlan(Plan plan);
}
12 changes: 12 additions & 0 deletions app/src/main/java/training/Record.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package training;

/**
* Created by jonas on 05/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface Record {
int getWeight();
void setWeight(int weight);
int getRepetitions();
void setRepetitions(int repetitions);
}
18 changes: 18 additions & 0 deletions app/src/main/java/training/Training.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package training;

import java.util.ArrayList;
import java.util.Date;

import planning.Exercise;

/**
* Created by jonas on 05/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface Training {
ArrayList<Exercise> getExercises();
void setExercises(ArrayList<Exercise> exercises);

Date getDay();
void setDay(Date date);
}
9 changes: 9 additions & 0 deletions app/src/main/java/user/User.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package user;

/**
* Created by jonas on 06/05/2015.
* Not to be read or used by anyone but jonas.
*/
public interface User {

}

0 comments on commit 4d42679

Please sign in to comment.