Class CustomerIntent

    • Field Detail

      • ACTION_CUSTOMER_SERVICE

        public static final String ACTION_CUSTOMER_SERVICE
        Service action: bind to the customer service.
        See Also:
        Constant Field Values
      • ACTION_CUSTOMER_UPDATE

        public static final String ACTION_CUSTOMER_UPDATE
        Broadcast action: indicates the local version of a customer has been updated from the server.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomerIntent

        public CustomerIntent()
    • Method Detail

      • getAccount

        public static Account getAccount​(Intent intent)
        Extract the Account from the given intent's extras Bundle.
        Parameters:
        intent - An intent.
        Returns:
        An Account, or null if the account extra is not present.
      • getVersion

        public static int getVersion​(Intent intent)
        Extract the version from the given intent's extras Bundle.
        Parameters:
        intent - An intent.
        Returns:
        An int, or 1 if the version extra is not present.
      • getCustomerId

        public static String getCustomerId​(Intent intent)
        Extract the customer id from the given intent's extras Bundle.
        Parameters:
        intent - An intent.
        Returns:
        A String,