add history in chat to record meeting created!

This commit is contained in:
tiago.kayaya
2021-12-22 10:31:10 +01:00
parent 16294f93c3
commit fa5f67453e
28 changed files with 1268 additions and 53 deletions
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { ChatMethodsService } from './chat-methods.service';
describe('ChatMethodsService', () => {
let service: ChatMethodsService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ChatMethodsService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -0,0 +1,31 @@
import { Injectable } from '@angular/core';
import { ChatService } from '../chat.service';
@Injectable({
providedIn: 'root'
})
export class ChatMethodsService {
constructor(private chatService: ChatService) {
}
sendMessage(roomId:string, data:any) {
let body = {
"message":
{
"rid": roomId,
"msg":"",
"file":{
"type": "application/meeting",
"subject": data.subject,
"start_date": data.start,
"end_date": data.end,
"venue": data.venue,
"id": data.id,
}
}
}
this.chatService.sendMessage(body).subscribe(res=> {});
}
}
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { MethodsService } from './methods.service';
describe('MethodsService', () => {
let service: MethodsService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(MethodsService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
+11
View File
@@ -0,0 +1,11 @@
import { Injectable } from '@angular/core';
import { ChatService } from '../chat.service';
@Injectable({
providedIn: 'root'
})
export class MethodsService {
constructor(private chatService: ChatService) {
}
}