Merge "Convert type to uppercase in command setters"
This commit is contained in:
commit
d088ea59c7
|
@ -89,6 +89,10 @@ public class CreateNotificationMethodCommand {
|
|||
this.convertedPeriod = Validation.parseAndValidateNumber(period, "period");
|
||||
}
|
||||
|
||||
public void setType(String type){
|
||||
this.type = type == null ? null : type.toUpperCase();
|
||||
}
|
||||
|
||||
public int getConvertedPeriod(){
|
||||
return this.convertedPeriod;
|
||||
}
|
||||
|
|
|
@ -83,6 +83,10 @@ public class PatchNotificationMethodCommand {
|
|||
this.convertedPeriod = period;
|
||||
}
|
||||
|
||||
public void setType(String type){
|
||||
this.type = type == null ? null : type.toUpperCase();
|
||||
}
|
||||
|
||||
public int getConvertedPeriod(){
|
||||
return this.convertedPeriod;
|
||||
}
|
||||
|
|
|
@ -88,6 +88,10 @@ public class UpdateNotificationMethodCommand {
|
|||
this.convertedPeriod = Validation.parseAndValidateNumber(period, "period");
|
||||
}
|
||||
|
||||
public void setType(String type){
|
||||
this.type = type == null ? null : type.toUpperCase();
|
||||
}
|
||||
|
||||
public int getConvertedPeriod(){
|
||||
return this.convertedPeriod;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue