mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
38 lines
538 B
TypeScript
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() {}
|
|
|
|
|
|
|
|
|
|
}
|