@aceplus/smartace-api 2.1.0-drumtracker.12 → 2.1.0-drumtracker.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/drumtracker.drum_pb.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty
|
|
|
6
6
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
7
7
|
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
8
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
9
|
+
import * as drumtracker_tracker_pb from "./drumtracker.tracker_pb";
|
|
9
10
|
|
|
10
11
|
export class DrumProto extends jspb.Message {
|
|
11
12
|
getId(): number;
|
|
@@ -53,6 +54,11 @@ export class DrumProto extends jspb.Message {
|
|
|
53
54
|
getCustomerReference(): string;
|
|
54
55
|
setCustomerReference(value: string): void;
|
|
55
56
|
|
|
57
|
+
clearEventsList(): void;
|
|
58
|
+
getEventsList(): Array<drumtracker_tracker_pb.TrackerProto.Event>;
|
|
59
|
+
setEventsList(value: Array<drumtracker_tracker_pb.TrackerProto.Event>): void;
|
|
60
|
+
addEvents(value?: drumtracker_tracker_pb.TrackerProto.Event, index?: number): drumtracker_tracker_pb.TrackerProto.Event;
|
|
61
|
+
|
|
56
62
|
serializeBinary(): Uint8Array;
|
|
57
63
|
toObject(includeInstance?: boolean): DrumProto.AsObject;
|
|
58
64
|
static toObject(includeInstance: boolean, msg: DrumProto): DrumProto.AsObject;
|
|
@@ -78,6 +84,7 @@ export namespace DrumProto {
|
|
|
78
84
|
lastUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
79
85
|
salesReference: string,
|
|
80
86
|
customerReference: string,
|
|
87
|
+
eventsList: Array<drumtracker_tracker_pb.TrackerProto.Event.AsObject>,
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
export class CableType extends jspb.Message {
|
package/drumtracker.drum_pb.js
CHANGED
|
@@ -29,6 +29,8 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
|
29
29
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
30
30
|
var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
31
31
|
goog.object.extend(proto, platform_pagination_pb);
|
|
32
|
+
var drumtracker_tracker_pb = require('./drumtracker.tracker_pb.js');
|
|
33
|
+
goog.object.extend(proto, drumtracker_tracker_pb);
|
|
32
34
|
goog.exportSymbol('proto.Drumtracker.DrumProto', null, global);
|
|
33
35
|
goog.exportSymbol('proto.Drumtracker.DrumProto.CableType', null, global);
|
|
34
36
|
goog.exportSymbol('proto.Drumtracker.DrumProto.CountReply', null, global);
|
|
@@ -57,7 +59,7 @@ goog.exportSymbol('proto.Drumtracker.DrumProto.UpdateRequest', null, global);
|
|
|
57
59
|
* @constructor
|
|
58
60
|
*/
|
|
59
61
|
proto.Drumtracker.DrumProto = function(opt_data) {
|
|
60
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
62
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Drumtracker.DrumProto.repeatedFields_, null);
|
|
61
63
|
};
|
|
62
64
|
goog.inherits(proto.Drumtracker.DrumProto, jspb.Message);
|
|
63
65
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -362,6 +364,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
362
364
|
proto.Drumtracker.DrumProto.DrumFilters.displayName = 'proto.Drumtracker.DrumProto.DrumFilters';
|
|
363
365
|
}
|
|
364
366
|
|
|
367
|
+
/**
|
|
368
|
+
* List of repeated fields within this message type.
|
|
369
|
+
* @private {!Array<number>}
|
|
370
|
+
* @const
|
|
371
|
+
*/
|
|
372
|
+
proto.Drumtracker.DrumProto.repeatedFields_ = [14];
|
|
373
|
+
|
|
365
374
|
|
|
366
375
|
|
|
367
376
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -405,7 +414,9 @@ proto.Drumtracker.DrumProto.toObject = function(includeInstance, msg) {
|
|
|
405
414
|
temperature: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
406
415
|
lastUpdate: (f = msg.getLastUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
407
416
|
salesReference: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
408
|
-
customerReference: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
417
|
+
customerReference: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
418
|
+
eventsList: jspb.Message.toObjectList(msg.getEventsList(),
|
|
419
|
+
drumtracker_tracker_pb.TrackerProto.Event.toObject, includeInstance)
|
|
409
420
|
};
|
|
410
421
|
|
|
411
422
|
if (includeInstance) {
|
|
@@ -497,6 +508,11 @@ proto.Drumtracker.DrumProto.deserializeBinaryFromReader = function(msg, reader)
|
|
|
497
508
|
var value = /** @type {string} */ (reader.readString());
|
|
498
509
|
msg.setCustomerReference(value);
|
|
499
510
|
break;
|
|
511
|
+
case 14:
|
|
512
|
+
var value = new drumtracker_tracker_pb.TrackerProto.Event;
|
|
513
|
+
reader.readMessage(value,drumtracker_tracker_pb.TrackerProto.Event.deserializeBinaryFromReader);
|
|
514
|
+
msg.addEvents(value);
|
|
515
|
+
break;
|
|
500
516
|
default:
|
|
501
517
|
reader.skipField();
|
|
502
518
|
break;
|
|
@@ -620,6 +636,14 @@ proto.Drumtracker.DrumProto.serializeBinaryToWriter = function(message, writer)
|
|
|
620
636
|
f
|
|
621
637
|
);
|
|
622
638
|
}
|
|
639
|
+
f = message.getEventsList();
|
|
640
|
+
if (f.length > 0) {
|
|
641
|
+
writer.writeRepeatedMessage(
|
|
642
|
+
14,
|
|
643
|
+
f,
|
|
644
|
+
drumtracker_tracker_pb.TrackerProto.Event.serializeBinaryToWriter
|
|
645
|
+
);
|
|
646
|
+
}
|
|
623
647
|
};
|
|
624
648
|
|
|
625
649
|
|
|
@@ -4023,4 +4047,42 @@ proto.Drumtracker.DrumProto.prototype.setCustomerReference = function(value) {
|
|
|
4023
4047
|
};
|
|
4024
4048
|
|
|
4025
4049
|
|
|
4050
|
+
/**
|
|
4051
|
+
* repeated TrackerProto.Event events = 14;
|
|
4052
|
+
* @return {!Array<!proto.Drumtracker.TrackerProto.Event>}
|
|
4053
|
+
*/
|
|
4054
|
+
proto.Drumtracker.DrumProto.prototype.getEventsList = function() {
|
|
4055
|
+
return /** @type{!Array<!proto.Drumtracker.TrackerProto.Event>} */ (
|
|
4056
|
+
jspb.Message.getRepeatedWrapperField(this, drumtracker_tracker_pb.TrackerProto.Event, 14));
|
|
4057
|
+
};
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* @param {!Array<!proto.Drumtracker.TrackerProto.Event>} value
|
|
4062
|
+
* @return {!proto.Drumtracker.DrumProto} returns this
|
|
4063
|
+
*/
|
|
4064
|
+
proto.Drumtracker.DrumProto.prototype.setEventsList = function(value) {
|
|
4065
|
+
return jspb.Message.setRepeatedWrapperField(this, 14, value);
|
|
4066
|
+
};
|
|
4067
|
+
|
|
4068
|
+
|
|
4069
|
+
/**
|
|
4070
|
+
* @param {!proto.Drumtracker.TrackerProto.Event=} opt_value
|
|
4071
|
+
* @param {number=} opt_index
|
|
4072
|
+
* @return {!proto.Drumtracker.TrackerProto.Event}
|
|
4073
|
+
*/
|
|
4074
|
+
proto.Drumtracker.DrumProto.prototype.addEvents = function(opt_value, opt_index) {
|
|
4075
|
+
return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.Drumtracker.TrackerProto.Event, opt_index);
|
|
4076
|
+
};
|
|
4077
|
+
|
|
4078
|
+
|
|
4079
|
+
/**
|
|
4080
|
+
* Clears the list making it empty but non-null.
|
|
4081
|
+
* @return {!proto.Drumtracker.DrumProto} returns this
|
|
4082
|
+
*/
|
|
4083
|
+
proto.Drumtracker.DrumProto.prototype.clearEventsList = function() {
|
|
4084
|
+
return this.setEventsList([]);
|
|
4085
|
+
};
|
|
4086
|
+
|
|
4087
|
+
|
|
4026
4088
|
goog.object.extend(exports, proto.Drumtracker);
|
|
@@ -76,8 +76,8 @@ export namespace TrackerProto {
|
|
|
76
76
|
getLongitude(): number;
|
|
77
77
|
setLongitude(value: number): void;
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
getTemperature(): number;
|
|
80
|
+
setTemperature(value: number): void;
|
|
81
81
|
|
|
82
82
|
getRotations(): number;
|
|
83
83
|
setRotations(value: number): void;
|
|
@@ -106,7 +106,7 @@ export namespace TrackerProto {
|
|
|
106
106
|
uid: string,
|
|
107
107
|
latitude: number,
|
|
108
108
|
longitude: number,
|
|
109
|
-
|
|
109
|
+
temperature: number,
|
|
110
110
|
rotations: number,
|
|
111
111
|
date?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
112
112
|
batteryVoltage: number,
|
|
@@ -497,7 +497,7 @@ proto.Drumtracker.TrackerProto.Event.toObject = function(includeInstance, msg) {
|
|
|
497
497
|
uid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
498
498
|
latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
499
499
|
longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
500
|
-
|
|
500
|
+
temperature: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
501
501
|
rotations: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
502
502
|
date: (f = msg.getDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
503
503
|
batteryVoltage: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
|
|
@@ -555,7 +555,7 @@ proto.Drumtracker.TrackerProto.Event.deserializeBinaryFromReader = function(msg,
|
|
|
555
555
|
break;
|
|
556
556
|
case 5:
|
|
557
557
|
var value = /** @type {number} */ (reader.readInt32());
|
|
558
|
-
msg.
|
|
558
|
+
msg.setTemperature(value);
|
|
559
559
|
break;
|
|
560
560
|
case 6:
|
|
561
561
|
var value = /** @type {number} */ (reader.readInt32());
|
|
@@ -627,7 +627,7 @@ proto.Drumtracker.TrackerProto.Event.serializeBinaryToWriter = function(message,
|
|
|
627
627
|
f
|
|
628
628
|
);
|
|
629
629
|
}
|
|
630
|
-
f = message.
|
|
630
|
+
f = message.getTemperature();
|
|
631
631
|
if (f !== 0) {
|
|
632
632
|
writer.writeInt32(
|
|
633
633
|
5,
|
|
@@ -732,10 +732,10 @@ proto.Drumtracker.TrackerProto.Event.prototype.setLongitude = function(value) {
|
|
|
732
732
|
|
|
733
733
|
|
|
734
734
|
/**
|
|
735
|
-
* optional int32
|
|
735
|
+
* optional int32 temperature = 5;
|
|
736
736
|
* @return {number}
|
|
737
737
|
*/
|
|
738
|
-
proto.Drumtracker.TrackerProto.Event.prototype.
|
|
738
|
+
proto.Drumtracker.TrackerProto.Event.prototype.getTemperature = function() {
|
|
739
739
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
740
740
|
};
|
|
741
741
|
|
|
@@ -744,7 +744,7 @@ proto.Drumtracker.TrackerProto.Event.prototype.getTemparture = function() {
|
|
|
744
744
|
* @param {number} value
|
|
745
745
|
* @return {!proto.Drumtracker.TrackerProto.Event} returns this
|
|
746
746
|
*/
|
|
747
|
-
proto.Drumtracker.TrackerProto.Event.prototype.
|
|
747
|
+
proto.Drumtracker.TrackerProto.Event.prototype.setTemperature = function(value) {
|
|
748
748
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
749
749
|
};
|
|
750
750
|
|