using DynamicBibleUtility.Geolocation;
namespace DynamicBible.DataPreparation.Models.Geolocation;
///
/// A reference to a Bible verse including a book, chapter, and verse.
///
public class BibleVerseReference
{
/// The book of the Bible.
public BibleBook? Book = null;
/// The chapter number within the book.
public int Chapter = 0;
/// The verse number within the book.
public int Verse = 0;
///
/// Converts the verse reference to the canonical string form
/// for the Dynamic Bible app. This form has the numeric book,
/// chapter, and verse in a single colon-separated string.
///
/// The canonical short string form of the verse reference.
public override string ToString()
{
var book_number = Convert.ToInt32(Book?.Id);
var short_reference_string = $"{book_number}:{Chapter}:{Verse}";
return short_reference_string;
}
}