CleanArchitectureRxSwift icon indicating copy to clipboard operation
CleanArchitectureRxSwift copied to clipboard

Need to add array of item in CoreData class

Open iamitksharma opened this issue 6 years ago • 2 comments

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"} ] }

iamitksharma avatar Sep 06 '18 09:09 iamitksharma

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

sergdort avatar Sep 06 '18 09:09 sergdort

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.

iamitksharma avatar Sep 11 '18 06:09 iamitksharma