I’m new to XIFF and have realized that some changes have been made to the Presence class from the time that the few online samples I have found were written till now.
I see that the static properties AVAILABLE_TYPE and SHOW_NORMAL have been removed.
After some digging I see that the presence type now defaults to available, but I’m not seeing that the show value defaults to normal, just null.
Does null for the show value mean what normal meant in the previous version?
Also, since the presence type defaults to available, it might make sense to add the type back in as a static property and default the value in the constructor to “available” rather than null… that would be less confusing for new developers and would make more sense when you are changing the type through the setter later to use AVAILABLE_TYPE rather than null.
Anyway, great job with this, but wow… documentation sure would be nice