This file contains hidden or 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
| { | |
| "message" : "", | |
| "status" : 1, | |
| "data" : { | |
| "uid" : "XXX-XXX-XXX", | |
| "surname" : "Ramazanov", | |
| "username" : "Rashid", | |
| "email" : "rashid.ramazanov@gmail.com", | |
| "name" : "Rashid", | |
| } |
This file contains hidden or 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
| import Foundation | |
| struct Coupon: Decodable { | |
| var id: String = "" | |
| var name: String = "" | |
| var no: String = "" | |
| var isOpen: Bool = false | |
| var matches: [PMatches] = [] // PMatches is also a decodable struct. | |
This file contains hidden or 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
| import Foundation | |
| struct User: Decodable { | |
| var username: String? | |
| var name: String? | |
| var surname: String? | |
| var email: String? | |
| var uid: String? | |
This file contains hidden or 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
| // | |
| // Created by Rashid Ramazanov on 18/01/2017. | |
| // Converted from Java snippet in https://en.wikipedia.org/wiki/Vehicle_identification_number#Example_Code | |
| // | |
| import Foundation | |
| extension String { | |
| var isValidChassisNo: Bool { |
NewerOlder