We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad7852 commit b869ebdCopy full SHA for b869ebd
src/codec/UUIDCodec.ts
@@ -2,9 +2,10 @@ import ClientMessage = require('../ClientMessage');
2
import {UUID} from '../core/UUID';
3
export class UUIDCodec {
4
static decode(clientMessage: ClientMessage, toObject: Function): UUID {
5
- var uuid: UUID;
6
- uuid.mostSignificant = clientMessage.readLong();
7
- uuid.leastSignificant = clientMessage.readLong();
+ var uuid: UUID = {
+ 'mostSignificant': clientMessage.readLong(),
+ 'leastSignificant': clientMessage.readLong()
8
+ };
9
return uuid;
10
}
11
0 commit comments