1 /*
2  * Copyright (c) 2023-2023 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 #include "publish_event_adapter.h"
17 
18 namespace OHOS {
19 namespace UserIam {
20 namespace UserAuth {
21 
GetInstance()22 PublishEventAdapter &PublishEventAdapter::GetInstance()
23 {
24     static PublishEventAdapter instance;
25     return instance;
26 }
27 
PublishDeletedEvent(int32_t userId)28 void PublishEventAdapter::PublishDeletedEvent(int32_t userId)
29 {
30     (void)userId;
31 }
32 
PublishCreatedEvent(int32_t userId,uint64_t scheduleId)33 void PublishEventAdapter::PublishCreatedEvent(int32_t userId, uint64_t scheduleId)
34 {
35     (void)userId;
36     (void)scheduleId;
37 }
38 
PublishUpdatedEvent(int32_t userId,uint64_t scheduleId)39 void PublishEventAdapter::PublishUpdatedEvent(int32_t userId, uint64_t scheduleId)
40 {
41     (void)userId;
42     (void)scheduleId;
43 }
44 
CachePinUpdateParam(int32_t userId,uint64_t scheduleId,uint64_t credentialId)45 void PublishEventAdapter::CachePinUpdateParam(int32_t userId, uint64_t scheduleId, uint64_t credentialId)
46 {
47     userId_ = userId;
48     scheduleId_ = scheduleId;
49     credentialId_ = credentialId;
50 }
51 
PublishCredentialUpdatedEvent(int32_t userId,int32_t authType,uint32_t credentialCount)52 void PublishEventAdapter::PublishCredentialUpdatedEvent(int32_t userId, int32_t authType, uint32_t credentialCount)
53 {
54     (void)userId;
55     (void)authType;
56     (void)credentialCount;
57 }
58 
59 } // namespace UserAuth
60 } // namespace UserIam
61 } // namespace OHOS