Class NSTicketMessageHeader
Contains information about a header connected to a ticket message.
Constructors
NSTicketMessageHeader()
Initializes a new instance of the NSTicketMessageHeader class.
Declaration
NSTicketMessageHeader Methods
GetName()
Declaration
String GetName() Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers = message.GetMessageHeaders();
for(Integer i = 0; i < headers.length(); i++)
{
printLine(headers[i].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. |
GetValue()
Declaration
String GetValue() Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers = message.GetMessageHeaders();
for(Integer i = 0; i < headers.length(); i++)
{
printLine(headers[i].GetValue());
}
Returns
| Type | Description |
| String | The value of the header. |
SetName(String)
Declaration
String SetName(String name) Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers ;
NSTicketMessageHeader to;
to.SetName("To");
to.SetValue("noreply@noreply.com");
headers.pushBack(to);
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 |
SetValue(String)
Declaration
String SetValue(String) Examples
NSTicketAgent agent;
NSTicketMessage message = agent.GetTicketMessageEntity(12);
NSTicketMessageHeader[] headers ;
NSTicketMessageHeader to;
to.SetName("To");
to.SetValue("noreply@noreply.com");
headers.pushBack(to);
Parameters
| Type | Name | Description |
| String | value | The value of the header. |
Returns
| Type | Description |
| Void |