mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
14 lines
440 B
Objective-C
14 lines
440 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#import "PriorityQueue.h"
|
|
|
|
@interface EventWindow : NSObject {
|
|
@private NSTimeInterval windowDuration;
|
|
@private PriorityQueue* events;
|
|
@private NSTimeInterval lastWindowEnding;
|
|
}
|
|
|
|
+(EventWindow*) eventWindowWithWindowDuration:(NSTimeInterval)windowDuration;
|
|
-(void) addEventAtTime:(NSTimeInterval)eventTime;
|
|
-(NSUInteger) countAfterRemovingEventsBeforeWindowEndingAt:(NSTimeInterval)endOfWindowTime;
|
|
|
|
@end
|