30 lines
735 B
Swift
30 lines
735 B
Swift
//
|
|
// ServerData.swift
|
|
// CarController
|
|
//
|
|
// Created by Michael Pivato on 13/4/20.
|
|
// Copyright © 2020 Michael Pivato. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
final class ServerData: ObservableObject{
|
|
|
|
// TODO: Find a way to save/represent this stuff in iOS settings (user can access via settings app).
|
|
// Then load the below values ar runtime, from settings.
|
|
|
|
|
|
@Published var port: Int = 50051
|
|
@Published var grpcPort: Int = 50050
|
|
@Published var host: String = "10.0.0.53"
|
|
|
|
func load(){
|
|
// Load the server values from settings, if they had been
|
|
// previously saved.
|
|
}
|
|
|
|
func save(){
|
|
// Save the current state to be remembered for next time.
|
|
}
|
|
}
|