-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.3.0 Added Iteration Status to what to download / store.
- Loading branch information
1 parent
50390b7
commit 2373111
Showing
11 changed files
with
71 additions
and
9 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
8 changes: 8 additions & 0 deletions
8
Skrumaz/src/main/java/com/skrumaz/app/classes/IterationStatus.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,8 @@ | ||
package com.skrumaz.app.classes; | ||
|
||
/** | ||
* Created by Paito Anderson on 12/3/2013. | ||
*/ | ||
public enum IterationStatus { | ||
RD_PLANNED, RD_COMMITTED, RD_ACCEPTED | ||
} |
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
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
37 changes: 37 additions & 0 deletions
37
Skrumaz/src/main/java/com/skrumaz/app/utils/IterationStatusLookup.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,37 @@ | ||
package com.skrumaz.app.utils; | ||
|
||
import com.skrumaz.app.classes.IterationStatus; | ||
|
||
/** | ||
* Created by Paito Anderson on 12/3/2013. | ||
*/ | ||
public class IterationStatusLookup { | ||
|
||
public static IterationStatus stringToIterationStatus(String status) { | ||
|
||
// When we move to Java SE 7 we can have our String Switch case ;) | ||
if (status.equalsIgnoreCase("Planning")) { | ||
return IterationStatus.RD_PLANNED; | ||
} else if (status.equalsIgnoreCase("Committed")) { | ||
return IterationStatus.RD_COMMITTED; | ||
} else if (status.equalsIgnoreCase("Accepted")) { | ||
return IterationStatus.RD_ACCEPTED; | ||
} else { | ||
return IterationStatus.RD_PLANNED; | ||
} | ||
} | ||
|
||
public static String iterationStatusToString(IterationStatus status) { | ||
switch (status) | ||
{ | ||
case RD_PLANNED: | ||
return "Planning"; | ||
case RD_COMMITTED: | ||
return "Committed"; | ||
case RD_ACCEPTED: | ||
return "Accepted"; | ||
default: | ||
return "Planning"; | ||
} | ||
} | ||
} |