|
@@ -10,18 +10,6 @@ import { Acknowledgemeent, AcknowledgementLogSetting } from "../type/acknowledge
|
|
export class AcknowledgementService implements Acknowledgemeent {
|
|
export class AcknowledgementService implements Acknowledgemeent {
|
|
|
|
|
|
private messageUtil: FisCreateMessageUtility = new FisCreateMessageUtility("FisAppID/Name")
|
|
private messageUtil: FisCreateMessageUtility = new FisCreateMessageUtility("FisAppID/Name")
|
|
- // private settings1: LogSetting = {
|
|
|
|
- // storage: '',
|
|
|
|
- // setting: {
|
|
|
|
- // appId: '',
|
|
|
|
- // appName: '',
|
|
|
|
- // logLocName: '',
|
|
|
|
- // logLocId: '',
|
|
|
|
- // appLogLocId: '',
|
|
|
|
- // appLocName: '',
|
|
|
|
- // appLogId: ''
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
private settings2: LogSetting = {
|
|
private settings2: LogSetting = {
|
|
storage: '',
|
|
storage: '',
|
|
setting: {
|
|
setting: {
|
|
@@ -40,7 +28,6 @@ export class AcknowledgementService implements Acknowledgemeent {
|
|
this.logService2 = new LoggingService()
|
|
this.logService2 = new LoggingService()
|
|
}
|
|
}
|
|
|
|
|
|
- // set the data. I dont know what to set yet
|
|
|
|
public async init(settings: AcknowledgementLogSetting) {
|
|
public async init(settings: AcknowledgementLogSetting) {
|
|
// let logSetting1: LogSetting = {
|
|
// let logSetting1: LogSetting = {
|
|
// ...settings,
|
|
// ...settings,
|
|
@@ -65,7 +52,6 @@ export class AcknowledgementService implements Acknowledgemeent {
|
|
this.logService2.init(logSetting2)
|
|
this.logService2.init(logSetting2)
|
|
}
|
|
}
|
|
|
|
|
|
- // suppose to call logging service to give an observable type report for every message streamed
|
|
|
|
public subscribe(obs: Observable<any>): Observable<ResponseMessage> {
|
|
public subscribe(obs: Observable<any>): Observable<ResponseMessage> {
|
|
let acknowledgementToken: Observable<ResponseMessage> = obs.pipe(
|
|
let acknowledgementToken: Observable<ResponseMessage> = obs.pipe(
|
|
map(
|
|
map(
|
|
@@ -82,7 +68,7 @@ export class AcknowledgementService implements Acknowledgemeent {
|
|
map(
|
|
map(
|
|
incoming_msg => {
|
|
incoming_msg => {
|
|
let finalResponse:MessageLog = {
|
|
let finalResponse:MessageLog = {
|
|
- appLogLocId: this.settings2.setting.appLogId || "",
|
|
|
|
|
|
+ appLogLocId: this.settings2.setting.appLogId,
|
|
appData: {
|
|
appData: {
|
|
msgId: new Uuid().generateId(),
|
|
msgId: new Uuid().generateId(),
|
|
msgLogDateTime: new Date(),
|
|
msgLogDateTime: new Date(),
|