// SPDX-FileCopyrightText: Politik im Blick developers
// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
//
// SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2

use crate::traits::ForInventory;

impl ForInventory for pib_service_api_types::body::by_id::meeting::MeetingState {
    type InventoryType = pib_service_inventory::MeetingState;

    fn for_inventory(self) -> Self::InventoryType {
        match self {
            Self::Appointed => pib_service_inventory::MeetingState::Appointed,
            Self::Invited => pib_service_inventory::MeetingState::Invited,
            Self::Executed => pib_service_inventory::MeetingState::Executed,
        }
    }
}
