Set svID in ConfigModule instead of hard-coding it

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=138552819
This commit is contained in:
Francis Aiello 2016-11-08 12:56:24 -08:00 committed by Ben McIlwain
parent 1abd0e1123
commit 1671508547
3 changed files with 17 additions and 3 deletions

View file

@ -31,7 +31,7 @@ import org.joda.time.DateTime;
*/
public class Greeting extends ImmutableObject implements ResponseOrGreeting {
String svID = "Charleston Road Registry";
String svID;
DateTime svDate;
/** This is never changed, so it might as well be static for efficiency. */
@ -42,8 +42,9 @@ public class Greeting extends ImmutableObject implements ResponseOrGreeting {
@XmlElement
static Dcp dcp = new Dcp();
public static Greeting create(DateTime svDate) {
public static Greeting create(DateTime svDate, String svID) {
Greeting instance = new Greeting();
instance.svID = svID;
instance.svDate = svDate;
return instance;
}