-
Notifications
You must be signed in to change notification settings - Fork 1
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 #558 from dickschoeller/angular-client
Add an angular client
- Loading branch information
Showing
113 changed files
with
22,714 additions
and
134 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
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
63 changes: 63 additions & 0 deletions
63
gedbrowser-api/src/main/java/org/schoellerfamily/gedbrowser/api/datamodel/ApiLifespan.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,63 @@ | ||
package org.schoellerfamily.gedbrowser.api.datamodel; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author Dick Schoeller | ||
*/ | ||
public final class ApiLifespan implements Serializable { | ||
/** */ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Holds the birth date, empty string means unknown. | ||
*/ | ||
private final String birthDate; | ||
|
||
/** | ||
* Holds the death date, null means unknown. | ||
*/ | ||
private final String deathDate; | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
public ApiLifespan() { | ||
super(); | ||
birthDate = ""; | ||
deathDate = ""; | ||
} | ||
|
||
/** | ||
* @param birthDate the birth date | ||
* @param deathDate the death date | ||
*/ | ||
public ApiLifespan(final String birthDate, final String deathDate) { | ||
this.birthDate = defaultValue(birthDate); | ||
this.deathDate = defaultValue(deathDate); | ||
} | ||
|
||
/** | ||
* @param input the input string | ||
* @return input or empty string if input is null | ||
*/ | ||
private static String defaultValue(final String input) { | ||
if (input == null) { | ||
return ""; | ||
} | ||
return input; | ||
} | ||
/** | ||
* @return the birth date | ||
*/ | ||
public String getBirthDate() { | ||
return birthDate; | ||
} | ||
|
||
/** | ||
* @return the death date | ||
*/ | ||
public String getDeathDate() { | ||
return deathDate; | ||
} | ||
} |
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
Oops, something went wrong.