forked from Elara6331/itd
		
	Add cancellation to watchable values
This commit is contained in:
		| @@ -9,11 +9,15 @@ const ( | ||||
| 	ReqTypeNotify | ||||
| 	ReqTypeSetTime | ||||
| 	ReqTypeWatchHeartRate | ||||
| 	ReqTypeCancelHeartRate | ||||
| 	ReqTypeWatchBattLevel | ||||
| 	ReqTypeCancelBattLevel | ||||
| 	ReqTypeMotion | ||||
| 	ReqTypeWatchMotion | ||||
| 	ReqTypeCancelMotion | ||||
| 	ReqTypeStepCount | ||||
| 	ReqTypeWatchStepCount | ||||
| 	ReqTypeCancelStepCount | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| @@ -25,11 +29,15 @@ const ( | ||||
| 	ResTypeNotify | ||||
| 	ResTypeSetTime | ||||
| 	ResTypeWatchHeartRate | ||||
| 	ResTypeCancelHeartRate | ||||
| 	ResTypeWatchBattLevel | ||||
| 	ResTypeCancelBattLevel | ||||
| 	ResTypeMotion | ||||
| 	ResTypeWatchMotion | ||||
| 	ResTypeCancelMotion | ||||
| 	ResTypeStepCount | ||||
| 	ResTypeWatchStepCount | ||||
| 	ResTypeCancelStepCount | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| @@ -43,7 +51,7 @@ type ReqDataFwUpgrade struct { | ||||
| } | ||||
|  | ||||
| type Response struct { | ||||
| 	Type    int | ||||
| 	Type    int         `json:"type"` | ||||
| 	Value   interface{} `json:"value,omitempty"` | ||||
| 	Message string      `json:"msg,omitempty"` | ||||
| 	Error   bool        `json:"error"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user