1/*
2 * Copyright (C) 2021 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 "avrcp_media.h"
17#include "string"
18#include "vector"
19
20namespace OHOS {
21namespace bluetooth {
22AvrcMpItem::AvrcMpItem(uint8_t itemType, uint16_t playerId, uint8_t majorType, uint32_t subType, uint8_t playStatus,
23    const std::vector<uint8_t> &features, const std::string &name)
24    : itemType_(itemType),
25      playerId_(playerId),
26      majorType_(majorType),
27      subType_(subType),
28      playStatus_(playStatus),
29      features_(features),
30      name_(name)
31{}
32AvrcMeItem::AvrcMeItem(uint8_t itemType, uint64_t uid, uint8_t type, uint8_t playable, const std::string &name,
33    const std::vector<uint32_t> &attributes, const std::vector<std::string> &values)
34    : itemType_(itemType),
35      uid_(uid),
36      type_(type),
37      playable_(playable),
38      name_(name),
39      attributes_(attributes),
40      values_(values)
41{}
42}  // namespace bluetooth
43}  // namespace OHOS