File tree 6 files changed +56
-1
lines changed
6 files changed +56
-1
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ export class IncomingHeader
335
335
public static CAMERA_PUBLISH_STATUS = 2057 ;
336
336
public static CAMERA_PURCHASE_OK = 2783 ;
337
337
public static CAMERA_STORAGE_URL = 3696 ;
338
+ public static CAMERA_SNAPSHOT = 463 ;
338
339
public static COMPETITION_STATUS = 133 ;
339
340
public static INIT_CAMERA = 3878 ;
340
341
public static THUMBNAIL_STATUS = 3595 ;
Original file line number Diff line number Diff line change
1
+ import { IMessageEvent } from '../../../../../api' ;
2
+ import { MessageEvent } from '../../../../../events' ;
3
+ import { CameraSnapshotMessageParser } from '../../parser' ;
4
+
5
+ export class CameraSnapshotMessageEvent extends MessageEvent implements IMessageEvent
6
+ {
7
+ constructor ( callBack : Function )
8
+ {
9
+ super ( callBack , CameraSnapshotMessageParser ) ;
10
+ }
11
+
12
+ public getParser ( ) : CameraSnapshotMessageParser
13
+ {
14
+ return this . parser as CameraSnapshotMessageParser ;
15
+ }
16
+ }
Original file line number Diff line number Diff line change 1
1
export * from './CameraPublishStatusMessageEvent' ;
2
2
export * from './CameraPurchaseOKMessageEvent' ;
3
+ export * from './CameraSnapshotMessageEvent' ;
3
4
export * from './CameraStorageUrlMessageEvent' ;
4
5
export * from './CompetitionStatusMessageEvent' ;
5
6
export * from './InitCameraMessageEvent' ;
Original file line number Diff line number Diff line change
1
+ import { IMessageDataWrapper , IMessageParser } from '../../../../../api' ;
2
+
3
+ export class CameraSnapshotMessageParser implements IMessageParser
4
+ {
5
+ private _roomType : string ;
6
+ private _roomId : number ;
7
+
8
+ public flush ( ) : boolean
9
+ {
10
+ this . _roomType = null ;
11
+ this . _roomId = - 1 ;
12
+
13
+ return true ;
14
+ }
15
+
16
+ public parse ( wrapper : IMessageDataWrapper ) : boolean
17
+ {
18
+ if ( ! wrapper ) return false ;
19
+
20
+ this . _roomType = wrapper . readString ( ) ;
21
+ this . _roomId = wrapper . readInt ( ) ;
22
+
23
+ return true ;
24
+ }
25
+
26
+ public get roomType ( ) : string
27
+ {
28
+ return this . _roomType ;
29
+ }
30
+
31
+ public get roomId ( ) : number
32
+ {
33
+ return this . _roomId ;
34
+ }
35
+ }
Original file line number Diff line number Diff line change 1
1
export * from './CameraPublishStatusMessageParser' ;
2
2
export * from './CameraPurchaseOKMessageParser' ;
3
+ export * from './CameraSnapshotMessageParser' ;
3
4
export * from './CameraStorageUrlMessageParser' ;
4
5
export * from './CompetitionStatusMessageParser' ;
5
6
export * from './InitCameraMessageParser' ;
You can’t perform that action at this time.
0 commit comments