Oculus Quest Controllers Battery Levels

Sorry to necro an old post. I’m a bit of novice with c++. Would someone be able to explain in more detail how to use that logic to read the battery levels? I have put that logic into a function on a custom class but don’t understand how to get information from that ovrpResult.

Regards, Matthew