\api\gcm made object-based