Class NSTicketMessageHeader
Contains information about a header connected to a ticket message.
Syntax
Constructors
NSTicketMessageHeader()
Initializes a new instance of the NSTicketMessageHeader class.
Declaration
NSTicketMessageHeader
Methods
GetName()
Contains information about a header connected to a ticket message.
Declaration
String GetName()
Returns
| Type | Description |
|---|---|
| String | The name of the header. This can for example be To, Cc or other custom headers that is set up in Service. |
Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers = message.GetMessageHeaders();
for(Integer i = 0; i < headers.length(); i++)
{
printLine(headers[i].GetName());
}
GetValue()
Contains information about a header connected to a ticket message.
Declaration
String GetValue()
Returns
| Type | Description |
|---|---|
| String | The value of the header. |
Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers = message.GetMessageHeaders();
for(Integer i = 0; i < headers.length(); i++)
{
printLine(headers[i].GetValue());
}
SetName(String)
Contains information about a header connected to a ticket message.
Declaration
String SetName(String name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | The name of the header. This can for example be To, Cc or other custom headers that is set up in Service. |
Returns
| Type | Description |
|---|---|
| Void |
Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers ;
NSTicketMessageHeader to;
to.SetName("To");
to.SetValue("noreply@noreply.com");
headers.pushBack(to);
SetValue(String)
Contains information about a header connected to a ticket message.
Declaration
String SetValue(String)
Parameters
| Type | Name | Description |
|---|---|---|
| String | value | The value of the header. |
Returns
| Type | Description |
|---|---|
| Void |
Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers ;
NSTicketMessageHeader to;
to.SetName("To");
to.SetValue("noreply@noreply.com");
headers.pushBack(to);