|
|
@@ -54,7 +54,6 @@ export declare interface Message { |
|
|
|
toClientId: string; |
|
|
|
timestamp: number; |
|
|
|
message: string | TextMessage | PictureMessage; |
|
|
|
describe: string; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@@ -62,7 +61,7 @@ export declare interface ISzyxPush { |
|
|
|
|
|
|
|
setBaseUrl(url: string) |
|
|
|
|
|
|
|
install(app, tenantNo: string, osType: OsType, url: string | null): Promise<void>; |
|
|
|
install(app, tenantNo: string, osType: OsType, url?: string): Promise<void>; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@@ -71,7 +70,7 @@ export declare interface ISzyxPush { |
|
|
|
* @param osType 设备类型 {@link OsType} |
|
|
|
* @param url 服务端地址,可以不传 |
|
|
|
*/ |
|
|
|
init(tenantNo: string, osType: OsType, url: string | null): Promise<void>; |
|
|
|
init(tenantNo: string, osType: OsType, url?: string): Promise<void>; |
|
|
|
|
|
|
|
register(userId: string): Promise<void>; |
|
|
|
|
|
|
@@ -88,5 +87,5 @@ export declare interface ISzyxPush { |
|
|
|
*/ |
|
|
|
unMessage(callId): void; |
|
|
|
|
|
|
|
sendTextMsg(userId: string, text: string): Promise<Message>; |
|
|
|
sendTextMsg(userId: string, text: string, describe?: string): Promise<Message>; |
|
|
|
} |