44 lines
898 B
TypeScript
44 lines
898 B
TypeScript
|
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
|
||
|
|
||
|
import { UserInfo } from '@ucap-webmessenger/protocol-sync';
|
||
|
import {
|
||
|
UserInfoSS,
|
||
|
UserInfoF,
|
||
|
UserInfoDN
|
||
|
} from '@ucap-webmessenger/protocol-query';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'ucap-profile-profile',
|
||
|
templateUrl: './profile.component.html',
|
||
|
styleUrls: ['./profile.component.scss']
|
||
|
})
|
||
|
export class ProfileComponent implements OnInit {
|
||
|
@Input()
|
||
|
profileImageRoot: string;
|
||
|
@Input()
|
||
|
isMe: boolean;
|
||
|
@Input()
|
||
|
isBuddy: boolean;
|
||
|
@Input()
|
||
|
isFavorit: boolean;
|
||
|
@Input()
|
||
|
userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN;
|
||
|
|
||
|
@Output()
|
||
|
openChat = new EventEmitter<UserInfo | UserInfoSS | UserInfoF | UserInfoDN>();
|
||
|
|
||
|
constructor() {}
|
||
|
|
||
|
ngOnInit() {}
|
||
|
|
||
|
onClickOpenChat() {
|
||
|
this.openChat.emit(this.userInfo);
|
||
|
}
|
||
|
|
||
|
onClickCall() {}
|
||
|
|
||
|
onClickVideoConference() {}
|
||
|
|
||
|
onClickMessage() {}
|
||
|
}
|