-
Notifications
You must be signed in to change notification settings - Fork 104
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 #7 from mazurio/develop
Development Branch for 1.0.1
- Loading branch information
Showing
79 changed files
with
2,379 additions
and
274 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package io.mazur.fit; | ||
|
||
public class Constants { | ||
public static final String PREFERENCE_PLAY_SOUND_WHEN_TIMER_STOPS = "PREFERENCE_PLAY_SOUND_WHEN_TIMER_STOPS"; | ||
public static final String PREFERENCE_KEEP_SCREEN_ON = "PREFERENCE_KEEP_SCREEN_ON"; | ||
public static final String PREFERENCE_TIMER_KEY = "PREFERENCE_TIMER_KEY"; | ||
} |
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
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,7 @@ | ||
package io.mazur.fit.model; | ||
|
||
public enum ActivityState { | ||
OnCreate, | ||
OnPause, | ||
OnStop | ||
} |
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,32 @@ | ||
package io.mazur.fit.model; | ||
|
||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
|
||
public class Category extends LinkedRoutine implements Serializable { | ||
private String mTitle; | ||
|
||
private ArrayList<Section> mSections = new ArrayList<>(); | ||
|
||
public Category(String title) { | ||
mTitle = title; | ||
} | ||
|
||
public String getTitle() { | ||
return mTitle; | ||
} | ||
|
||
public RoutineType getType() { | ||
return RoutineType.CATEGORY; | ||
} | ||
|
||
public void insertSection(Section section) { | ||
section.setCategory(this); | ||
|
||
mSections.add(section); | ||
} | ||
|
||
public ArrayList<Section> getSections() { | ||
return mSections; | ||
} | ||
} |
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,83 @@ | ||
package io.mazur.fit.model; | ||
|
||
import java.io.Serializable; | ||
|
||
public class Exercise extends LinkedRoutine implements Serializable { | ||
private String mId; | ||
private String mLevel; | ||
private String mTitle; | ||
private String mDescription; | ||
|
||
private Category mCategory; | ||
private Section mSection; | ||
|
||
private Exercise mPrevious; | ||
private Exercise mNext; | ||
|
||
public Exercise(String id, String level, String title, String description) { | ||
mId = id; | ||
mLevel = level; | ||
mTitle = title; | ||
mDescription = description; | ||
} | ||
|
||
public String getId() { | ||
return mId; | ||
} | ||
|
||
public String getLevel() { | ||
return mLevel; | ||
} | ||
|
||
public String getTitle() { | ||
return mTitle; | ||
} | ||
|
||
public RoutineType getType() { | ||
return RoutineType.EXERCISE; | ||
} | ||
|
||
public String getDescription() { | ||
return mDescription; | ||
} | ||
|
||
public void setCategory(Category category) { | ||
mCategory = category; | ||
} | ||
|
||
public Category getCategory() { | ||
return mCategory; | ||
} | ||
|
||
public void setSection(Section section) { | ||
mSection = section; | ||
} | ||
|
||
public Section getSection() { | ||
return mSection; | ||
} | ||
|
||
public boolean isPrevious() { | ||
return mPrevious != null; | ||
} | ||
|
||
public void setPrevious(Exercise previous) { | ||
mPrevious = previous; | ||
} | ||
|
||
public Exercise getPrevious() { | ||
return mPrevious; | ||
} | ||
|
||
public boolean isNext() { | ||
return mNext != null; | ||
} | ||
|
||
public void setNext(Exercise next) { | ||
mNext = next; | ||
} | ||
|
||
public Exercise getNext() { | ||
return mNext; | ||
} | ||
} |
Oops, something went wrong.