Companion
object Companion
Functions
Link copied to clipboard
fun fromDatabaseModelWithUser(attachmentUid: String, attachmentSize: Long, attachmentUri: String, attachmentUriLocal: String?, attachmentName: String?, attachmentDescription: String?, type: String?, module: String, moduleUid: String, fileHash: String?, createdBy: String?, mimeType: String?, thumbnailUrl: String?, createdAt: Long, updatedAt: Long, isDeleted: Long, createdByUserUid: String?, createdByFirstName: String?, createdByLastName: String?, createdByEmail: String?, createdByDesignation: String?, createdByEmpCode: String?, createdByPrefix: String?, createdByHomePhone: String?, createdByWorkPhone: String?, createdByMobilePhone: String?, createdByProfilePicture: String?, createdByIsActive: Boolean?, createdByIsDeleted: Boolean?, createdByCreatedAt: String?, createdByUpdatedAt: String?, isCompanyAttachment: Boolean, isCreatedByCustomer: Boolean, uploadStatus: ZyncUploadStatus?, tags: List<ZyncTag> = emptyList(), latitude: Double?, longitude: Double?): ZyncAttachment
Maps query results that include user information to Attachment domain model. Used for queries that JOIN with UserEntity table.