Quaero.DW.Reply

Static Methods

Fields

Properties

Quaero.DW.Reply

Quaero.DW.Reply Class

public class Quaero.DW.Reply : Quaero.DW.Json;
Base class for all REST replies.

status Field

System.String (Quaero.DW.Reply)reply.status;
Status of the reply. "OK" means request was successful. "error" means an error occured. See JSON status.

error Field

System.String (Quaero.DW.Reply)reply.error;
Short description of the error. See JSON error.

fault Field

System.String[] (Quaero.DW.Reply)reply.fault;
Longer description of the error. See JSON fault.

is_success Property

System.Boolean (Quaero.DW.Reply)reply.is_success;
Returns true of the request was succesful
System.String Quaero.DW.Reply.link_for(System.String rel, Quaero.DW.HATEOAS[] links);
Find a HATEOAS link for a given relationship.

Parameters

rel
The relationship.
[System.String]
links
List of HATEOAS lins.
[Quaero.DW.HATEOAS[]]

Returns

agent Property

Quaero.REST.Agent (Quaero.DW.Reply)reply.agent;
The REST agent.

our_agent Property

Quaero.REST.Agent (Quaero.DW.Reply)reply.our_agent;
Returns the REST agent. Throws an [Quaero.REST.Exceptions.OrphanObject] if we don't have an REST agent