BarCodeObject - ahmed-basyouni/QRParserLib GitHub Wiki

#BarCodeObject

barCodeObject is a well formatted object make dealing with QR codes easier

it contain

  • barObjectType -> an int that represent QR code type

it's value could be

CONTACT_TYPE
CALENDER_TYPE
GEO_TYPE
PHONE_TYPE
SMS_TYPE
TEXT_TYPE
URL_TYPE
EMAIL_TYPE
  • displayValue - > String that represent the value to be displayed in a list for example (contact info Qr code display value is full name)

  • qrType -> String that represent type in words

  • rawValue -> well formatted String for entire data to display in TextView for example

###Custom inner classes

The object contain some custom classes that represent every QR code type

###ArkContact

which contain following fields

    String fullName;
    String firstName;
    String lastName;
    String title;
    String organization;
    String address;
    Date birthday;
    String email;
    String[] phones;
    String[] urls;

###ArkCalender

which contain following fields

    String title;
    String desc;
    String location;
    Date start;
    Date end;

###ArkGeoPoint

which contain following fields

    double lng;
    double lat;

###ArkPhone

which contain following field

    String number;

###ArkSMS

which contain following fields

    String number;
    String message;

###ArkText

which contain following field

    String text;

###ArkUrl

which contain following field

   String url;

###ArkEmail

which contain following fields

    String emailAdress;
    String subject;
    String body;