Files
doneit-web/src/app/services/chat/message.service.ts
T
Peter Maquiran 5552aa484b improve chat
2022-01-12 11:52:05 +01:00

38 lines
538 B
TypeScript

import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class MessageService {
channels = []
mentions = []
msg = ''
rid = ''
ts = {}
u = {}
_id =''
_updatedAt = {}
constructor() { }
setData({channels, mentions, msg ,rid ,ts, u, _id, _updatedAt}) {
this.channels = channels
this.mentions = mentions
this.msg = msg
this.rid = rid
this.ts = ts
this.u = u
this._id = _id
this._updatedAt = _updatedAt
}
delete() {}
showDateDuration() {}
}