mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
34 lines
677 B
Plaintext
34 lines
677 B
Plaintext
/*
|
|
* NotificationStatistics.j
|
|
* CPTextViewDelegateAndNotifications
|
|
*
|
|
* Created by Martin Carlberg on December 22, 2017.
|
|
* Copyright 2017, Oops AB All rights reserved.
|
|
*/
|
|
|
|
@import <Foundation/CPObject.j>
|
|
|
|
@implementation NotificationStatistics : CPObject {
|
|
CPString name @accessors;
|
|
CPUInteger order @accessors;
|
|
CPUInteger count @accessors;
|
|
}
|
|
|
|
+ (id)notificationStatisticsWithName:(CPString)aName
|
|
{
|
|
return [[NotificationStatistics alloc] initWithName:aName];
|
|
}
|
|
|
|
- (id)initWithName:(CPString)aName
|
|
{
|
|
self = [super init];
|
|
if (self) {
|
|
[self setName: aName];
|
|
[self setOrder:0];
|
|
[self setCount:0];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|