1
0
Fork 0
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:
Konstantin Ivanov 2024-02-04 12:12:19 +01:00 committed by GitHub
parent d4d1b3ea3e
commit a19d1bd8f7
Signed by: github
GPG key ID: B5690EEEBB952194
86 changed files with 1256 additions and 1073 deletions

View file

@ -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
)

View file

@ -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(),