public class

NAMessage

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.na.NAMessage

Class Overview

Class containing a message returned by the server.

Summary

Public Constructors
NAMessage()
Empty Constructor
NAMessage(int type, String description)
Constructor taking the type and description of the message
Public Methods
boolean equals(Object obj)
static NAMessage fromJson(JsonParser parser)
Creates a NAMessage object from a json representation
String getDescription()
Gets the text description of the message
int getType()
Gets the type of the message
int hashCode()
String toString()
Returns string representation of the class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NAMessage ()

Empty Constructor

public NAMessage (int type, String description)

Constructor taking the type and description of the message

Parameters
type int: The type of the message
description String: The text of the message

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static NAMessage fromJson (JsonParser parser)

Creates a NAMessage object from a json representation

Parameters
parser JsonParser: the parser containing the json
Returns
NAMessage NAMessage the object created from the json
Throws
Exception
Exception

public String getDescription ()

Gets the text description of the message

Returns
String the text description of the message

public int getType ()

Gets the type of the message

Returns
int the type of the message

public int hashCode ()

Returns
int

public String toString ()

Returns string representation of the class. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String