158ec469eSopenharmony_ci/*
258ec469eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
358ec469eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
458ec469eSopenharmony_ci * you may not use this file except in compliance with the License.
558ec469eSopenharmony_ci * You may obtain a copy of the License at
658ec469eSopenharmony_ci *
758ec469eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
858ec469eSopenharmony_ci *
958ec469eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1058ec469eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1158ec469eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1258ec469eSopenharmony_ci * See the License for the specific language governing permissions and
1358ec469eSopenharmony_ci * limitations under the License.
1458ec469eSopenharmony_ci */
1558ec469eSopenharmony_ci
1658ec469eSopenharmony_ci#ifndef LIGHT_ANIMATION_IPC_H
1758ec469eSopenharmony_ci#define LIGHT_ANIMATION_IPC_H
1858ec469eSopenharmony_ci
1958ec469eSopenharmony_ci#include "parcel.h"
2058ec469eSopenharmony_ci
2158ec469eSopenharmony_cinamespace OHOS {
2258ec469eSopenharmony_cinamespace Sensors {
2358ec469eSopenharmony_ciclass LightAnimationIPC : public Parcelable {
2458ec469eSopenharmony_cipublic:
2558ec469eSopenharmony_ci    LightAnimationIPC() = default;
2658ec469eSopenharmony_ci    virtual ~LightAnimationIPC() = default;
2758ec469eSopenharmony_ci    int32_t GetMode() const;
2858ec469eSopenharmony_ci    void SetMode(int32_t mode);
2958ec469eSopenharmony_ci    int32_t GetOnTime() const;
3058ec469eSopenharmony_ci    void SetOnTime(int32_t onTime);
3158ec469eSopenharmony_ci    int32_t GetOffTime() const;
3258ec469eSopenharmony_ci    void SetOffTime(int32_t offTime);
3358ec469eSopenharmony_ci    bool ReadFromParcel(Parcel &parcel);
3458ec469eSopenharmony_ci    static std::unique_ptr<LightAnimationIPC> Unmarshalling(Parcel &parcel);
3558ec469eSopenharmony_ci    virtual bool Marshalling(Parcel &parcel) const override;
3658ec469eSopenharmony_ci
3758ec469eSopenharmony_ciprivate:
3858ec469eSopenharmony_ci    int32_t mode_ = 0;
3958ec469eSopenharmony_ci    int32_t onTime_ = 0;
4058ec469eSopenharmony_ci    int32_t offTime_ = 0;
4158ec469eSopenharmony_ci};
4258ec469eSopenharmony_ci} // namespace Sensors
4358ec469eSopenharmony_ci} // namespace OHOS
4458ec469eSopenharmony_ci#endif // LIGHT_ANIMATION_IPC_H
45