|
@@ -9,11 +9,12 @@ export type AssetSendedCallback = (assetUri:string)=>Promise<boolean>;
|
|
export type AssetType = "empty" | "image"
|
|
export type AssetType = "empty" | "image"
|
|
const RevcChangeEvent = "app.recv.change"
|
|
const RevcChangeEvent = "app.recv.change"
|
|
class AssetListener {
|
|
class AssetListener {
|
|
- id = nanoid();
|
|
|
|
|
|
+ id = "";
|
|
type = "empty" as AssetType;
|
|
type = "empty" as AssetType;
|
|
-
|
|
|
|
- constructor(public actionName:string, public callback: AssetSendedCallback){}
|
|
|
|
-
|
|
|
|
|
|
+ constructor(public actionName:string, public callback: AssetSendedCallback){
|
|
|
|
+ this.id = actionName;
|
|
|
|
+ }
|
|
|
|
+
|
|
toJson() {
|
|
toJson() {
|
|
return {
|
|
return {
|
|
id: this.id,
|
|
id: this.id,
|