This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import UIKit | |
| import Swifter | |
| import WebKit | |
| public enum BLTPaymentViewControllerError: Error, LocalizedError { | |
| case orderTokenNotFound | |
| case resourceNotFound(_ resourcesName: String) | |
| case javaScriptError(_ errorMessage: String) | |
| case httpResponseError(statusCode: Int) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ArticlePhygitalDetail | |
| { | |
| ArticleReference[] AutresReferences { get; set; } | |
| EmplacementMagasin EmplacementStockMagasin { get; set; } | |
| ArticlePhygitalDimensions Dimensions { get; set; } | |
| ArticlePhygitalTaxe[] Taxes { get; set; } | |
| ArticlePhygitalBase Parent { get; set; } | |
| ArticleDispoDigiSign[] Disponibilites { get; set; } | |
| ArticlePhygitalVersion[] Instances { get; set; } | |
| String[] Documents { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Database: NSObject { | |
| @objc static let shared = Database() | |
| private let schemaVersion: UInt64 = 1 // In the prod version this value was incremented. | |
| static var realm: Realm? { | |
| do { | |
| let realm = try Realm() | |
| return realm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension STRechabilityError: LocalizedError { | |
| var errorDescription: String? { | |
| switch self { | |
| case .noInternetConnection: return "There is no internet connection" | |
| } | |
| } | |
| } | |
| extension STAuthenticationError: LocalizedError { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let layer = MGLSymbolStyleLayer(identifier: identifier, source: source) | |
| layer.iconOffset = NSExpression(forConstantValue: CGVector(dx: 0, dy: 0)) |
OlderNewer