Total Complexity | 14 |
Total Lines | 166 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | package com.base.Models; |
||
3 | public class Team extends BaseModel { |
||
4 | |||
5 | |||
6 | /* |
||
7 | * Team name |
||
8 | */ |
||
9 | |||
10 | private String name; |
||
11 | /* |
||
12 | * Team description |
||
13 | */ |
||
14 | |||
15 | private String description; |
||
16 | /* |
||
17 | * Team invitation_code |
||
18 | */ |
||
19 | |||
20 | private String invitation_code; |
||
21 | /* |
||
22 | * Team user_id |
||
23 | */ |
||
24 | |||
25 | private String user_id; |
||
26 | /* |
||
27 | * Team slug |
||
28 | */ |
||
29 | |||
30 | private String slug; |
||
31 | |||
32 | /** |
||
33 | * Team Owner |
||
34 | */ |
||
35 | private User owner; |
||
36 | |||
37 | /** |
||
38 | * Team Picture |
||
39 | */ |
||
40 | private Media picture; |
||
41 | |||
42 | /** |
||
43 | * Team Owner |
||
44 | * |
||
45 | * @return User |
||
46 | */ |
||
47 | public User getOwner() { |
||
48 | return owner; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Set Owner of Team |
||
53 | * |
||
54 | * @param owner |
||
55 | * @return |
||
56 | */ |
||
57 | public Team setOwner(User owner) { |
||
58 | this.owner = owner; |
||
59 | return this; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Return User Name |
||
64 | * |
||
65 | * @return Name |
||
66 | */ |
||
67 | public String getName() { |
||
68 | return name; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * User Name |
||
73 | * |
||
74 | * @param name |
||
75 | * @return |
||
76 | */ |
||
77 | public Team setName(String name) { |
||
78 | this.name = name; |
||
79 | return this; |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * Return User Description |
||
84 | * |
||
85 | * @return Description |
||
86 | */ |
||
87 | public String getDescription() { |
||
88 | return description; |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * User Description |
||
93 | * |
||
94 | * @param description |
||
95 | * @return |
||
96 | */ |
||
97 | public Team setDescription(String description) { |
||
98 | this.description = description; |
||
99 | return this; |
||
100 | } |
||
101 | |||
102 | /** |
||
103 | * Return User Invitation_code |
||
104 | * |
||
105 | * @return Invitation_code |
||
106 | */ |
||
107 | public String getInvitation_code() { |
||
|
|||
108 | return invitation_code; |
||
109 | } |
||
110 | |||
111 | /** |
||
112 | * User Invitation_code |
||
113 | * |
||
114 | * @param invitation_code |
||
115 | * @return |
||
116 | */ |
||
117 | public Team setInvitation_code(String invitation_code) { |
||
118 | this.invitation_code = invitation_code; |
||
119 | return this; |
||
120 | } |
||
121 | |||
122 | /** |
||
123 | * Return User User_id |
||
124 | * |
||
125 | * @return User_id |
||
126 | */ |
||
127 | public String getUser_id() { |
||
128 | return user_id; |
||
129 | } |
||
130 | |||
131 | /** |
||
132 | * User User_id |
||
133 | * |
||
134 | * @param user_id |
||
135 | * @return |
||
136 | */ |
||
137 | public Team setUser_id(String user_id) { |
||
138 | this.user_id = user_id; |
||
139 | return this; |
||
140 | } |
||
141 | |||
142 | /** |
||
143 | * Return User Slug |
||
144 | * |
||
145 | * @return Slug |
||
146 | */ |
||
147 | public String getSlug() { |
||
148 | return slug; |
||
149 | } |
||
150 | |||
151 | /** |
||
152 | * User Slug |
||
153 | * |
||
154 | * @param slug |
||
155 | * @return |
||
156 | */ |
||
157 | public Team setSlug(String slug) { |
||
158 | this.slug = slug; |
||
159 | return this; |
||
160 | } |
||
161 | |||
162 | public Media getPicture() { |
||
163 | return picture; |
||
164 | } |
||
165 | |||
166 | public Team setPicture(Media picture) { |
||
167 | this.picture = picture; |
||
168 | return this; |
||
169 | } |
||
171 |