Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of adresses, contact details #20

Open
Huda-hl1506743 opened this issue Nov 3, 2021 · 1 comment
Open

List of adresses, contact details #20

Huda-hl1506743 opened this issue Nov 3, 2021 · 1 comment

Comments

@Huda-hl1506743
Copy link

Dear dr, we faced a problem in adding a new customer please give us any hint regarding how to add a list of addresses and a list of contact details how could we implement that in the UI also😣😣

@erradi
Copy link
Collaborator

erradi commented Nov 3, 2021

Customer is class having:
customerId: Int, companyName: String, address: Address, contractDetails: ContactDetails
Address is a class having:
street: String, city: String, country: String
ContactDetails is a class having:
firstName: String, lastName: String, mobile: String, email: String

In your app you will have a customers : List<Customer>. Then you will add/update/delete items from the customers list. Plenty of lecture and lab examples that show you how to do so.
You do NOT need a list of addresses or a list of contact details, you simply need a list of customers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants