All files / src/Services/ProcessIsoCurve/Response/model ProcessIsoCurveResponse.js

91.66% Statements 11/12
50% Branches 1/2
100% Functions 1/1
91.66% Lines 11/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46                                  1x       1x   1x   1x 1x 1x   1x   1x   1x   1x     1x              
 
/**
 * Response object for {@link module:Services~isoCurve Gp.Services.isoCurve ()} invocation when successful. Received as the argument of onSuccess callback function.
 *
 * @property {Float} distance - distance (expressed in meters) used for the request.
 * @property {Float} time - time (expressed in seconds) used for the request.
 * @property {Object} geometry - Geometry (expressed in [GeoJSON]{@link http://geojson.org/}) of the isocurve.
 * @property {String} id - request id (used by underlying webservice).
 * @property {Gp.Point} location - Position of the start or end point used for the request (expressed in "srs" coordinates system).
 * @property {String} message - message
 * @property {String} srs - Identifier of the coordinates system used for the isocurve.
 *
 * @namespace
 * @alias Gp.Services.IsoCurveResponse
 *
 */
function ProcessIsoCurveResponse () {
    Iif (!(this instanceof ProcessIsoCurveResponse)) {
        throw new TypeError("ProcessIsoCurveResponse constructor cannot be called as a function.");
    }
 
    this.message = null;
 
    this.id = null;
 
    this.location = {};
    this.location.x = null;
    this.location.y = null;
 
    this.srs = null;
 
    this.geometry = null;
 
    this.time = null;
 
    this.distance = null;
}
 
ProcessIsoCurveResponse.prototype = {
 
    constructor : ProcessIsoCurveResponse
 
};
 
export default ProcessIsoCurveResponse;