1 //
2 // Copyright 2017 Google, Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at:
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 #include "bluetooth/avrcp_media_attr.h"
18
19 namespace bluetooth {
20
21 AvrcpMediaAttr::AvrcpMediaAttr() = default;
22 AvrcpMediaAttr::AvrcpMediaAttr(const AvrcpMediaAttr& other) = default;
AvrcpMediaAttr(const std::string & title,const std::string & artist,const std::string & album,const std::string & genre,int track_num,int num_tracks,int play_time)23 AvrcpMediaAttr::AvrcpMediaAttr(const std::string& title,
24 const std::string& artist,
25 const std::string& album,
26 const std::string& genre, int track_num,
27 int num_tracks, int play_time)
28 : title_(title),
29 artist_(artist),
30 album_(album),
31 genre_(genre),
32 track_num_(track_num),
33 num_tracks_(num_tracks),
34 play_time_(play_time) {}
35
36 AvrcpMediaAttr::~AvrcpMediaAttr() = default;
37
38 } // namespace bluetooth
39