use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntentResolutionResult, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResolutionResult")]
pub struct INWorkoutGoalUnitTypeResolutionResult;
);
#[cfg(feature = "INIntentResolutionResult")]
extern_conformance!(
unsafe impl NSObjectProtocol for INWorkoutGoalUnitTypeResolutionResult {}
);
#[cfg(feature = "INIntentResolutionResult")]
impl INWorkoutGoalUnitTypeResolutionResult {
extern_methods!(
#[cfg(feature = "INWorkoutGoalUnitType")]
#[unsafe(method(successWithResolvedWorkoutGoalUnitType:))]
#[unsafe(method_family = none)]
pub unsafe fn successWithResolvedWorkoutGoalUnitType(
resolved_workout_goal_unit_type: INWorkoutGoalUnitType,
) -> Retained<Self>;
#[cfg(feature = "INWorkoutGoalUnitType")]
#[deprecated]
#[unsafe(method(successWithResolvedValue:))]
#[unsafe(method_family = none)]
pub unsafe fn successWithResolvedValue(
resolved_value: INWorkoutGoalUnitType,
) -> Retained<Self>;
#[cfg(feature = "INWorkoutGoalUnitType")]
#[unsafe(method(confirmationRequiredWithWorkoutGoalUnitTypeToConfirm:))]
#[unsafe(method_family = none)]
pub unsafe fn confirmationRequiredWithWorkoutGoalUnitTypeToConfirm(
workout_goal_unit_type_to_confirm: INWorkoutGoalUnitType,
) -> Retained<Self>;
#[cfg(feature = "INWorkoutGoalUnitType")]
#[deprecated]
#[unsafe(method(confirmationRequiredWithValueToConfirm:))]
#[unsafe(method_family = none)]
pub unsafe fn confirmationRequiredWithValueToConfirm(
value_to_confirm: INWorkoutGoalUnitType,
) -> Retained<Self>;
);
}
#[cfg(feature = "INIntentResolutionResult")]
impl INWorkoutGoalUnitTypeResolutionResult {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(needsValue))]
#[unsafe(method_family = none)]
pub unsafe fn needsValue() -> Retained<Self>;
#[unsafe(method(notRequired))]
#[unsafe(method_family = none)]
pub unsafe fn notRequired() -> Retained<Self>;
#[unsafe(method(unsupported))]
#[unsafe(method_family = none)]
pub unsafe fn unsupported() -> Retained<Self>;
);
}
#[cfg(feature = "INIntentResolutionResult")]
impl INWorkoutGoalUnitTypeResolutionResult {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}