use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSBatchDeleteRequest;
unsafe impl ClassType for NSBatchDeleteRequest {
#[inherits(NSObject)]
type Super = NSPersistentStoreRequest;
}
);
extern_methods!(
unsafe impl NSBatchDeleteRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithFetchRequest:)]
pub unsafe fn initWithFetchRequest(
this: Option<Allocated<Self>>,
fetch: &NSFetchRequest,
) -> Id<Self, Shared>;
#[method_id(@__retain_semantics Init initWithObjectIDs:)]
pub unsafe fn initWithObjectIDs(
this: Option<Allocated<Self>>,
objects: &NSArray<NSManagedObjectID>,
) -> Id<Self, Shared>;
#[method(resultType)]
pub unsafe fn resultType(&self) -> NSBatchDeleteRequestResultType;
#[method(setResultType:)]
pub unsafe fn setResultType(&self, resultType: NSBatchDeleteRequestResultType);
#[method_id(@__retain_semantics Other fetchRequest)]
pub unsafe fn fetchRequest(&self) -> Id<NSFetchRequest, Shared>;
}
);