ZyncAddNoteContent

data class ZyncAddNoteContent(val note: String?, val noteType: String, val canNotifyOthers: Boolean, val noteVisibilityType: ZyncNoteVisibilityType, val attachments: List<ZyncNoteAttachment>?, val userMentions: List<String>?, val associatedJob: ZyncNoteAssociatedJob?, val associatedCustomer: ZyncNoteAssociatedCustomer?, val associatedOrganization: ZyncNoteAssociatedOrganization?, val associatedProperty: ZyncNoteAssociatedProperty?, val associatedAsset: ZyncNoteAssociatedAsset?, val associatedQuote: ZyncNoteAssociatedQuote?, val associatedInvoice: ZyncNoteAssociatedInvoice?, val associatedContract: ZyncNoteAssociatedContract?, val associatedRequest: ZyncNoteAssociatedRequest?, val associatedProject: ZyncNoteAssociatedProject?, val primaryModule: ZyncNotePrimaryModule, val isPinned: Boolean, val geoCoordinates: List<Double>?)

Content model for creating a new note with all associated metadata and relationships.

This data class encapsulates all the information needed to create a comprehensive note including attachments, user mentions, module associations, and geographic data.

Parameters

note

The text content of the note. Can be null for non-text note types.

noteType

Type of note (e.g., "TEXT", "AUDIO", "IMAGE", "VIDEO").

canNotifyOthers

Whether this note can trigger notifications to other users.

noteVisibilityType

Visibility level controlling who can see this note.

attachments

List of file attachments associated with this note.

userMentions

List of user UIDs mentioned in this note for notifications.

associatedJob

Job association details if this note is linked to a job.

associatedCustomer

Customer association details if this note is linked to a customer.

associatedOrganization

Organization association details if this note is linked to an organization.

associatedProperty

Property association details if this note is linked to a property.

associatedAsset

Asset association details if this note is linked to an asset.

associatedQuote

Quote/estimate association details if this note is linked to a quote.

associatedInvoice

Invoice association details if this note is linked to an invoice.

associatedContract

Contract association details if this note is linked to a contract.

associatedRequest

Service request association details if this note is linked to a request.

associatedProject

Project association details if this note is linked to a project.

primaryModule

Primary module this note belongs to (required for proper categorization).

isPinned

Whether this note should be pinned for priority visibility.

geoCoordinates

Geographic coordinates latitude, longitude where the note was created.

Constructors

Link copied to clipboard
constructor(note: String?, noteType: String, canNotifyOthers: Boolean, noteVisibilityType: ZyncNoteVisibilityType, attachments: List<ZyncNoteAttachment>?, userMentions: List<String>?, associatedJob: ZyncNoteAssociatedJob?, associatedCustomer: ZyncNoteAssociatedCustomer?, associatedOrganization: ZyncNoteAssociatedOrganization?, associatedProperty: ZyncNoteAssociatedProperty?, associatedAsset: ZyncNoteAssociatedAsset?, associatedQuote: ZyncNoteAssociatedQuote?, associatedInvoice: ZyncNoteAssociatedInvoice?, associatedContract: ZyncNoteAssociatedContract?, associatedRequest: ZyncNoteAssociatedRequest?, associatedProject: ZyncNoteAssociatedProject?, primaryModule: ZyncNotePrimaryModule, isPinned: Boolean, geoCoordinates: List<Double>?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val note: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard