Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement of OptiBP widget to add Calibration data #645

Merged
merged 24 commits into from
Mar 8, 2023

Conversation

SebaMutuku
Copy link
Contributor

No description provided.

public static final String DATE = "date";
public static final String VERSION = "version";
public static final String MODEL = "model";
public static final String HEIGHT = "height";
public static final String WEIGHT = "weight";
public static final String COMPERATIVES = "comperatives";
public static final String SYSTOLIC = "systolic";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SebaMutuku Are we removing this because we no longer need it?

JSONObject calibrationJson = new JSONObject();
JSONObject comparativesJson = new JSONObject();
calibrationJson.put(OPTIBPCONSTANTS.DATE, df.format(new Date()));
calibrationJson.put(OPTIBPCONSTANTS.VERSION, 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SebaMutuku We agreed to remove this since the OptiBP app creates its

@@ -430,7 +415,7 @@ private void attachRefreshLogic(Context context, JSONObject jsonObject, View vie
}
}

protected enum BPFieldType {
protected enum BPFieldType {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use camel case naming standard

@@ -376,7 +377,7 @@ public void testInputJson() throws JSONException {
Mockito.doReturn(jsonApi).when(formFragment).getJsonApi();
Mockito.doReturn(new JSONObject(formString)).when(jsonApi).getmJSONObject();

String inputJson = factorySpy.getInputJsonString(jsonFormActivity, new JSONObject(optiBPWidgetString), widgetArgs);
String inputJson = factorySpy.getInputJsonString(RuntimeEnvironment.application.getApplicationContext(), new JSONObject(optiBPWidgetString), widgetArgs);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we changing this from using the Activity context

@SebaMutuku SebaMutuku marked this pull request as draft August 3, 2022 08:12
@dubdabasoduba dubdabasoduba marked this pull request as ready for review August 24, 2022 05:06
Copy link
Member

@dubdabasoduba dubdabasoduba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SebaMutuku Please fix all the code quality issues reported by codacy

Base automatically changed from feature/translate_radio_button_values to master September 26, 2022 08:56
@SebaMutuku SebaMutuku changed the title Optibp calibration Enhancement of OptiBP widget to add Calibration data Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants