Class NSAttachmentEntity
Constructors
NSAttachmentEntity()
Initializes a new instance of the NSAttachmentEntity class.
Declaration
NSAttachmentEntity Methods
GetAttachmentId()
Declaration
Integer GetAttachmentId() Examples
NSAttachmentEntity thing;
Integer attachmentId = thing.GetAttachmentId();
Returns
| Type | Description |
| Integer | The primary key (auto-incremented). |
GetAttSize()
Declaration
Integer GetAttSize() Examples
NSAttachmentEntity thing;
Integer attSize = thing.GetAttSize();
Returns
| Type | Description |
| Integer | The size (in bytes) for the attachment. |
GetContentId()
Declaration
String GetContentId() Examples
NSAttachmentEntity thing;
String contentId = thing.GetContentId();
Returns
| Type | Description |
| String | The content_id of this attachment, used for inline images. |
GetContentType()
Declaration
String GetContentType() Examples
NSAttachmentEntity thing;
String contentType = thing.GetContentType();
Returns
| Type | Description |
| String | The content type for the attachment. |
GetInlineImage()
Declaration
Bool GetInlineImage() Examples
NSAttachmentEntity thing;
Bool inlineImage = thing.GetInlineImage();
Returns
| Type | Description |
| Bool | True if this attachment is inlined in the html_body. |
GetName()
Declaration
String GetName() Examples
NSAttachmentEntity thing;
String name = thing.GetName();
Returns
| Type | Description |
| String | The filename for the attachment. |
SetAttachmentId(Integer)
Declaration
Void SetAttachmentId(Integer attachmentId) Examples
NSAttachmentEntity thing;
Integer attachmentId;
thing.SetAttachmentId(attachmentId);
Parameters
| Type | Name | Description |
| Integer | attachmentId | The primary key (auto-incremented). |
Returns
| Type | Description |
| Void |
SetAttSize(Integer)
Declaration
Void SetAttSize(Integer attSize) Examples
NSAttachmentEntity thing;
Integer attSize;
thing.SetAttSize(attSize);
Parameters
| Type | Name | Description |
| Integer | attSize | The size (in bytes) for the attachment. |
Returns
| Type | Description |
| Void |
SetContentId(String)
Declaration
Void SetContentId(String contentId) Examples
NSAttachmentEntity thing;
String contentId;
thing.SetContentId(contentId);
Parameters
| Type | Name | Description |
| String | contentId | The content_id of this attachment, used for inline images. |
Returns
| Type | Description |
| Void |
SetContentType(String)
Declaration
Void SetContentType(String contentType) Examples
NSAttachmentEntity thing;
String contentType;
thing.SetContentType(contentType);
Parameters
| Type | Name | Description |
| String | contentType | The content type for the attachment. |
Returns
| Type | Description |
| Void |