• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos.devtools.datasources.transport.hdc;
17 
18 import java.util.ArrayList;
19 
20 /**
21  * ExecResult the result
22  *
23  * @since 2021/8/25
24  */
25 public class ExecResult {
26     private int exitCode;
27     private ArrayList<String> executeOut;
28 
29     /**
30      * ExecResult
31      *
32      * @param exitCode exitCode
33      * @param executeOut executeOut
34      */
ExecResult(int exitCode, ArrayList<String> executeOut)35     public ExecResult(int exitCode, ArrayList<String> executeOut) {
36         super();
37         this.exitCode = exitCode;
38         this.executeOut = executeOut;
39     }
40 
41     /**
42      * getExitCode
43      *
44      * @return exitCode
45      */
getExitCode()46     public int getExitCode() {
47         return exitCode;
48 
49     }
50 
51     /**
52      * setExitCode
53      *
54      * @param exitCode exitCode
55      */
setExitCode(int exitCode)56     public void setExitCode(int exitCode) {
57         this.exitCode = exitCode;
58     }
59 
60     /**
61      * getExecuteOut
62      *
63      * @return ArrayList<String>
64      */
getExecuteOut()65     public ArrayList<String> getExecuteOut() {
66         return executeOut;
67     }
68 
69     /**
70      * setExecuteOut
71      *
72      * @param executeOut executeOut
73      */
setExecuteOut(ArrayList<String> executeOut)74     public void setExecuteOut(ArrayList<String> executeOut) {
75         this.executeOut = executeOut;
76     }
77 
78     @Override
toString()79     public String toString() {
80         return "ExecResult{" + "exitCode=" + exitCode + ", executeOut=" + executeOut + '}';
81     }
82 }
83