1 /* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.internal.telephony.cat; 18 19 public class CatResponseMessage { 20 CommandDetails cmdDet = null; 21 ResultCode resCode = ResultCode.OK; 22 int usersMenuSelection = 0; 23 String usersInput = null; 24 boolean usersYesNoSelection = false; 25 boolean usersConfirm = false; 26 27 public CatResponseMessage(CatCmdMessage cmdMsg) { 28 this.cmdDet = cmdMsg.mCmdDet; 29 } 30 31 public void setResultCode(ResultCode resCode) { 32 this.resCode = resCode; 33 } 34 35 public void setMenuSelection(int selection) { 36 this.usersMenuSelection = selection; 37 } 38 39 public void setInput(String input) { 40 this.usersInput = input; 41 } 42 43 public void setYesNo(boolean yesNo) { 44 usersYesNoSelection = yesNo; 45 } 46 47 public void setConfirmation(boolean confirm) { 48 usersConfirm = confirm; 49 } 50 51 CommandDetails getCmdDetails() { 52 return cmdDet; 53 } 54 }