1// Copyright 2021 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
45use crate::core::{Core, ObjectRef, OnAdded, Property};
67#[derive(Debug, Default)]
8pub struct TransitionCondition {
9 input_id: Property<u64>,
10}
1112impl ObjectRef<'_, TransitionCondition> {
13pub fn input_id(&self) -> u64 {
14self.input_id.get()
15 }
1617pub fn set_input_id(&self, input_id: u64) {
18self.input_id.set(input_id);
19 }
20}
2122impl Core for TransitionCondition {
23properties![(155, input_id, set_input_id)];
24}
2526impl OnAdded for ObjectRef<'_, TransitionCondition> {
27on_added!();
28}