The following example shows you how to retrieve top 10 received messages. Here you will see how to use class RowRange to specify which rows from result you want to retrieve.