/* * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "opp_transfer_information.h" #include "string" namespace OHOS { namespace bluetooth { int IOppTransferInformation::GetId() const { return id_; } void IOppTransferInformation::SetId(int id) { id_ = id; } std::string IOppTransferInformation::GetFileName() const { return fileName_; } void IOppTransferInformation::SetFileName(const std::string &fileName) { fileName_ = fileName; } std::string IOppTransferInformation::GetFilePath() const { return filePath_; } void IOppTransferInformation::SetFilePath(const std::string &filePath) { filePath_ = filePath; } std::string IOppTransferInformation::GetFileType() const { return fileType_; } void IOppTransferInformation::SetFileType(const std::string &fileType) { fileType_ = fileType; } std::string IOppTransferInformation::GetDeviceName() const { return deviceName_; } void IOppTransferInformation::SetDeviceName(const std::string &deviceName) { deviceName_ = deviceName; } std::string IOppTransferInformation::GetDeviceAddress() const { return deviceAddress_; } void IOppTransferInformation::SetDeviceAddress(const std::string &deviceAddress) { deviceAddress_ = deviceAddress; } int IOppTransferInformation::GetDirection() const { return direction_; } void IOppTransferInformation::SetDirection(int direction) { direction_ = direction; } int IOppTransferInformation::GetStatus() const { return status_; } void IOppTransferInformation::SetStatus(int status) { status_ = status; } int IOppTransferInformation::GetFailedReason() const { return failedReason_; } void IOppTransferInformation::SetFailedReason(int failedReason) { failedReason_ = failedReason; } uint64_t IOppTransferInformation::GetTimeStamp() const { return timeStamp_; } void IOppTransferInformation::SetTimeStamp(uint64_t timeStamp) { timeStamp_ = timeStamp; } uint64_t IOppTransferInformation::GetCurrentBytes() const { return currentBytes_; } void IOppTransferInformation::SetCurrentBytes(uint64_t currentBytes) { currentBytes_ = currentBytes; } uint64_t IOppTransferInformation::GetTotalBytes() const { return totalBytes_; } void IOppTransferInformation::SetTotalBytes(uint64_t totalBytes) { totalBytes_ = totalBytes; } } // namespace bluetooth } // namespace OHOS