spot-sdk-ts
Version:
TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics
24 lines • 1.12 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogAnnotationServiceClientImpl = exports.protobufPackage = void 0;
/* eslint-disable */
const log_annotation_1 = require("./log_annotation");
const minimal_1 = __importDefault(require("protobufjs/minimal"));
exports.protobufPackage = "bosdyn.api";
class LogAnnotationServiceClientImpl {
rpc;
constructor(rpc) {
this.rpc = rpc;
this.AddLogAnnotation = this.AddLogAnnotation.bind(this);
}
AddLogAnnotation(request) {
const data = log_annotation_1.AddLogAnnotationRequest.encode(request).finish();
const promise = this.rpc.request("bosdyn.api.LogAnnotationService", "AddLogAnnotation", data);
return promise.then((data) => log_annotation_1.AddLogAnnotationResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.LogAnnotationServiceClientImpl = LogAnnotationServiceClientImpl;
//# sourceMappingURL=log_annotation_service.js.map