1 /* 2 * Copyright (c) 2022 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 #ifndef OHOS_DM_IPC_SET_CREDENTIAL_RSP_H 17 #define OHOS_DM_IPC_SET_CREDENTIAL_RSP_H 18 19 #include <vector> 20 21 #include "dm_device_info.h" 22 #include "ipc_rsp.h" 23 24 namespace OHOS { 25 namespace DistributedHardware { 26 class IpcSetCredentialRsp : public IpcRsp { 27 DECLARE_IPC_MODEL(IpcSetCredentialRsp); 28 29 public: 30 /** 31 * @tc.name: IpcSetCredentialRsp::GetCredentialResult 32 * @tc.desc: Ipc Set Credential Response Get CredentialResult 33 * @tc.type: FUNC 34 */ GetCredentialResult()35 const std::string &GetCredentialResult() const 36 { 37 return credentialResult_; 38 } 39 40 /** 41 * @tc.name: IpcSetCredentialRsp::SetCredentialResult 42 * @tc.desc: Ipc Set Credential Response Set CredentialResult 43 * @tc.type: FUNC 44 */ SetCredentialResult(const std::string & credentialResult)45 void SetCredentialResult(const std::string &credentialResult) 46 { 47 credentialResult_ = credentialResult; 48 } 49 50 private: 51 std::string credentialResult_; 52 }; 53 } // namespace DistributedHardware 54 } // namespace OHOS 55 #endif // OHOS_DM_IPC_SET_CREDENTIAL_RSP_H 56