-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[STAD-596] Update Handling of Measurement Finished (#169)
* Add new finished event after data storage finished This is necessary, since now when the stopped event is received by the app, the measurement inside the database is not necessarily stopped and thus will not be eligeble for data synchronization. * Remove copied redeclaration of Double equal function. * Add new finished event after CoreData Storage completed * Update Documentation for DefaultUploadProcess * Actually use the finish handler of the CapturedDataStorage No finish event as implemented in the last commit is necessary, since our API has an explicit handler on the CapturedDataStorage, that is called as soon as data storage has finished. This should be used to store everything to the database and carry out clean up code at the end of a measurement. * Update RFR App with correct handling of finishing measurements * Removed obsolete Sessions database from Resources * Remove obsolete finished event from Message * Fix after merge issues
- Loading branch information
1 parent
5b6bc2b
commit b02aa8e
Showing
17 changed files
with
479 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by Klemens Muthmann on 18.03.24. | ||
// | ||
|
||
import Foundation | ||
|
||
public extension Double { | ||
public func equal(_ value: Double, precise: Int) -> Bool { | ||
let denominator: Double = pow(10.0, Double(precise)) | ||
let maxDiff: Double = 1 / denominator | ||
let realDiff: Double = self - value | ||
|
||
if fabs(realDiff) <= maxDiff { | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.