This commit is contained in:
ろむねこ 2023-12-11 14:36:08 +09:00
parent 1566807d4d
commit 07b6434689
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -37,4 +37,20 @@ public class DocumentsImpl implements Documents {
return documentMetaList;
}
public ArrayList<DocumentMeta> getStarredDocuments(int limit) { // Generate dummy data
ArrayList<DocumentMeta> documentMetaList = new ArrayList<>();
for (int i = 0; i < limit; i++) {
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.id = UUID.randomUUID().toString();
documentMeta.name = "Document " + i;
documentMeta.created = new Date();
documentMeta.type = new Random(i).nextInt()/2 == 0 ? DocumentType.OTHER : DocumentType.NOTEBOOK;
documentMeta.tags = new String[] {"tag1", "tag2", "tag3"};
documentMeta.categories = new String[] {"category1", "category2", "category3"};
documentMetaList.add(documentMeta);
}
return documentMetaList;
}
}