mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-22 07:58:20 -05:00
Force VerseContent to take in a non-null verse
This commit is contained in:
parent
f9f8ea929f
commit
d74b684620
@ -8,11 +8,11 @@ import org.crosswire.jsword.passage.Verse
|
|||||||
import java.util.ArrayList
|
import java.util.ArrayList
|
||||||
|
|
||||||
//TODO: JSON Streaming parsing? http://instagram-engineering.tumblr.com/post/97147584853/json-parsing
|
//TODO: JSON Streaming parsing? http://instagram-engineering.tumblr.com/post/97147584853/json-parsing
|
||||||
class VerseContent(v: Verse?) {
|
class VerseContent(v: Verse) {
|
||||||
var id = v?.getOrdinal() ?: 0
|
var id = v.getOrdinal()
|
||||||
var bookName = v?.getName() ?: ""
|
var bookName = v.getName()
|
||||||
var chapter = v?.getChapter() ?: 0
|
var chapter = v.getChapter()
|
||||||
var verseNum = v?.getVerse() ?: 0
|
var verseNum = v.getVerse()
|
||||||
var content = ""
|
var content = ""
|
||||||
var chapterTitle = ""
|
var chapterTitle = ""
|
||||||
var paraTitle = ""
|
var paraTitle = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user