Force VerseContent to take in a non-null verse

This commit is contained in:
Bradlee Speice 2014-09-14 16:30:12 -04:00
parent f9f8ea929f
commit d74b684620

View File

@ -8,11 +8,11 @@ import org.crosswire.jsword.passage.Verse
import java.util.ArrayList
//TODO: JSON Streaming parsing? http://instagram-engineering.tumblr.com/post/97147584853/json-parsing
class VerseContent(v: Verse?) {
var id = v?.getOrdinal() ?: 0
var bookName = v?.getName() ?: ""
var chapter = v?.getChapter() ?: 0
var verseNum = v?.getVerse() ?: 0
class VerseContent(v: Verse) {
var id = v.getOrdinal()
var bookName = v.getName()
var chapter = v.getChapter()
var verseNum = v.getVerse()
var content = ""
var chapterTitle = ""
var paraTitle = ""