- public void normalize() {
- this.name = (this.name == null) ? "" : this.name.trim();
- this.appName = (this.appName == null) ? "" : this.appName.trim();
- if (this.width == null)
- this.width = 0;
- if (this.height == null)
- this.height = 0;
- this.url = (this.url == null) ? "" : this.url.trim();
- }
+ public OnboardingWidget(Long id, String name, Long appId,
+ String appName, Integer width, Integer height,
+ String url) {
+ this.id = id;
+ this.name = name;
+ this.appId = appId;
+ this.appName = appName;
+ this.width = width;
+ this.height = height;
+ this.url = url;
+ }
+
+ public void normalize() {
+ this.name = (this.name == null) ? "" : this.name.trim();
+ this.appName = (this.appName == null) ? "" : this.appName.trim();
+ if (this.width == null) {
+ this.width = 0;
+ }
+ if (this.height == null) {
+ this.height = 0;
+ }
+ this.url = (this.url == null) ? "" : this.url.trim();
+ }