use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSPersistentHistoryTransaction;
unsafe impl ClassType for NSPersistentHistoryTransaction {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSPersistentHistoryTransaction {
#[method_id(@__retain_semantics Other entityDescriptionWithContext:)]
pub unsafe fn entityDescriptionWithContext(
context: &NSManagedObjectContext,
) -> Option<Id<NSEntityDescription, Shared>>;
#[method_id(@__retain_semantics Other entityDescription)]
pub unsafe fn entityDescription() -> Option<Id<NSEntityDescription, Shared>>;
#[method_id(@__retain_semantics Other fetchRequest)]
pub unsafe fn fetchRequest() -> Option<Id<NSFetchRequest, Shared>>;
#[method_id(@__retain_semantics Other timestamp)]
pub unsafe fn timestamp(&self) -> Id<NSDate, Shared>;
#[method_id(@__retain_semantics Other changes)]
pub unsafe fn changes(&self) -> Option<Id<NSArray<NSPersistentHistoryChange>, Shared>>;
#[method(transactionNumber)]
pub unsafe fn transactionNumber(&self) -> i64;
#[method_id(@__retain_semantics Other storeID)]
pub unsafe fn storeID(&self) -> Id<NSString, Shared>;
#[method_id(@__retain_semantics Other bundleID)]
pub unsafe fn bundleID(&self) -> Id<NSString, Shared>;
#[method_id(@__retain_semantics Other processID)]
pub unsafe fn processID(&self) -> Id<NSString, Shared>;
#[method_id(@__retain_semantics Other contextName)]
pub unsafe fn contextName(&self) -> Option<Id<NSString, Shared>>;
#[method_id(@__retain_semantics Other author)]
pub unsafe fn author(&self) -> Option<Id<NSString, Shared>>;
#[method_id(@__retain_semantics Other token)]
pub unsafe fn token(&self) -> Id<NSPersistentHistoryToken, Shared>;
#[method_id(@__retain_semantics Other objectIDNotification)]
pub unsafe fn objectIDNotification(&self) -> Id<NSNotification, Shared>;
}
);