Class UserInfoServerClient

java.lang.Object
com.vaadin.copilot.CopilotServerClient
com.vaadin.copilot.userinfo.UserInfoServerClient

public class UserInfoServerClient extends CopilotServerClient
  • Constructor Details

    • UserInfoServerClient

      public UserInfoServerClient()
  • Method Details

    • getUserInfoWithLocalProKey

      public static UserInfo getUserInfoWithLocalProKey()
      Requests to Copilot Server to get user information with local pro key if present
      Returns:
      Returns null when pro key not exist or when request is not succeeded.
    • throwIfAIUsageDisabled

      public static void throwIfAIUsageDisabled()
      Throws a AIUsageDisabledException if data cannot leave localhost.