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

com.base.Models.Thread.getChannel()   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 Thread extends BaseModel {
4
5
    /*
6
     *  Thread subject
7
     */
8
    private String subject;
9
    /*
10
     *  Thread description
11
     */
12
    private String description;
13
    /*
14
     *  Thread user_id
15
     */
16
    private String user_id;
17
    /*
18
     *  Thread channel_id
19
     */
20
    private String channel_id;
21
    /*
22
     *  Thread slug
23
     */
24
    private String slug;
25
26
    /**
27
     * Thread Owner
28
     */
29
    private User owner;
30
31
    /**
32
     * Thread Channel
33
     */
34
    private Channel channel;
35
36
    /**
37
     * Get Thread Owner
38
     *
39
     * @return User
40
     */
41
    public User getOwner() {
42
        return owner;
43
    }
44
45
    /**
46
     * Set Thread Owner
47
     *
48
     * @param owner
49
     * @return
50
     */
51
    public Thread setOwner(User owner) {
52
        this.owner = owner;
53
        return this;
54
    }
55
56
    /**
57
     * Return Thread Subject
58
     *
59
     * @return Subject
60
     */
61
    public String getSubject() {
62
        return subject;
63
    }
64
65
    /**
66
     * Thread Subject
67
     *
68
     * @param subject
69
     * @return
70
     */
71
    public Thread setSubject(String subject) {
72
        this.subject = subject;
73
        return this;
74
    }
75
76
    /**
77
     * Return Thread Description
78
     *
79
     * @return Description
80
     */
81
    public String getDescription() {
82
        return description;
83
    }
84
85
    /**
86
     * Thread Description
87
     *
88
     * @param description
89
     * @return
90
     */
91
    public Thread setDescription(String description) {
92
        this.description = description;
93
        return this;
94
    }
95
96
    /**
97
     * Return Thread User_id
98
     *
99
     * @return User_id
100
     */
101
    public String 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...
102
        return user_id;
103
    }
104
105
    /**
106
     * Thread User_id
107
     *
108
     * @param user_id
109
     * @return
110
     */
111
    public Thread setUser_id(String 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...
112
        this.user_id = user_id;
113
        return this;
114
    }
115
116
    /**
117
     * Return Thread Channel_id
118
     *
119
     * @return Channel_id
120
     */
121
    public String getChannel_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...
122
        return channel_id;
123
    }
124
125
    /**
126
     * Thread Channel_id
127
     *
128
     * @param channel_id
129
     * @return
130
     */
131
    public Thread setChannel_id(String channel_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...
132
        this.channel_id = channel_id;
133
        return this;
134
    }
135
136
    /**
137
     * Return Thread Slug
138
     *
139
     * @return Slug
140
     */
141
    public String getSlug() {
142
        return slug;
143
    }
144
145
    /**
146
     * Thread Slug
147
     *
148
     * @param slug
149
     * @return
150
     */
151
    public Thread setSlug(String slug) {
152
        this.slug = slug;
153
        return this;
154
    }
155
156
    public Channel getChannel() {
157
        return channel;
158
    }
159
160
    public Thread setChannel(Channel channel) {
161
        this.channel = channel;
162
        return this;
163
    }
164
}
165