1 /*
2  * Copyright (c) 2024 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_NOTIFY_CREDENTIAL_AUTH_STATUS_REQ_H
17 #define OHOS_DM_IPC_NOTIFY_CREDENTIAL_AUTH_STATUS_REQ_H
18 
19 #include "ipc_req.h"
20 
21 namespace OHOS {
22 namespace DistributedHardware {
23 class IpcNotifyCredentialAuthStatusReq : public IpcReq {
24     DECLARE_IPC_MODEL(IpcNotifyCredentialAuthStatusReq);
25 
26 public:
27     /**
28      * @tc.name: IpcNotifyCredentialAuthStatusReq::GetProofInfo
29      * @tc.desc: Get proofInfo of the Ipc Notify Credential Auth Status Request
30      * @tc.type: FUNC
31      */
GetProofInfo()32     std::string GetProofInfo() const
33     {
34         return proofInfo_;
35     }
36 
37     /**
38      * @tc.name: IpcNotifyCredentialAuthStatusReq::SetProofInfo
39      * @tc.desc: Set proofInfo of the Ipc Notify Credential Auth Status Request
40      * @tc.type: FUNC
41      */
SetProofInfo(const std::string & proofInfo)42     void SetProofInfo(const std::string &proofInfo)
43     {
44         proofInfo_ = proofInfo;
45     }
46 
47     /**
48      * @tc.name: IpcNotifyCredentialAuthStatusReq::GetDeviceTypeId
49      * @tc.desc: Get DeviceType of the Ipc Notify Credential Auth Status Request
50      * @tc.type: FUNC
51      */
GetDeviceTypeId()52     uint16_t GetDeviceTypeId() const
53     {
54         return deviceTypeId_;
55     }
56 
57     /**
58      * @tc.name: IpcNotifyCredentialAuthStatusReq::SetDeviceTypeId
59      * @tc.desc: Set DeviceType of the Ipc Notify Credential Auth Status Request
60      * @tc.type: FUNC
61      */
SetDeviceTypeId(uint16_t deviceTypeId)62     void SetDeviceTypeId(uint16_t deviceTypeId)
63     {
64         deviceTypeId_ = deviceTypeId;
65     }
66 
67     /**
68      * @tc.name: IpcNotifyCredentialAuthStatusReq::GetErrCode
69      * @tc.desc: Get ErrCode of the Ipc Notify Credential Auth Status Request
70      * @tc.type: FUNC
71      */
GetErrCode()72     int32_t GetErrCode() const
73     {
74         return errcode_;
75     }
76 
77     /**
78      * @tc.name: IpcNotifyCredentialAuthStatusReq::SetErrCode
79      * @tc.desc: Set ErrCode of the Ipc Notify Credential Auth Status Request
80      * @tc.type: FUNC
81      */
SetErrCode(int32_t errcode)82     void SetErrCode(int32_t errcode)
83     {
84         errcode_ = errcode;
85     }
86 
87 private:
88     std::string proofInfo_;
89     uint16_t deviceTypeId_ = 0;
90     int32_t errcode_ = 0;
91 };
92 } // namespace DistributedHardware
93 } // namespace OHOS
94 #endif // OHOS_DM_IPC_NOTIFY_CREDENTIAL_AUTH_STATUS_REQ_H
95