Created
March 1, 2017 08:44
-
-
Save PhilippeBoisney/f0c3dc15b29179b8df6b296c6f377d3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension RealmCollection where Element == ListeDeCourseStateEntity { | |
func toModels() -> Array<ListeDeCourseStateModel> { | |
var list: Array<ListeDeCourseStateModel>= Array<ListeDeCourseStateModel>() | |
for value in self { | |
list.append((value as! ListeDeCourseStateEntity).toModel()) | |
} | |
return list | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment