Skip to content

Commit

Permalink
feat: voice and banner instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Archdoog committed Apr 18, 2024
1 parent 991329d commit 74cb62e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apple/Sources/OSRM/Models/BannerContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,12 @@ import Foundation
#endif

public struct BannerContent: Codable, Hashable {
<<<<<<< HEAD
public var text: String
=======
public var text: String?
>>>>>>> 1e308f0f8fdd74de7727c77ec1ca9967b4af17e1
public var type: String?
public var modifier: String?
public var components: [BannerContentComponentsInner]?

<<<<<<< HEAD
public init(text: String, type: String? = nil, modifier: String? = nil, components: [BannerContentComponentsInner]? = nil) {
=======
public init(text: String? = nil, type: String? = nil, modifier: String? = nil, components: [BannerContentComponentsInner]? = nil) {
>>>>>>> 1e308f0f8fdd74de7727c77ec1ca9967b4af17e1
self.text = text
self.type = type
self.modifier = modifier
Expand All @@ -42,11 +34,7 @@ public struct BannerContent: Codable, Hashable {

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
<<<<<<< HEAD
try container.encode(text, forKey: .text)
=======
try container.encodeIfPresent(text, forKey: .text)
>>>>>>> 1e308f0f8fdd74de7727c77ec1ca9967b4af17e1
try container.encodeIfPresent(type, forKey: .type)
try container.encodeIfPresent(modifier, forKey: .modifier)
try container.encodeIfPresent(components, forKey: .components)
Expand Down

0 comments on commit 74cb62e

Please sign in to comment.