Compartilhar via


>KASClient>KASAttachment

Classe: KASAttachment

Hierarquia

KASAttachment

KASAudioAttachment

KASImageAttachment

KASVideoAttachment

Índice

Propriedades

Métodos


Propriedades

attachmentId

● attachmentId: string = ""


fileName

● fileName: string = ""


hasSetThumbnail

● hasSetThumbnail: boolean = false


Localpath

● localPath: string = ""


requireHighResThumbnail

● exigirHighResThumbnail: boolean = false


serverPath

● serverPath: string = ""


size

● tamanho: number = 0


Miniatura

● miniatura: string = ""


type

● tipo: KASAttachmentType = KASAttachmentType.Image


Métodos

toJSON

toJSON(): JSON

As seguintes teclas de cadeia de caracteres("ty", "afn", "asb", etc.) DEVE estar em sincronização com a representação do modelo de objeto Attachment no código iOS e Android. Isso é vital para serialização e desserialização adequadas sobre a ponte KAS.

Retorna:JSON


<Static> fromJSON

fromJSON(object: any): KASAttachment

Parâmetros:

Nome Tipo
objeto any

Returns:KASAttachment


<Static> hasLocalPath

hasLocalPath(obj: KASAttachment): boolean

Parâmetros:

Nome Tipo
Obj KASAttachment

Retorna:boolean


<Static> hasServerPath

hasServerPath(obj: KASAttachment): boolean

Parâmetros:

Nome Tipo
Obj KASAttachment

Retorna:boolean


<Static> populateModelFromJSON

populateModelFromJSON(anexo: KASAttachment, object: JSON): void

Parâmetros:

Nome Tipo
anexo KASAttachment
objeto JSON

Retorna:void