Search in this section

Child pages
  • Result Element
Skip to end of metadata
Go to start of metadata


Table of contents

Description

The result element defines the structure of the result of an answer which is sent from the API.

Structure

KeyOccursFormatDescription
result


result / data0 - nData ( Component )

The data which belong to the result

result / status1Status ( Component )The status of the result
result / msg0 - nMessage ( Component )The messages which belong to the result

XML Example

XML Example
<result>
    <data>
	...
	</data>
	<status>
	...
	</status>
	<msg>
	...
	</msg>
	<msg>
	...
	</msg>
</result>

Code Example

Where Component Java
@XmlRootElement(name = "result")
public class Result {

    @XmlElement(name="data")
    private List<Data> data;

    @XmlElement(name="status")
    private Status status;

    @XmlElement(name="msg")
    private List<Message> msg;

 	/* Getter + Setter */

}
Where Component PHP
class Result {

    /**
     *
     * @var type List<Data>
     */
    public $data;

    /**
     *
     * @var type Status
     */
    public $status;

    /**
     *
     * @var type List<Message>
     */
    public $msg;


 	/* Getter + Setter */

}
Where Component C#
public class Result {

    private List<Data> data;

    private Status status;

    private List<Message> msg;

 	/* Getter + Setter */

}