File tree Expand file tree Collapse file tree 1 file changed +7
-28
lines changed
app/src/main/java/ai/elimu/content_provider/room/entity Expand file tree Collapse file tree 1 file changed +7
-28
lines changed Original file line number Diff line number Diff line change 1- package ai.elimu.content_provider.room.entity ;
1+ package ai.elimu.content_provider.room.entity
22
3- import androidx.annotation.NonNull;
4- import androidx.room.Entity;
5-
6- import ai.elimu.model.v2.enums.content.ImageFormat;
3+ import ai.elimu.model.v2.enums.content.ImageFormat
4+ import androidx.room.Entity
75
86/* *
9- * For documentation, see <a href=" https://github.com/elimu-ai/webapp/tree/main/src/main/java/ai/elimu/model">model</a>
7+ * For documentation, see [model]( https://github.com/elimu-ai/webapp/tree/main/src/main/java/ai/elimu/model)
108 */
119@Entity
12- public class Image extends Content {
13-
14- @NonNull
15- private String title;
16-
17- @NonNull
18- private ImageFormat imageFormat;
19-
20- public String getTitle() {
21- return title;
22- }
23-
24- public void setTitle(String title) {
25- this .title = title;
26- }
27-
28- public ImageFormat getImageFormat() {
29- return imageFormat;
30- }
10+ class Image : Content () {
11+ lateinit var title: String
3112
32- public void setImageFormat(ImageFormat imageFormat) {
33- this .imageFormat = imageFormat;
34- }
13+ lateinit var imageFormat: ImageFormat
3514}
You can’t perform that action at this time.
0 commit comments