Merge "Added the missing Copyright headers to most of the java files."
[netvirt.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / jsonrpc / JsonRpc10Response.java
1 /*
2  * Copyright (C) 2013 EBay Software Foundation
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Authors : Ashwin Raveendran, Madhu Venugopal
9  */
10 package org.opendaylight.ovsdb.lib.jsonrpc;
11
12 import java.util.List;
13
14 import com.fasterxml.jackson.databind.JsonNode;
15 import com.google.common.collect.Lists;
16
17 public class JsonRpc10Response {
18
19     String id;
20     String error;
21     List<Object> result = Lists.newArrayList();
22
23     public JsonRpc10Response(String id) {
24         setId(id);
25     }
26
27     public String getId() {
28         return id;
29     }
30
31     public void setId(String id) {
32         this.id = id;
33     }
34
35     public String getError() {
36         return error;
37     }
38
39     public void setError(String error) {
40         this.error = error;
41     }
42
43     public List<Object> getResult() {
44         return result;
45     }
46
47     public void setResult(List<Object> result) {
48         this.result = result;
49     }
50 }