Add serverside file id to file structure
This commit is contained in:
44
draft/library/wsf_js_widget/kernel/input/wsf_file.e
Normal file
44
draft/library/wsf_js_widget/kernel/input/wsf_file.e
Normal file
@@ -0,0 +1,44 @@
|
||||
note
|
||||
description: "Summary description for {WSF_FILE}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_FILE
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature {NONE}
|
||||
|
||||
make (a_name, a_type: STRING; a_size: INTEGER; a_id: detachable STRING)
|
||||
do
|
||||
name := a_name
|
||||
type := a_type
|
||||
size := a_size
|
||||
id := a_id
|
||||
end
|
||||
|
||||
feature
|
||||
|
||||
set_id (a_id: detachable STRING)
|
||||
do
|
||||
id := a_id
|
||||
end
|
||||
|
||||
feature --Properties
|
||||
|
||||
name: STRING
|
||||
-- File name
|
||||
|
||||
type: STRING
|
||||
-- File mime type
|
||||
|
||||
size: INTEGER
|
||||
-- File size
|
||||
|
||||
id: detachable STRING
|
||||
-- Server side file id (e.g. S3 filename)
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user