Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions app/src/main/java/com/kovacnet/waterlevel/StatsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,31 @@ private void fillStats()


}
class Motor{
Copy link
Owner

Choose a reason for hiding this comment

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

Whole section would need some formatting

Copy link
Author

Choose a reason for hiding this comment

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

yes my friend i will make the necessary changes in the future days!
Also, i can try and make an english version of the code.


motor1(){System.out.println("emtying and filling motors");}
Copy link
Owner

Choose a reason for hiding this comment

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

Are you sure this is working correctly in android app ?
Looks like a console application to me.

Scanner reader = new Scanner(System.in); // Reading from System.in
motor1 b=new motor1();
Copy link
Owner

Choose a reason for hiding this comment

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

Where is motor1 class ?

System.out.println("please enter the maximum water level");
int n = reader.nextInt();
if (data.getMaxWT>n ) {
motor1 true;
}
else if(getMaxWT<n) {
motor1 false;
}

motor2 b=new motor2();
System.out.println("please enter the minimum water level");
int m = reader.nextInt();
if (data.getMinWT()>m ) {
motor2 true;
}
else if(data.getMinWT()T<m) {
motor2 false;
}



private class Add extends AsyncTask<Void, Void, String> {
private String SERVICE_URL = "http://reservoirlevel.azurewebsites.net/getStats.php";
Expand Down