From 35655605cd532faf75e7052385062ae679976a85 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 20 Feb 2020 13:38:24 +0400 Subject: Finished class "Service" structure Signed-off-by: Valentin Popov --- dist/service.d.ts | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'dist') diff --git a/dist/service.d.ts b/dist/service.d.ts index 619203f..ac7940e 100644 --- a/dist/service.d.ts +++ b/dist/service.d.ts @@ -1,6 +1,7 @@ import { ActivityManager } from "./activity-manager"; import { Message } from "./message"; import { Method } from "./method"; +import { Subscription } from "./subscription"; export interface IServiceOptions { readonly idleTimer?: number; @@ -47,27 +48,29 @@ export declare class Service { // @todo Need to "unified_service" private readonly __serviceMainUnified: any; - public call(): any; + public call(uri: string, args: Record, callback: (message: Message) => void): void; - public cancelSubscription(): any; + // @todo Need to "palmbus" + public cancelSubscription(handle: any, ls2Message: any): void; - public cleanupUnified(): any; + public cleanupUnified(): void; - public idIsPrivileged(): any; + public idIsPrivileged(id: string): boolean; - public info(): any; + public info(message: Message): void; - public quit(): any; + public quit(message: Message): void; - public register(): any; + public register(name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record): Method; - public registerPrivate(): any; + public registerPrivate(name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record): Method; - public subscribe(): any; + public subscribe(uri: string, args: Record): Subscription; - private _dispatch(): any; + // @todo Need to "palmbus" + private _dispatch(handle: any, ls2Message: any): void; - private _register(): any; + private _register(privateBus: boolean, name: string, requestCallback?: (message: Message) => void, cancelCallback?: (message: Message) => void, description?: Record): Method; - private _registerBuiltInMethods(): any; + private _registerBuiltInMethods(privateBus: boolean): void; } -- cgit v1.2.3