Adding models
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// MealMapResult.swift
|
||||
// Lemuria
|
||||
//
|
||||
// Created by Jura on 7/15/19.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct MealMapResult: Decodable {
|
||||
|
||||
//let requestId: Int
|
||||
let id: Int
|
||||
let name: String
|
||||
let shortName: String
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id = "ourid"
|
||||
case name
|
||||
case shortName = "nameshort"
|
||||
}
|
||||
|
||||
}
|
||||
+3
-2
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SearchResultOperator.swift
|
||||
// OperatorMapResult.swift
|
||||
// Lemuria
|
||||
//
|
||||
// Created by Juraldinio on 15/07/2019.
|
||||
@@ -8,8 +8,9 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
struct SearchResultOperator: Decodable {
|
||||
struct OperatorMapResult: Decodable {
|
||||
|
||||
//let requestId: Int
|
||||
let operatorId: Int
|
||||
let status: Int
|
||||
let name: String
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// TourMapResult.swift
|
||||
// Lemuria
|
||||
//
|
||||
// Created by Jura on 7/15/19.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct TourMapResult: Decodable {
|
||||
|
||||
let id: String
|
||||
let name: String
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user