Class VCardQRCode


  • public class VCardQRCode
    extends QRCode
    This class is a subclass of QRCode and is used to generate a vCard QR-code element
    • Constructor Detail

      • VCardQRCode

        public VCardQRCode​(java.lang.String name,
                           java.lang.String firstName,
                           java.lang.String lastName,
                           java.lang.String email,
                           java.lang.String website)
        This object represents a VCF or vCard QR Code. Styling options can be set with the setter functions of the upper class.
        Parameters:
        name - Name of this code for the tag.
        firstName - First name for the card.
        lastName - Last name for the card.
        email - Email for the card.
        website - Website for the card.
    • Method Detail

      • getFirstName

        public java.lang.String getFirstName()
        Returns:
        First name for the card.
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Parameters:
        firstName - First name for the card.
      • getLastName

        public java.lang.String getLastName()
        Returns:
        Last name for the card.
      • setLastName

        public void setLastName​(java.lang.String lastName)
        Parameters:
        lastName - Last name for the card.
      • getEmail

        public java.lang.String getEmail()
        Returns:
        Email for the card.
      • setEmail

        public void setEmail​(java.lang.String email)
        Parameters:
        email - Email for the card.
      • getWebsite

        public java.lang.String getWebsite()
        Returns:
        Website for the card.
      • setWebsite

        public void setWebsite​(java.lang.String website)
        Parameters:
        website - Website for the card.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Overrides:
        getJSON in class QRCode
        Returns:
        JSONObject with the tags for this element for the Cloud Office Print server.