use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MXMetric")]
pub struct MXNetworkTransferMetric;
#[cfg(feature = "MXMetric")]
unsafe impl ClassType for MXNetworkTransferMetric {
#[inherits(NSObject)]
type Super = MXMetric;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MXMetric")]
unsafe impl NSCoding for MXNetworkTransferMetric {}
#[cfg(feature = "MXMetric")]
unsafe impl NSObjectProtocol for MXNetworkTransferMetric {}
#[cfg(feature = "MXMetric")]
unsafe impl NSSecureCoding for MXNetworkTransferMetric {}
extern_methods!(
#[cfg(feature = "MXMetric")]
unsafe impl MXNetworkTransferMetric {
#[method_id(@__retain_semantics Other cumulativeWifiUpload)]
pub unsafe fn cumulativeWifiUpload(&self) -> Id<NSMeasurement<NSUnitInformationStorage>>;
#[method_id(@__retain_semantics Other cumulativeWifiDownload)]
pub unsafe fn cumulativeWifiDownload(&self) -> Id<NSMeasurement<NSUnitInformationStorage>>;
#[method_id(@__retain_semantics Other cumulativeCellularUpload)]
pub unsafe fn cumulativeCellularUpload(
&self,
) -> Id<NSMeasurement<NSUnitInformationStorage>>;
#[method_id(@__retain_semantics Other cumulativeCellularDownload)]
pub unsafe fn cumulativeCellularDownload(
&self,
) -> Id<NSMeasurement<NSUnitInformationStorage>>;
}
);
extern_methods!(
#[cfg(feature = "MXMetric")]
unsafe impl MXNetworkTransferMetric {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);