2019-09-23 14:23:24 +09:00
|
|
|
import { Component, OnInit, Input } from '@angular/core';
|
|
|
|
|
2019-10-08 16:41:23 +09:00
|
|
|
import { Info, EventType } from '@ucap-webmessenger/protocol-event';
|
2019-10-08 13:31:33 +09:00
|
|
|
import { LoginResponse } from '@ucap-webmessenger/protocol-authentication';
|
2019-10-08 15:13:01 +09:00
|
|
|
import { NGXLogger } from 'ngx-logger';
|
2019-10-08 13:31:33 +09:00
|
|
|
|
2019-09-23 14:23:24 +09:00
|
|
|
@Component({
|
|
|
|
selector: 'ucap-chat-messages',
|
|
|
|
templateUrl: './messages.component.html',
|
|
|
|
styleUrls: ['./messages.component.scss']
|
|
|
|
})
|
|
|
|
export class MessagesComponent implements OnInit {
|
|
|
|
@Input()
|
2019-10-08 13:31:33 +09:00
|
|
|
loginRes: LoginResponse;
|
|
|
|
@Input()
|
|
|
|
messages: Info[];
|
2019-09-23 14:23:24 +09:00
|
|
|
|
2019-10-08 16:41:23 +09:00
|
|
|
EventType = EventType;
|
|
|
|
|
2019-10-08 15:13:01 +09:00
|
|
|
constructor(private logger: NGXLogger) {}
|
2019-09-23 14:23:24 +09:00
|
|
|
|
2019-10-08 15:13:01 +09:00
|
|
|
ngOnInit() {
|
|
|
|
this.logger.debug('type of userSeq', typeof this.loginRes.userSeq);
|
|
|
|
}
|
2019-09-23 14:23:24 +09:00
|
|
|
}
|