Files
doneit-web/src/app/services/chat/message.service.ts
T

38 lines
538 B
TypeScript
Raw Normal View History

2022-01-10 23:52:33 +01:00
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class MessageService {
2022-01-11 15:43:09 +01:00
channels = []
mentions = []
msg = ''
rid = ''
2022-01-11 16:07:54 +01:00
ts = {}
u = {}
_id =''
_updatedAt = {}
2022-01-10 23:52:33 +01:00
constructor() { }
2022-01-11 16:07:54 +01:00
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() {}
2022-01-11 16:28:59 +01:00
showDateDuration() {}
2022-01-12 11:52:05 +01:00
2022-01-10 23:52:33 +01:00
}