Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import Foundation
  2. import ObjectMapper
  3.  
  4. class AuthRequest: Mappable {
  5.  
  6. var username: String!
  7. var password: String!
  8.  
  9. required init?(map: Map) {
  10.  
  11. }
  12.  
  13. public init(username: String, password: String) {
  14. self.username = username
  15. self.password = password
  16. }
  17.  
  18. func mapping(map: Map) {
  19. username <- map["username"]
  20. password <- map["password"]
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement