From a6b5ac05aaed8a774fa805a8f955c018828fe8f7 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Tue, 15 Oct 2019 13:54:58 +0900 Subject: [PATCH] refactoring --- .../src/lib/components/user-list-item.component.ts | 11 ++--------- .../src/lib/types/presence-type.type.ts | 8 ++++++++ .../ucap-webmessenger-ui-profile/src/public-api.ts | 2 ++ 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 projects/ucap-webmessenger-ui-profile/src/lib/types/presence-type.type.ts diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts index 0ded962d..fa5b245d 100644 --- a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts +++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts @@ -22,6 +22,8 @@ import { SessionStorageService } from '@ucap-webmessenger/web-storage'; import { KEY_VER_INFO, VerInfo2 } from '@app/types/ver-info.type'; import { StatusCode } from '@ucap-webmessenger/core'; +import { PresenceType } from '../types/presence-type.type'; + @Component({ selector: 'ucap-profile-user-list-item', templateUrl: './user-list-item.component.html', @@ -118,12 +120,3 @@ export class UserListItemComponent implements OnInit, OnDestroy { this.contextMenu.emit({ event, userInfo }); } } - -export enum PresenceType { - PC = 'pc', - MOBILE = 'mobile', - CONFERENCE = 'conference', - MOBILE_CONFERENCE = 'mobileConference', - PHONE = 'phone', - IMESSENER = 'imessenger' -} diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/types/presence-type.type.ts b/projects/ucap-webmessenger-ui-profile/src/lib/types/presence-type.type.ts new file mode 100644 index 00000000..c5095108 --- /dev/null +++ b/projects/ucap-webmessenger-ui-profile/src/lib/types/presence-type.type.ts @@ -0,0 +1,8 @@ +export enum PresenceType { + PC = 'pc', + MOBILE = 'mobile', + CONFERENCE = 'conference', + MOBILE_CONFERENCE = 'mobileConference', + PHONE = 'phone', + IMESSENER = 'imessenger' +} diff --git a/projects/ucap-webmessenger-ui-profile/src/public-api.ts b/projects/ucap-webmessenger-ui-profile/src/public-api.ts index 2f183b98..155f48c9 100644 --- a/projects/ucap-webmessenger-ui-profile/src/public-api.ts +++ b/projects/ucap-webmessenger-ui-profile/src/public-api.ts @@ -5,4 +5,6 @@ export * from './lib/components/list-item.component'; export * from './lib/components/user-list-item.component'; +export * from './lib/types/presence-type.type'; + export * from './lib/ucap-ui-profile.module';