ements and can run on an inexpensive Raspberry Pi. Save your machine energy!

Open Source

It's all on GitHub! Join us by contributing to make this project even better. Don't be shy to be a contributor!

paiai_ios - Gogs: Go Git Service

Aucune description

StatusModel.swift 628B

    // // StatusModel.swift // PaiAi // // Created by FFIB on 2017/10/10. // Copyright © 2017年 yb. All rights reserved. // import Foundation import ObjectMapper struct StatusModel { var status = 0 var message = "" var description = "" init(json: [String: AnyObject]) { self.init(map: Map(mappingType: .fromJSON, JSON: json)) } } extension StatusModel: Mappable { init(map: Map) { mapping(map: map) } mutating func mapping(map: Map) { status <- map["status"] message <- map["message"] description <- map["description"] } }