sow-and-sub-paginated
Including the basic AMPS library:
using AMPS.Client;
using AMPS.Client.Message;
using AMPS.Client.Exceptions;
Constructing the command:
Command cmd = new Command(Message.Commands.SOWAndDeltaSubscribe)
.setTopic(topic)
.setOrderBy("/id DESC")
.setOptions(Message.Options.TopN(20) +
Message.Options.SkipN(30) +
Message.Options.OOF +
Message.Options.NoEmpties)
;
The command can now be used in execute or executeAsync.