langjie-m-play 0.0.39 → 0.0.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langjie-m-play",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -84,6 +84,10 @@ export declare class MPlay {
84
84
  * Synchronize runtime data for the play.
85
85
  */
86
86
  syncRuntimeInfo(ctrlTags: string): Promise<MultiStationRuntimeInfo>;
87
+ /**
88
+ * Pure Synchronize runtime data for the play.
89
+ */
90
+ syncFullRuntimeInfo(): Promise<MultiStationRuntimeInfo>;
87
91
  /**
88
92
  * Subscribe datagram to the MPlay server.
89
93
  *
package/service/MPlay.js CHANGED
@@ -265,8 +265,7 @@ export class MPlay {
265
265
  */
266
266
  syncRuntimeInfo(ctrlTags) {
267
267
  return __awaiter(this, void 0, void 0, function* () {
268
- const productInfo = yield GtcClient.getProductInfo(this.instId, this.serviceType, this.ctrlIndex);
269
- const multiStationRuntimeInfo = yield RemoteWebService.syncRuntimeInfo(String(productInfo.dSn));
268
+ const multiStationRuntimeInfo = yield this.syncFullRuntimeInfo();
270
269
  if (multiStationRuntimeInfo && multiStationRuntimeInfo.ctrlTagRuntimeInfoMap) {
271
270
  ctrlTags.split(',').forEach(ctrlTag => {
272
271
  const ctrlRunTimeInfo = multiStationRuntimeInfo.ctrlTagRuntimeInfoMap[ctrlTag];
@@ -284,6 +283,15 @@ export class MPlay {
284
283
  return this.multiStationRuntimeInfo;
285
284
  });
286
285
  }
286
+ /**
287
+ * Pure Synchronize runtime data for the play.
288
+ */
289
+ syncFullRuntimeInfo() {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ const productInfo = yield GtcClient.getProductInfo(this.instId, this.serviceType, this.ctrlIndex);
292
+ return yield RemoteWebService.syncRuntimeInfo(String(productInfo.dSn));
293
+ });
294
+ }
287
295
  /**
288
296
  * Subscribe datagram to the MPlay server.
289
297
  *