File tree Expand file tree Collapse file tree
android/src/main/java/com/youversion/reactnativesdk/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,14 +27,13 @@ object YVPBibleApi {
2727 }
2828
2929 suspend fun chapter (bibleReference : BibleReferenceRecord , context : Context ): String {
30- val response = BibleVersionRepository (context).chapter(
31- reference = BibleReference (
32- versionId = bibleReference.versionId,
33- bookUSFM = bibleReference.bookUSFM,
34- chapter = bibleReference.chapter,
35- )
30+ val passageId = bibleReference.bookUSFM + " ." + bibleReference.chapter.toString()
31+
32+ val response = YouVersionApi .bible.passage(
33+ versionId = bibleReference.versionId,
34+ passageId = passageId
3635 )
3736
38- return response
37+ return response.content
3938 }
4039}
Original file line number Diff line number Diff line change @@ -23,23 +23,23 @@ data class YouVersionVerseOfTheDayRecord(
2323
2424data class LanguageRecord (
2525 @Field
26- val id : String ,
26+ val id : String? ,
2727 @Field
28- val language : String ,
28+ val language : String? ,
2929 @Field
3030 val script : String? ,
3131 @Field
3232 val scriptName : String? ,
3333 @Field
34- val aliases : List <String >,
34+ val aliases : List <String >? ,
3535 @Field
36- val displayNames : Map <String , String >,
36+ val displayNames : Map <String , String >? ,
3737 @Field
38- val scripts : List <String >,
38+ val scripts : List <String >? ,
3939 @Field
40- val variants : List <String >,
40+ val variants : List <String >? ,
4141 @Field
42- val countries : List <String >,
42+ val countries : List <String >? ,
4343 @Field
4444 val textDirection : String ,
4545 @Field
You can’t perform that action at this time.
0 commit comments