examsResultsiOS 1.0.0

examsResultsiOS 1.0.0

Daniel Ideriba 维护。



 
依赖于
Alamofire~> 4.8
KeychainSwift~> 13.0
 

  • 作者
  • daniel ideriba

Exams Results iOS

BIO

em iOS 模块化 ios 医疗咨询 Fleury 框架

Info

在执行项目安装之前,必须安装 CocoaPods 仓库。如果没有安装,请按照以下指南操作: CocoaPods 安装

安装

examsResultsiOS 在 CocoaPods 中可用。需要编辑项目根目录下的 Podfile 文件。

pod 'examsResultsiOS', '~> 1.0.0'

接下来,为了运行项目,需要克隆仓库并执行以下命令:

pod repo update && pod install

如何使用

每个查询都必须有一个有效的会话。如果您只有令牌,可以使用:

var apiClient: APIClient!
var sessionLoader: DefaultSessionLoader!
var keychainWrapper: DefaultKeychainWrapper!
var resultsService: ResultsService!
var serviceFactory: ServiceFactory!


let token = Token(accessToken: "1967c721-258d-3f48-b04c-700ae756b4da",  refreshToken: "8005c4c8-49c4-3cd1-add1-2aae97214765")

Session.register(token: token)
Session.register(user: User(id: "VTJGc2RHVmtYMS9DZmhMRnpuZ1VYR2tub1FMVlRmMW1HOWpYWXZGUVQ3bz0=", name: "Bob Sponja", cpf: "315.942.150-30", username: "username", gender: .male, birthday: Date(), clientID: "19721843"))

resultsService = DefaultResultsService(apiClient: apiClient, sessionLoader: sessionLoader)

//Detalhes de resultados
//resultID é id_fichas
resultsService.fetchDetails(resultID: "4601701558") { _ in }

//todos os resultados
resultsService.fetchResults(limit: 1, offset: 1) { _ in }

//Resultados com items
let result = Record(clientID: 0, date: "invalid", record: "1000664512", recordID: 0, unity: Unity(id: 0, name: "invalid"), itemsCount: 0, items: [], formattedDate: "20/12/2019")
resultsService.fetchResultsItems(record: result) { _ in }

作者

[email protected]

许可证

examsResultsiOS开源许可协议为MIT。更多信息,请参阅LICENSE文件。