Skip to content

Instantly share code, notes, and snippets.

@FitzAfful
Created April 18, 2020 00:32
Show Gist options
  • Save FitzAfful/774004dec45cf968796963791b30a40d to your computer and use it in GitHub Desktop.
Save FitzAfful/774004dec45cf968796963791b30a40d to your computer and use it in GitHub Desktop.
import Foundation
class EmployeesEvent: NSObject {
var error: Bool
var errorMessage: String?
var employees: [Employee]?
init(error: Bool, errorMessage: String? = nil, employees: [Employee]? = nil) {
self.error = error
self.errorMessage = errorMessage
self.employees = employees
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment