Xiaomi: More workout types

This commit is contained in:
AndrewP 2024-12-03 18:27:27 +01:00
parent 5e81d1e4a2
commit 11ac1ed8bf

View File

@ -109,6 +109,9 @@ public class XiaomiSimpleActivityParser {
case 4: case 4:
summary.setActivityKind(ActivityKind.TREKKING.getCode()); summary.setActivityKind(ActivityKind.TREKKING.getCode());
break; break;
case 5:
summary.setActivityKind(ActivityKind.TRAIL_RUN.getCode());
break;
case 6: case 6:
summary.setActivityKind(ActivityKind.OUTDOOR_CYCLING.getCode()); summary.setActivityKind(ActivityKind.OUTDOOR_CYCLING.getCode());
break; break;
@ -154,21 +157,45 @@ public class XiaomiSimpleActivityParser {
case 310: // aerobics 0x0136 case 310: // aerobics 0x0136
summary.setActivityKind(ActivityKind.AEROBICS.getCode()); summary.setActivityKind(ActivityKind.AEROBICS.getCode());
break; break;
case 399: // indoor-Fitness 0x018f
summary.setActivityKind(ActivityKind.INDOOR_FITNESS.getCode());
break;
case 499: // dancing 0x01f3 case 499: // dancing 0x01f3
summary.setActivityKind(ActivityKind.PLAZA_DANCING.getCode()); summary.setActivityKind(ActivityKind.DANCE.getCode());
break;
case 600: // Soccer 0x0258
summary.setActivityKind(ActivityKind.SOCCER.getCode());
break;
case 601: // basketball 0x0259
summary.setActivityKind(ActivityKind.BASKETBALL.getCode());
break; break;
case 607: // table tennis 0x025f case 607: // table tennis 0x025f
summary.setActivityKind(ActivityKind.TABLE_TENNIS.getCode()); summary.setActivityKind(ActivityKind.TABLE_TENNIS.getCode());
break; break;
case 608: // badminton 0x0260
summary.setActivityKind(ActivityKind.BADMINTON.getCode());
break;
case 609: // tennis 0x0261 case 609: // tennis 0x0261
summary.setActivityKind(ActivityKind.TENNIS.getCode()); summary.setActivityKind(ActivityKind.TENNIS.getCode());
break; break;
case 614: // billard 0x0266
summary.setActivityKind(ActivityKind.BILLIARDS.getCode());
break;
case 619: // golf 0x026b
summary.setActivityKind(ActivityKind.GOLF.getCode());
break;
case 700: // ice skating 0x02bc case 700: // ice skating 0x02bc
summary.setActivityKind(ActivityKind.ICE_SKATING.getCode()); summary.setActivityKind(ActivityKind.ICE_SKATING.getCode());
break; break;
case 708: // snowboard 0x02c4
summary.setActivityKind(ActivityKind.SNOWBOARDING.getCode());
break;
case 709: // skiing 0x02c5 case 709: // skiing 0x02c5
summary.setActivityKind(ActivityKind.SKIING.getCode()); summary.setActivityKind(ActivityKind.SKIING.getCode());
break; break;
case 808: // shuttelcock 0x0328
summary.setActivityKind(ActivityKind.SHUTTLECOCK.getCode());
break;
default: default:
summary.setActivityKind(ActivityKind.UNKNOWN.getCode()); summary.setActivityKind(ActivityKind.UNKNOWN.getCode());
} }