NameType

Slava
2014-02-17
2014-02-18
  • Slava
    Slava
    2014-02-17

    Hi,
    In the version 0.3.6 there was a some fields in the NameType, like FamilyName and GivenName.
    But in the version 0.4 they disappeared. What is their replacement ?

    Same question regarding card ID, there was a method on VCard.getID() but now I don't see it anymore.
    Thanks

     
  • George_H
    George_H
    2014-02-18

    Hi, There have been quite a few changes from 0.3.6 to 0.4, mainly a lot of support for vcard v3. What you are looking for will reside in the NType class. We've changed the naming of the class files so they more resemble the actual VCards.

    Basically all the "Types" in net.sourceforge.cardme.vcard.types package implement an interface in the net.sourceforge.cardme.vcard.features package.

    We need some update tutorials but for now some good full working examples can be found in the test cases provided in the cardme dist zip file. There is a file called TestVCard.java. It has a method called "getFullVCardNoErrors()" it shows how to construct a cardme vcard with all types. (https://sourceforge.net/p/cardme/code/HEAD/tree/trunk/test/net/sourceforge/cardme/TestVCard.java)

    Hope this helps.

     
  • Slava
    Slava
    2014-02-18

    Thanks !!!

     
  • Slava
    Slava
    2014-02-18

    Thanks !!!