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 #include "opp_transfer_information.h"
17 #include "string"
18 
19 namespace OHOS {
20 namespace bluetooth {
GetId() const21 int IOppTransferInformation::GetId() const
22 {
23     return id_;
24 }
25 
SetId(int id)26 void IOppTransferInformation::SetId(int id)
27 {
28     id_ = id;
29 }
30 
GetFileName() const31 std::string IOppTransferInformation::GetFileName() const
32 {
33     return fileName_;
34 }
35 
SetFileName(const std::string & fileName)36 void IOppTransferInformation::SetFileName(const std::string &fileName)
37 {
38     fileName_ = fileName;
39 }
40 
GetFilePath() const41 std::string IOppTransferInformation::GetFilePath() const
42 {
43     return filePath_;
44 }
45 
SetFilePath(const std::string & filePath)46 void IOppTransferInformation::SetFilePath(const std::string &filePath)
47 {
48     filePath_ = filePath;
49 }
50 
GetFileType() const51 std::string IOppTransferInformation::GetFileType() const
52 {
53     return fileType_;
54 }
55 
SetFileType(const std::string & fileType)56 void IOppTransferInformation::SetFileType(const std::string &fileType)
57 {
58     fileType_ = fileType;
59 }
60 
GetDeviceName() const61 std::string IOppTransferInformation::GetDeviceName() const
62 {
63     return deviceName_;
64 }
65 
SetDeviceName(const std::string & deviceName)66 void IOppTransferInformation::SetDeviceName(const std::string &deviceName)
67 {
68     deviceName_ = deviceName;
69 }
70 
GetDeviceAddress() const71 std::string IOppTransferInformation::GetDeviceAddress() const
72 {
73     return deviceAddress_;
74 }
75 
SetDeviceAddress(const std::string & deviceAddress)76 void IOppTransferInformation::SetDeviceAddress(const std::string &deviceAddress)
77 {
78     deviceAddress_ = deviceAddress;
79 }
80 
GetDirection() const81 int IOppTransferInformation::GetDirection() const
82 {
83     return direction_;
84 }
85 
SetDirection(int direction)86 void IOppTransferInformation::SetDirection(int direction)
87 {
88     direction_ = direction;
89 }
90 
GetStatus() const91 int IOppTransferInformation::GetStatus() const
92 {
93     return status_;
94 }
95 
SetStatus(int status)96 void IOppTransferInformation::SetStatus(int status)
97 {
98     status_ = status;
99 }
100 
GetFailedReason() const101 int IOppTransferInformation::GetFailedReason() const
102 {
103     return failedReason_;
104 }
105 
SetFailedReason(int failedReason)106 void IOppTransferInformation::SetFailedReason(int failedReason)
107 {
108     failedReason_ = failedReason;
109 }
110 
GetTimeStamp() const111 uint64_t IOppTransferInformation::GetTimeStamp() const
112 {
113     return timeStamp_;
114 }
115 
SetTimeStamp(uint64_t timeStamp)116 void IOppTransferInformation::SetTimeStamp(uint64_t timeStamp)
117 {
118     timeStamp_ = timeStamp;
119 }
120 
GetCurrentBytes() const121 uint64_t IOppTransferInformation::GetCurrentBytes() const
122 {
123     return currentBytes_;
124 }
125 
SetCurrentBytes(uint64_t currentBytes)126 void IOppTransferInformation::SetCurrentBytes(uint64_t currentBytes)
127 {
128     currentBytes_ = currentBytes;
129 }
130 
GetTotalBytes() const131 uint64_t IOppTransferInformation::GetTotalBytes() const
132 {
133     return totalBytes_;
134 }
135 
SetTotalBytes(uint64_t totalBytes)136 void IOppTransferInformation::SetTotalBytes(uint64_t totalBytes)
137 {
138     totalBytes_ = totalBytes;
139 }
140 }  // namespace bluetooth
141 }  // namespace OHOS