refactored requestCacheReducer

This commit is contained in:
Art Lowel
2017-04-12 18:03:02 +02:00
parent 6212f5d114
commit 8e0d2bac9b
47 changed files with 1341 additions and 1309 deletions

View File

@@ -1,6 +1,8 @@
import { autoserialize, inheritSerialization } from "cerialize";
import { autoserialize, inheritSerialization, autoserializeAs } from "cerialize";
import { DSpaceObject } from "./dspace-object.model";
import { Bitstream } from "./bitstream.model";
import { Item } from "./item.model";
import { RemoteData } from "../data/remote-data";
@inheritSerialization(DSpaceObject)
export class Collection extends DSpaceObject {
@@ -54,7 +56,7 @@ export class Collection extends DSpaceObject {
/**
* The Bitstream that represents the logo of this Collection
*/
logo: Bitstream;
logo: RemoteData<Bitstream>;
/**
* An array of Collections that are direct parents of this Collection
@@ -66,4 +68,7 @@ export class Collection extends DSpaceObject {
*/
owner: Collection;
@autoserializeAs(RemoteData)
items: RemoteData<Item[]>;
}