0
mirror of https://github.com/valentineus/webos-service-types.git synced 2025-04-28 00:41:24 +03:00

Finished class "Message" structure

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-20 14:07:26 +04:00
parent c74e8da089
commit a56871131a
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

35
dist/message.d.ts vendored Normal file
View File

@ -0,0 +1,35 @@
import { ActivityManager } from "./activity-manager";
import { Service } from "./service";
export declare class Message {
// @todo Need to "palmbus"
public constructor(message: any, handle: any, activityManager: ActivityManager, service: Service);
public readonly activityManager: ActivityManager;
public readonly category: string;
// @todo Need to "palmbus"
public readonly handle: any;
public readonly isSubscription: boolean;
public readonly ls2Message: any;
// @todo Need to "palmbus"
public readonly method: string;
public readonly payload: Record<string, any>;
public readonly sender: string;
public readonly service: Service;
public readonly token: string;
public readonly uniqueToken: string;
public cancel(response: Record<string, any>): void;
public respond(response: Record<string, any>): boolean;
}