Skip to content

Commit 3f4cc29

Browse files
author
Ankur Gupta
committed
Methods related to FileUpload and Files retrieval
1 parent 530c1a5 commit 3f4cc29

File tree

3 files changed

+328
-222
lines changed

3 files changed

+328
-222
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package de.tud.cs.stg.zenodo;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
5+
/**
6+
* Created by agupta on 19.11.2018.
7+
*/
8+
9+
@JsonIgnoreProperties(ignoreUnknown = true)
10+
public class DepositionFile {
11+
12+
public String id;
13+
public String filename;
14+
public Integer filesize;
15+
public String checksum;
16+
17+
public Links links;
18+
19+
20+
/**
21+
* Created by agupta on 19.11.18.
22+
*/
23+
@JsonIgnoreProperties(ignoreUnknown = true)
24+
public static class Links {
25+
public String download;
26+
public String self;
27+
}
28+
29+
30+
}
31+
32+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package de.tud.cs.stg.zenodo;
2+
3+
import java.io.File;
4+
5+
public class FileMetadata {
6+
7+
public FileMetadata(File f) {
8+
this.file =f;
9+
}
10+
11+
public File file;
12+
}

0 commit comments

Comments
 (0)