Skip to content

Instantly share code, notes, and snippets.

@PhilippeBoisney
Created March 1, 2017 08:46
Show Gist options
  • Save PhilippeBoisney/e2f164eb4a562c21a6434b7da9260a55 to your computer and use it in GitHub Desktop.
Save PhilippeBoisney/e2f164eb4a562c21a6434b7da9260a55 to your computer and use it in GitHub Desktop.
static func toModels(entities: Results<ListeDeCourseStateEntity>) -> Array<ListeDeCourseStateModel> {
var list: Array<ListeDeCourseStateModel> = Array<ListeDeCourseStateModel>()
for entity in entities {
list.append(entity.toModel())
}
return list
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment