Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995420
collection-response.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
681 B
Referenced Files
None
Subscribers
None
collection-response.ts
View Options
import
SealiousResponse
from
"./sealious-response"
;
import
Item
from
"./item"
;
export
default
class
CollectionResponse
extends
SealiousResponse
{
items
:
Item
[];
constructor
({
items
,
attachments
=
{},
fieldsWithAttachments
=
{},
}
:
{
items
:
Item
[];
attachments
:
{
[
id
:
string
]
:
Item
};
fieldsWithAttachments
:
{
[
field_name
:
string
]
:
{}
};
})
{
super
({
items
,
attachments
,
fieldsWithAttachments
});
this
.
items
=
items
;
}
toObject
()
{
return
{
items
:
this
.
items
,
attachments
:
this
.
_attachments
,
fieldsWithAttachments
:
this
.
_fieldsWithAttachments
,
};
}
get
length
()
{
return
this
.
items
.
length
;
}
get
empty
()
{
return
this
.
length
===
0
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 04:06 (12 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556809
Default Alt Text
collection-response.ts (681 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment