> KASClient > KASImageAttachment

Class: KASImageAttachment

Hierarchy

KASAttachment

↳ KASImageAttachment

KASRichImageAttachment

Index

Properties

Methods


Properties

attachmentId

● attachmentId: string = ""


fileName

● fileName: string = ""


generateThumbnailServerUrl

● generateThumbnailServerUrl: boolean = false


hasSetThumbnail

● hasSetThumbnail: boolean = false


height

● height: number = 0


localPath

● localPath: string = ""


requireHighResThumbnail

● requireHighResThumbnail: boolean = false


serverPath

● serverPath: string = ""


size

● size: number = 0


thumbnail

● thumbnail: string = ""


thumbnailServerUrl

● thumbnailServerUrl: string = ""


type

● type: KASAttachmentType = KASAttachmentType.Image


width

● width: number = 0


Methods

toJSON

toJSON(): JSON

Returns: JSON


<Static> fromJSON

fromJSON(object: any): KASImageAttachment

Parameters:

Name Type
object any

Returns: KASImageAttachment


<Static> hasLocalPath

hasLocalPath(obj: KASAttachment): boolean

Parameters:

Name Type
obj KASAttachment

Returns: boolean


<Static> hasServerPath

hasServerPath(obj: KASAttachment): boolean

Parameters:

Name Type
obj KASAttachment

Returns: boolean


<Static> populateModelFromJSON

populateModelFromJSON(attachment: KASImageAttachment, object: JSON): void

Parameters:

Name Type
attachment KASImageAttachment
object JSON

Returns: void