0.2.5 initial commit

Makefile incomplete
This commit is contained in:
Aiden McClelland
2020-11-23 13:44:28 -07:00
commit 95d3845906
503 changed files with 53448 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { HttpService } from '../http.service'
import { AppModel } from '../../models/app-model'
import { MockApiService } from './mock-api.service'
import { LiveApiService } from './live-api.service'
import { ServerModel } from 'src/app/models/server-model'
import { ConfigService } from '../config.service'
export function ApiServiceFactory (config: ConfigService, http: HttpService, appModel: AppModel, serverModel: ServerModel) {
if (config.api.useMocks) {
return new MockApiService(appModel, serverModel)
} else {
return new LiveApiService(http, appModel, serverModel)
}
}