Adding models

This commit is contained in:
2019-07-15 23:06:15 +03:00
parent 719b641557
commit ff31206e2b
3 changed files with 41 additions and 2 deletions
@@ -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"
}
}
@@ -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
}