-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f94170
commit dd17ee0
Showing
63 changed files
with
1,422 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
[ | ||
{ | ||
"order": 1, | ||
"title": "First step", | ||
"description":"Please enter a username and your name", | ||
"fields":[ | ||
{ | ||
"name":"username", | ||
"label":"Username", | ||
"min_size": 4, | ||
"required":true, | ||
"helper_text":"Username must have at least 4 characters", | ||
"type":"text" | ||
}, | ||
{ | ||
"name":"firstName", | ||
"label":"First Name", | ||
"required":true, | ||
"type":"text" | ||
}, | ||
{ | ||
"name":"lastName", | ||
"label":"Last Name", | ||
"required":true, | ||
"type":"text" | ||
} | ||
] | ||
}, | ||
{ | ||
"order": 2, | ||
"title":"Second step", | ||
"description":"Please enter a password", | ||
"fields":[ | ||
{ | ||
"name":"password", | ||
"label":"Password", | ||
"required":true, | ||
"min_size": 6, | ||
"helper_text":"The password must have at least 6 characters.", | ||
"type":"password" | ||
}, | ||
{ | ||
"name":"repeatPassword", | ||
"label":"Repeat Password", | ||
"required":true, | ||
"type":"password", | ||
"should_match": "password" | ||
} | ||
] | ||
}, | ||
{ | ||
"order": 3, | ||
"title":"Third step", | ||
"description":"Please provide some extra contact information", | ||
"fields":[ | ||
{ | ||
"name":"email", | ||
"label":"Email", | ||
"required":true, | ||
"helper_text":"", | ||
"type":"email" | ||
}, | ||
{ | ||
"name":"phone", | ||
"label":"Phone Number", | ||
"required":false, | ||
"helper_text":"", | ||
"type":"phone" | ||
}, | ||
{ | ||
"name":"organization", | ||
"label":"Organization", | ||
"required":false, | ||
"helper_text":"", | ||
"type":"text" | ||
}, | ||
{ | ||
"name":"gender", | ||
"label":"Gender", | ||
"required":false, | ||
"helper_text":"", | ||
"type":"text" | ||
}, | ||
{ | ||
"name":"age", | ||
"label":"Age", | ||
"required":false, | ||
"helper_text":"", | ||
"type":"number" | ||
}, | ||
{ | ||
"name":"job", | ||
"label":"Job", | ||
"required":false, | ||
"helper_text":"", | ||
"type":"text" | ||
} | ||
] | ||
} | ||
] |
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
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
4 changes: 1 addition & 3 deletions
4
.../main/java/org/digitalcampus/oppiamobile/data/course/repository/CourseRemoteDataSource.kt
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
package org.digitalcampus.oppiamobile.data.course.repository | ||
|
||
import org.digitalcampus.oppiamobile.data.course.remote.CourseRemoteService | ||
import org.digitalcampus.oppiamobile.data.user.remote.auth.AuthRemoteService | ||
import javax.inject.Inject | ||
|
||
class CourseRemoteDataSource @Inject constructor(private val courseRemoteService: CourseRemoteService) { | ||
} | ||
class CourseRemoteDataSource @Inject constructor(private val courseRemoteService: CourseRemoteService) |
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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/org/digitalcampus/oppiamobile/data/user/db/dao/UserCustomFieldDao.kt
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,14 @@ | ||
package org.digitalcampus.oppiamobile.data.user.db.dao | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Query | ||
import androidx.room.Transaction | ||
import org.digitalcampus.oppiamobile.data.config.db.BaseDao | ||
import org.digitalcampus.oppiamobile.data.user.db.entity.UserCustomFieldEntity | ||
|
||
@Dao | ||
interface UserCustomFieldDao : BaseDao<UserCustomFieldEntity> { | ||
@Transaction | ||
@Query("SELECT * FROM user_custom_field WHERE user_id = :userId") | ||
fun getUserCustomFields(userId: Long): UserCustomFieldEntity | ||
} |
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.