Completed
Push — master ( 9ee0d1...81e86b )
by Kunal
03:14
created

com.base.Models.Channel.getTeam()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
1
package com.base.Models;
2
3
public class Channel extends BaseModel {
4
5
    /**
6
     * Channel name
7
     */
8
    private String name;
9
    /**
10
     * Channel description
11
     */
12
    private String description;
13
    /**
14
     * Channel color
15
     */
16
    private String color;
17
    /**
18
     * Channel type
19
     */
20
    private String type;
21
    /**
22
     * Channel user_id
23
     */
24
    private Integer user_id;
25
    /**
26
     * Channel team_id
27
     */
28
    private Integer team_id;
29
    /**
30
     * Channel slug
31
     */
32
    private String slug;
33
34
    /**
35
     * Channel Owner
36
     */
37
    private User owner;
38
39
    /**
40
     * Channel Notification Meta
41
     */
42
    private String notification_meta;
43
44
    /**
45
     * Channel is_private
46
     */
47
    private String is_private;
48
49
    /**
50
     * Channel Team
51
     */
52
    private Team team;
53
54
    /**
55
     * Return Channel is_private
56
     *
57
     * @return
58
     */
59
    public String getIs_private() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
60
        return is_private;
61
    }
62
63
    /**
64
     * Set Channel is_private
65
     *
66
     * @param is_private
67
     * @return
68
     */
69
    public Channel setIs_private(String is_private) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
70
        this.is_private = is_private;
71
        return this;
72
    }
73
74
    /**
75
     * Get Channel Notification Meta
76
     *
77
     * @return notification_meta
78
     */
79
    public String getNotification_meta() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
80
        return notification_meta;
81
    }
82
83
    /**
84
     * Set Channel Notification Meta
85
     *
86
     * @param notification_meta
87
     * @return
88
     */
89
    public Channel setNotification_meta(String notification_meta) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
90
        this.notification_meta = notification_meta;
91
        return this;
92
    }
93
94
    /**
95
     * Channel Owner
96
     *
97
     * @return User
98
     */
99
    public User getOwner() {
100
        return owner;
101
    }
102
103
    /**
104
     * Set Channel Owner
105
     *
106
     * @param owner
107
     * @return
108
     */
109
    public Channel setOwner(User owner) {
110
        this.owner = owner;
111
        return this;
112
    }
113
114
    /**
115
     * Get Channel Name
116
     *
117
     * @return Name
118
     */
119
    public String getName() {
120
        return name;
121
    }
122
123
    /**
124
     * Channel Name
125
     *
126
     * @param name
127
     * @return
128
     */
129
    public Channel setName(String name) {
130
        this.name = name;
131
        return this;
132
    }
133
134
    /**
135
     * Get Channel Description
136
     *
137
     * @return Description
138
     */
139
    public String getDescription() {
140
        return description;
141
    }
142
143
    /**
144
     * Channel Description
145
     *
146
     * @param description
147
     * @return
148
     */
149
    public Channel setDescription(String description) {
150
        this.description = description;
151
        return this;
152
    }
153
154
    /**
155
     * Get Channel Color
156
     *
157
     * @return Color
158
     */
159
    public String getColor() {
160
        return color;
161
    }
162
163
    /**
164
     * Channel Color
165
     *
166
     * @param color
167
     * @return
168
     */
169
    public Channel setColor(String color) {
170
        this.color = color;
171
        return this;
172
    }
173
174
    /**
175
     * Get Channel Type
176
     *
177
     * @return Type
178
     */
179
    public String getType() {
180
        return type;
181
    }
182
183
    /**
184
     * Channel Type
185
     *
186
     * @param type
187
     * @return
188
     */
189
    public Channel setType(String type) {
190
        this.type = type;
191
        return this;
192
    }
193
194
    /**
195
     * Get Channel User_id
196
     *
197
     * @return User_id
198
     */
199
    public Integer getUser_id() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
200
        return user_id;
201
    }
202
203
    /**
204
     * Channel User_id
205
     *
206
     * @param user_id
207
     * @return
208
     */
209
    public Channel setUser_id(Integer user_id) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
210
        this.user_id = user_id;
211
        return this;
212
    }
213
214
    /**
215
     * Get Channel Team_id
216
     *
217
     * @return Team_id
218
     */
219
    public Integer getTeam_id() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
220
        return team_id;
221
    }
222
223
    /**
224
     * Channel Team_id
225
     *
226
     * @param team_id
227
     * @return
228
     */
229
    public Channel setTeam_id(Integer team_id) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
230
        this.team_id = team_id;
231
        return this;
232
    }
233
234
    /**
235
     * Get Channel Slug
236
     *
237
     * @return Slug
238
     */
239
    public String getSlug() {
240
        return slug;
241
    }
242
243
    /**
244
     * Channel Slug
245
     *
246
     * @param slug
247
     * @return
248
     */
249
    public Channel setSlug(String slug) {
250
        this.slug = slug;
251
        return this;
252
    }
253
254
    public Team getTeam() {
255
        return team;
256
    }
257
258
    public Channel setTeam(Team team) {
259
        this.team = team;
260
        return this;
261
    }
262
}
263