implement PlayerPurpose as enum instead of int constants based on
https://github.com/Happy-Neko/ps3mediaserver/commit/3d2c77e4df2355f36da18de6041e1f6f65ac6e36