-
Notifications
You must be signed in to change notification settings - Fork 417
Expand file tree
/
Copy pathPaperOnboardingPage.java
More file actions
196 lines (153 loc) · 5.29 KB
/
PaperOnboardingPage.java
File metadata and controls
196 lines (153 loc) · 5.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
package com.ramotion.paperonboarding;
import com.ramotion.paperonboarding.utils.TextStyle;
import java.io.Serializable;
/**
* Represents content for one page of Paper Onboarding
*/
public class PaperOnboardingPage implements Serializable {
private String titleText;
private String descriptionText;
private int bgColor;
private int contentIconRes;
private int bottomBarIconRes;
private String imageUrl;
private int imageHeight;
private int imageWidth;
private int titleTextColor;
private int titleTextSize;
private int descriptionTextColor;
private int descriptionTextSize;
private TextStyle titleTextStyle;
private TextStyle descriptionTextStyle;
public PaperOnboardingPage() {
}
public PaperOnboardingPage(String titleText, String descriptionText, int bgColor, int contentIconRes, int bottomBarIconRes) {
this.bgColor = bgColor;
this.contentIconRes = contentIconRes;
this.bottomBarIconRes = bottomBarIconRes;
this.descriptionText = descriptionText;
this.titleText = titleText;
}
public PaperOnboardingPage(String titleText, String descriptionText, String imageUrl, int bgColor, int bottomBarIconRes) {
this.titleText = titleText;
this.descriptionText = descriptionText;
this.bgColor = bgColor;
this.bottomBarIconRes = bottomBarIconRes;
this.imageUrl = imageUrl;
}
public TextStyle getTitleTextStyle() {
return titleTextStyle;
}
public void setTitleTextStyle(TextStyle titleTextStyle) {
this.titleTextStyle = titleTextStyle;
}
public TextStyle getDescriptionTextStyle() {
return descriptionTextStyle;
}
public void setDescriptionTextStyle(TextStyle descriptionTextStyle) {
this.descriptionTextStyle = descriptionTextStyle;
}
public int getTitleTextSize() {
return titleTextSize;
}
public void setTitleTextSize(int titleTextSize) {
this.titleTextSize = titleTextSize;
}
public int getDescriptionTextSize() {
return descriptionTextSize;
}
public void setDescriptionTextSize(int descriptionTextSize) {
this.descriptionTextSize = descriptionTextSize;
}
public int getTitleTextColor() {
return titleTextColor;
}
public void setTitleTextColor(int titleTextColor) {
this.titleTextColor = titleTextColor;
}
public int getDescriptionTextColor() {
return descriptionTextColor;
}
public void setDescriptionTextColor(int descriptionTextColor) {
this.descriptionTextColor = descriptionTextColor;
}
public int getImageHeight() {
return imageHeight;
}
public void setImageHeight(int imageHeight) {
this.imageHeight = imageHeight;
}
public int getImageWidth() {
return imageWidth;
}
public void setImageWidth(int imageWidth) {
this.imageWidth = imageWidth;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getTitleText() {
return titleText;
}
public void setTitleText(String titleText) {
this.titleText = titleText;
}
public String getDescriptionText() {
return descriptionText;
}
public void setDescriptionText(String descriptionText) {
this.descriptionText = descriptionText;
}
public int getContentIconRes() {
return contentIconRes;
}
public void setContentIconRes(int contentIconRes) {
this.contentIconRes = contentIconRes;
}
public int getBottomBarIconRes() {
return bottomBarIconRes;
}
public void setBottomBarIconRes(int bottomBarIconRes) {
this.bottomBarIconRes = bottomBarIconRes;
}
public int getBgColor() {
return bgColor;
}
public void setBgColor(int bgColor) {
this.bgColor = bgColor;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PaperOnboardingPage that = (PaperOnboardingPage) o;
if (bgColor != that.bgColor) return false;
if (contentIconRes != that.contentIconRes) return false;
if (bottomBarIconRes != that.bottomBarIconRes) return false;
if (titleText != null ? !titleText.equals(that.titleText) : that.titleText != null)
return false;
return descriptionText != null ? descriptionText.equals(that.descriptionText) : that.descriptionText == null;
}
@Override
public int hashCode() {
int result = titleText != null ? titleText.hashCode() : 0;
result = 31 * result + (descriptionText != null ? descriptionText.hashCode() : 0);
result = 31 * result + bgColor;
result = 31 * result + contentIconRes;
result = 31 * result + bottomBarIconRes;
return result;
}
@Override
public String toString() {
return "PaperOnboardingPage{" +
"titleText='" + titleText + '\'' +
", descriptionText='" + descriptionText + '\'' +
", bgColor=" + bgColor +
", contentIconRes=" + contentIconRes +
", bottomBarIconRes=" + bottomBarIconRes +
'}';
}
}