spiegel-keyman/ios/engine/KMEI/KeymanEngine/Classes/Model/Options.swift
2017-11-07 10:58:01 +07:00

30 lines
640 B
Swift

//
// Options.swift
// KeymanEngine
//
// Created by Gabriel Wong on 2017-10-24.
// Copyright © 2017 SIL International. All rights reserved.
//
import Foundation
/// Options object for Keyman Cloud API 4.0.
public struct Options: Codable {
/// For filtering API calls.
public enum Device: String, Codable {
case iphone
case ipad
case any
}
/// Base URL for keyboard filenames.
public let keyboardBaseURL: URL
/// Base URL for font filenames.
public let fontBaseURL: URL
public enum CodingKeys: String, CodingKey {
case keyboardBaseURL = "keyboardBaseUri"
case fontBaseURL = "fontBaseUri"
}
}