Files
GSFV2/lib/model/data/ICSkipData.dart

114 lines
2.1 KiB
Dart
Raw Normal View History

2024-04-10 12:51:20 +05:30
import 'package:icdevicemanager_flutter/model/converter/ICSkipFreqDataConverter.dart';
import 'package:icdevicemanager_flutter/model/data/ICSkipFreqData.dart';
import 'package:json_annotation/json_annotation.dart';
import '../other/ICConstant.dart';
part 'ICSkipData.g.dart';
@JsonSerializable()
class ICSkipData{
/**
*/
bool isStabilized=false;
/**
ID
*/
int nodeId=0;
/**
*/
int battery=0;
/**
*/
int nodeInfo=0;
/**
* :
*/
int time = 0;
/**
*
*/
ICSkipMode mode = ICSkipMode.ICSkipModeFreedom;
/**
*
*/
int setting = 0;
/**
* 使
*/
int elapsed_time = 0;
/**
* 使
*/
int actual_time = 0;
/**
*
*/
int skip_count = 0;
/**
*
*/
int avg_freq = 0;
/**
*
*/
int fastest_freq = 0;
/**
*
*/
int freq_count = 0;
/**
*
*/
int most_jump = 0;
/**
*
*/
double calories_burned = 0;
/**
*
*/
double fat_burn_efficiency = 0;
/**
*
*/
@ICSkipFreqDataConverter()
List<ICSkipFreqData>? freqs = [];
ICSkipData();
factory ICSkipData.fromJson(Map<String, dynamic> json) => _$ICSkipDataFromJson(json);
Map<String, dynamic> toJson() => _$ICSkipDataToJson(this);
@override
String toString() {
return 'ICSkipData{isStabilized: $isStabilized, nodeId: $nodeId, battery: $battery, nodeInfo: $nodeInfo, time: $time, mode: $mode, setting: $setting, elapsed_time: $elapsed_time, actual_time: $actual_time, skip_count: $skip_count, avg_freq: $avg_freq, fastest_freq: $fastest_freq, freq_count: $freq_count, most_jump: $most_jump, calories_burned: $calories_burned, fat_burn_efficiency: $fat_burn_efficiency, freqs: $freqs}';
}
}