Skip to content

Limit with Parameter #75

@kosratdev

Description

@kosratdev

Hi,
How can I use limit with parameters look this example
`@InexactContentUri(

            path = Path.BOOK_QUESTION_TABLE + "/#/"
                    + Path.BOOK_QUESTION_WITH_CHAPTER + "/#/"
                    + Path.BOOK_QUESTION_WITH_LIMIT + "/#",
            name = "BOOK_QUESTION",
            type = "vnd.android.cursor.item/list",
            whereColumn = {ExamTables.BookQuestionColumns.SUBJECT_ID,
                    ExamTables.BookQuestionColumns.CHAPTER},
            limit = "10",
            pathSegment = {1, 3, 5})
    public static Uri withChapterAndLimit(int subjectId, int chapter, int limit) {
        return buildUri(String.valueOf(subjectId), String.valueOf(chapter), String.valueOf(limit));
    }

`
I want to limit list of question by path segment 5?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions