| 57 | } |
| 58 | |
| 59 | Result<std::shared_ptr<spvr::SpvrDevice>, spvr::SpvrApiError> GrDeviceManager::UpdateUsedTime(int period) { |
| 60 | auto host = settings_->GetSpvrServerHost(); |
| 61 | auto port = settings_->GetSpvrServerPort(); |
| 62 | auto appkey = grApp->GetAppkey(); |
| 63 | auto device_id = settings_->GetDeviceId(); |
| 64 | auto r = spvr::SpvrDeviceApi::UpdateUsedTime(host, port, appkey, device_id, period); |
| 65 | return r; |
| 66 | } |
| 67 | |
| 68 | Result<std::shared_ptr<spvr::SpvrDevice>, spvr::SpvrApiError> GrDeviceManager::QueryDevice(const std::string& device_id) { |
| 69 | return spvr::SpvrDeviceApi::QueryDevice(settings_->GetSpvrServerHost(), |
no test coverage detected