37 lines
980 B
Objective-C
37 lines
980 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 *tokenUser;
|
|
@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;
|
|
@property (nonatomic, assign) BOOL registrato;
|
|
|
|
+ (instancetype)defaultUser;
|
|
- (void)inviaPosizioneServer;
|
|
- (void)saveUserInfo;
|
|
- (void)removeUser;
|
|
- (void)verificaRegistrazione;
|
|
|
|
- (void)downloadOfferTimeRemainingWithCompletion:(timeRemainingCompletion)completionHandler;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|