Ejemplo n.º 1
0
        public NoteScripture GetNoteByParseId(long rowId)
        {
            NotesDbAdapter dbHelper;
            dbHelper = new NotesDbAdapter(context);
            dbHelper.Open();

            ICursor note = dbHelper.FetchNote(rowId);

            NoteScripture n = new NoteScripture()
            {
                Id = int.Parse(note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyRowId))),
                Title = note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyScriptureTitle)),
                Scripture = note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyScriptureContent)),
                ScriptureForHighlight = note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyScriptureForHighlight)),
                NoteTitle = note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyTitle)),
                NoteBody = note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyBody)),
                NWTId = note.GetString(note.GetColumnIndex(NotesDbAdapter.KeyNWTId))
            };

            return n;
        }