2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.restconf.client.to;
10 import java.util.Collection;
11 import org.opendaylight.yangtools.yang.common.RpcError;
12 import org.opendaylight.yangtools.yang.common.RpcResult;
14 public final class RestRpcResult implements RpcResult {
16 private boolean succeeded;
17 private Object result;
18 private Collection<RpcError> errors;
20 public RestRpcResult(boolean succeeded,Object result,Collection<RpcError> errors){
21 this.succeeded = succeeded;
25 public RestRpcResult(boolean succeeded,Object result){
26 this.succeeded = succeeded;
31 public boolean isSuccessful() {
36 public Object getResult() {
41 public Collection<RpcError> getErrors() {
45 public boolean isSucceeded() {