There are 2 cases. evt.boolResponse stores the value of the response from IsGenuine(). True means it's genuine. False means it's not genuine. Error != null Means some other error occurred (which you should handle as not genuine).
Hi,
Sorry, if I missed that, but it seems there is no official documentation for function calls and return. Also, there is no example in the tutorials
I'm developing on Air and am actually implementing the isGenuine function. And I'm not sure about the return event values. It is also hard to test this one, as I'll have to revoke keys multiple time and will eventually run out as I'm using the free package for alpha testing. So I just want to make sure I'm doing it correctly.
So when calling isGenuine, it is returning an event.If ErrorObj == null, I need to check the boolResponse. If true, it is genuine. If false, the key has been revoked. I suppose the next time I call isActivated I'll get a negative response. So the user have to reactivate with a new key.
If ErrorObj != null, the call to your server didn't work. So it is not actually revoked. I'll show a message with the actual ErrorObj string.
Just to be clear, there is 3 case :Genuine : Error == null && boolResponse == true;Revoked : Error == null && boolResponse == false;cantVerify : Error != null
Am I missing something ?
There are 2 cases. evt.boolResponse stores the value of the response from IsGenuine(). True means it's genuine. False means it's not genuine. Error != null Means some other error occurred (which you should handle as not genuine).