-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRestaurant.swift
44 lines (36 loc) · 897 Bytes
/
Restaurant.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// Restaurant.swift
// Atucasa.com
//
// Created by Administrator on 5/24/15.
// Copyright (c) 2015 iss. All rights reserved.
//
import Foundation
import UIKit
import ObjectMapper
class Restaurant: Mappable {
var name : String!
var foodtype: String!
var schedule: String!
var status: String!
var imageid: String!
var address : String!
var phone : String!
/*init(name: String, address: String, phone: String ){
self.name = name
self.address = address
self.phone = phone
}*/
required init?(_ map: Map) {
mapping(map)
}
func mapping(map: Map) {
name <- map["name"]
foodtype <- map["foodtype"]
schedule <- map["schedule"]
status <- map["status"]
imageid <- map["imageid"]
address <- map["address"]
phone <- map["phone"]
}
}