Implement Distance Merge Request
This commit is contained in:
parent
c907048c12
commit
881bb04eb0
3 changed files with 27 additions and 8 deletions
|
@ -3,7 +3,7 @@ export class Message {
|
|||
roomId: string;
|
||||
|
||||
constructor(data: any) {
|
||||
if(!data.userId || !data.roomId){
|
||||
if (!data.userId || !data.roomId) {
|
||||
throw Error("userId or roomId cannot be null");
|
||||
}
|
||||
this.userId = data.userId;
|
||||
|
@ -13,7 +13,7 @@ export class Message {
|
|||
toJson() {
|
||||
return {
|
||||
userId: this.userId,
|
||||
roomId: this.roomId,
|
||||
roomId: this.roomId
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue