Files
eqn.ios/Sources/Earthquake Network/Models/EQNUser.h
T
2022-11-11 15:15:47 +01:00

33 lines
873 B
Objective-C

//
// EQNUser.h
// Earthquake Network
//
// Created by Luca Beretta on 20/09/18.
// Copyright © 2018 Luca Beretta. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
typedef void (^timeRemainingCompletion)(NSInteger timeRemaining);
NS_ASSUME_NONNULL_BEGIN
@interface EQNUser : NSObject
@property (nonatomic, strong, nullable) NSString *user_ID;
@property (nonatomic, strong, nullable) CLLocation *lastPosition;
@property (nonatomic, assign) CLLocationDistance distanza;
@property (nonatomic, assign) BOOL monitorOn;
@property (nonatomic, assign) BOOL inCarica;
+ (instancetype)defaultUser;
- (void)retryUserRegistration;
- (void)registerUserIfNeededWithFirebaseToken:(NSString *)firebaseToken;
- (void)downloadOfferTimeRemainingWithCompletion:(timeRemainingCompletion)completionHandler;
@end
NS_ASSUME_NONNULL_END