The story is Burrough's version of the then popular Ruritanian romance exemplified by Anthony Hope's The Prisoner of Zenda and its sequel Rupert of Hentzau.
The main difference between this story and Hope's two books is the portrayal of the rightful king as an actual antagonist to Barney, especially in the second part of the book, where he is as much a villain as Prince Peter and the Austrians.