This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from schul-cloud/52-show-courses
course view
- Loading branch information
Showing
36 changed files
with
1,551 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
app/src/main/java/org/schulcloud/mobile/data/model/Content.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.schulcloud.mobile.data.model; | ||
|
||
import io.realm.RealmObject; | ||
|
||
public class Content extends RealmObject{ | ||
public String text; | ||
public String materialId; | ||
} |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/org/schulcloud/mobile/data/model/Contents.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.schulcloud.mobile.data.model; | ||
|
||
import io.realm.RealmObject; | ||
|
||
public class Contents extends RealmObject { | ||
public String component; | ||
public String title; | ||
public Boolean hidden; | ||
public Content content; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/src/main/java/org/schulcloud/mobile/data/model/Times.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.schulcloud.mobile.data.model; | ||
|
||
|
||
import io.realm.RealmModel; | ||
import io.realm.annotations.PrimaryKey; | ||
import io.realm.annotations.RealmClass; | ||
|
||
@RealmClass | ||
public class Times implements RealmModel { | ||
@PrimaryKey | ||
public Integer weekday; | ||
public Integer startTime; | ||
public Integer duration; | ||
public String eventId; | ||
public String room; | ||
} |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/org/schulcloud/mobile/data/model/Topic.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.schulcloud.mobile.data.model; | ||
|
||
import io.realm.RealmList; | ||
import io.realm.RealmObject; | ||
|
||
public class Topic extends RealmObject { | ||
public String _id; | ||
public String name; | ||
public String description; | ||
public String date; | ||
public String time; | ||
public String courseId; | ||
public Boolean hidden; | ||
public RealmList<Contents> contents; | ||
} |
7 changes: 7 additions & 0 deletions
7
app/src/main/java/org/schulcloud/mobile/data/model/responseBodies/FeathersResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.schulcloud.mobile.data.model.responseBodies; | ||
|
||
import java.util.List; | ||
|
||
public class FeathersResponse <T>{ | ||
public List<T> data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.