mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROD-2135 Files as object (#819)
This commit is contained in:
parent
d4d1b3ea3e
commit
a19d1bd8f7
86 changed files with 1256 additions and 1073 deletions
|
@ -92,7 +92,7 @@ fun StubFile(
|
|||
id: Id = MockDataFactory.randomUuid(),
|
||||
children: List<Id> = emptyList(),
|
||||
backgroundColor: String? = null,
|
||||
hash: String = MockDataFactory.randomString(),
|
||||
targetObjectId: Id = MockDataFactory.randomString(),
|
||||
name: String = MockDataFactory.randomString(),
|
||||
size: Long = MockDataFactory.randomLong(),
|
||||
type: Block.Content.File.Type? = null,
|
||||
|
@ -105,7 +105,7 @@ fun StubFile(
|
|||
content = Block.Content.File(
|
||||
size = size,
|
||||
name = name,
|
||||
hash = hash,
|
||||
targetObjectId = targetObjectId,
|
||||
type = type,
|
||||
state = state
|
||||
)
|
||||
|
|
|
@ -88,7 +88,7 @@ object MockBlockFactory {
|
|||
id = MockDataFactory.randomUuid(),
|
||||
fields = Block.Fields(emptyMap()),
|
||||
content = Block.Content.File(
|
||||
hash = MockDataFactory.randomUuid(),
|
||||
targetObjectId = MockDataFactory.randomUuid(),
|
||||
name = MockDataFactory.randomString(),
|
||||
state = Block.Content.File.State.DONE,
|
||||
mime = MockDataFactory.randomString(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue