You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
887 B

import type { SolidContainer } from "../../../resources/SolidContainer";
import { ResourceSuccess, SuccessResult } from "@ldo/connected";
/**
* Indicates that the request to check if a resource is the root container was
* a success.
*/
export class CheckRootContainerSuccess extends ResourceSuccess<SolidContainer> {
type = "checkRootContainerSuccess" as const;
/**
* True if this resoure is the root container
*/
isRootContainer: boolean;
constructor(resource: SolidContainer, isRootContainer: boolean) {
super(resource);
this.isRootContainer = isRootContainer;
}
}
export class GetStorageContainerFromWebIdSuccess extends SuccessResult {
type = "getStorageContainerFromWebIdSuccess" as const;
storageContainers: SolidContainer[];
constructor(storageContainers: SolidContainer[]) {
super();
this.storageContainers = storageContainers;
}
}