Class MECardQRCode


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

      • MECardQRCode

        public MECardQRCode​(java.lang.String name,
                            java.lang.String firstName,
                            java.lang.String lastName,
                            java.lang.String nickname,
                            java.lang.String email,
                            java.lang.String contactPrimary,
                            java.lang.String contactSecondary,
                            java.lang.String contactTertiary,
                            java.lang.String website,
                            java.lang.String birthday,
                            java.lang.String notes)
        This object represents a VCF or vCard QR Code. Use null if you don't want to specify an option. 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.
        lastName - Last name.
        nickname - Nickname.
        email - Email.
        contactPrimary - First phone number.
        contactSecondary - Second phone number.
        contactTertiary - Third phone number.
        website - Website.
        birthday - Birthday.
        notes - Notes.
    • Method Detail

      • getLastName

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

        public void setLastName​(java.lang.String lastName)
        Parameters:
        lastName - Last name.
      • getNickname

        public java.lang.String getNickname()
        Returns:
        Nickname.
      • setNickname

        public void setNickname​(java.lang.String nickname)
        Parameters:
        nickname - Nickname.
      • getEmail

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

        public void setEmail​(java.lang.String email)
        Parameters:
        email - Email.
      • getContactPrimary

        public java.lang.String getContactPrimary()
        Returns:
        Phone number.
      • setContactPrimary

        public void setContactPrimary​(java.lang.String contactPrimary)
        Parameters:
        contactPrimary - Phone number.
      • getContactSecondary

        public java.lang.String getContactSecondary()
        Returns:
        Second phone number.
      • setContactSecondary

        public void setContactSecondary​(java.lang.String contactSecondary)
        Parameters:
        contactSecondary - Second phone number.
      • getContactTertiary

        public java.lang.String getContactTertiary()
        Returns:
        Third phone number.
      • setContactTertiary

        public void setContactTertiary​(java.lang.String contactTertiary)
        Parameters:
        contactTertiary - Third phone number.
      • getWebsite

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

        public void setWebsite​(java.lang.String website)
        Parameters:
        website - Website.
      • getBirthday

        public java.lang.String getBirthday()
        Returns:
        Birthday.
      • setBirthday

        public void setBirthday​(java.lang.String birthday)
        Parameters:
        birthday - Birthday.
      • getNotes

        public java.lang.String getNotes()
        Returns:
        Notes.
      • setNotes

        public void setNotes​(java.lang.String notes)
        Parameters:
        notes - Notes.
      • 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.