datatype.ts 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. import { Observable } from "rxjs";
  2. import { BaseMessage } from "../dependencies/fisappmessagejsutilty/dependencies/dependencies";
  3. import { LogSetting, MessageLog } from "../dependencies/fisloggingservice/type/datatype";
  4. type IncomingMessageSetting = LogSetting & {
  5. incomingObservable:Observable<BaseMessage>
  6. }
  7. // Incoming message Service Class
  8. export interface IncomingMessageServiceInterface {
  9. // Set default setting
  10. init(settings: IncomingMessageSetting ): void;
  11. }
  12. // It can have an incoming and a target logging server. The tags are used to search for specific sets of messages from the logging server.
  13. export interface MessageSynchronisationServiceSetting {
  14. incomingSource:LogSetting & {tags:string[] },
  15. target:LogSetting & {tags:string[] }
  16. }
  17. // Acknowledgement Service Class
  18. export interface MessageSynchronisationServiceInterface{
  19. // Set default setting
  20. init(settings: MessageSynchronisationServiceSetting ): void;
  21. // Subscribe to trigger
  22. subscribe(obs:Observable<string>): Observable<any>;
  23. }