The next requirement in your program is to add support for marking contacts as “Company”. In contact book applications a company is a normal contact card but it creates some convenient functionality compared to how a person contact would appear, like have a single field for name instead of two.
In this demonstration, once a contact is marked as “company”, the app should ignore the lastName field and completely rely on firstName for the name of the company. Also relatedContacts would be the list of employees working within that company, which in that case would be a one-way relationship where employees are added in the company contacts, but not the other way around. Also this list can contain the contacts of companies that do business with each other which then would be a two-way relationship and the contacts would be added for both companies.
See forum comments
This content was released on Oct 17 2023. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.