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

Need to add array of item in CoreData class #51

Open
iamitksharma opened this issue Sep 6, 2018 · 2 comments
Open

Need to add array of item in CoreData class #51

iamitksharma opened this issue Sep 6, 2018 · 2 comments

Comments

@iamitksharma
Copy link

iamitksharma commented Sep 6, 2018

I have conversation service response that contain array of message. Need to added that functionality in CDModelName+Ext.swift to store chat messages.

While adding array I am getting error "Value of type '[Message]' has no member 'sync' "

Response for conversation is something like that
{
id : 1,
message : [
{id:12, message:"test1"},
{id:13, message: "test2"}
]
}

@sergdort
Copy link
Owner

sergdort commented Sep 6, 2018

I guess you can sync them one by one or implement a functions similar to this that can sync array of items

@iamitksharma
Copy link
Author

Thanks for response. Can you share some sample code. In your sample code, code is there but I am not able to debug because that is not used in your application.

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