Sha256: 193f03fe84db53d944891f111daecefa6c1e54f4d08f2d5e2b7ff4e3eda7e241

Contents?: true

Size: 568 Bytes

Versions: 45

Compression:

Stored size: 568 Bytes

Contents

package sh.calaba.instrumentationbackend.query;

import sh.calaba.org.codehaus.jackson.map.ObjectMapper;

import java.io.IOException;
import java.util.List;

public class QueryResult {

    private List result;

    public QueryResult(List result) {

        this.result = result;
    }


    public String asJson() {
        ObjectMapper mapper = new ObjectMapper();

        try {
            return mapper.writeValueAsString(result);
        } catch (IOException e) {
            throw new RuntimeException("Could not convert result to json", e);
        }
    }
}

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
testautoa-0.4.5 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.7.pre4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.7.pre3 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.7.pre2 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.7.pre1 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
testautoa-0.4.4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.6 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.5 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.5.pre1 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
testautoa-0.4.3 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
testautoa-0.4.2.pre1 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3.pre8 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3.pre7 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3.pre6 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3.pre5 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3.pre4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
calabash-android-0.4.3.pre3 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java
testautoa-0.4.2 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java