presence_type_cmp_availability
Description:
[ Version ( since = "0.7.16" ) ]
public static int presence_type_cmp_availability (ConnectionPresenceType p1, ConnectionPresenceType p2)
public static int presence_type_cmp_availability (ConnectionPresenceType p1, ConnectionPresenceType p2)
Compares p1
and p2
like strcmp
.
p1
> p2
means p1
is more available than p2
.
The order used is: available > busy > away > xa > hidden > offline > error > unknown > unset
Parameters:
p1 | |
p2 |
Returns:
-1, 0 or 1, if |