You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

9 years ago
//
// CLTimezoneData.h
// Clocker
//
// Created by Abhishek Banthia on 12/22/15.
//
//
#import <Foundation/Foundation.h>
#import "CLTimezoneCellView.h"
9 years ago
@interface CLTimezoneData : NSObject<NSCoding>
9 years ago
@property (strong, nonatomic) NSString *customLabel;
@property (strong, nonatomic) NSString *formattedAddress;
@property (strong, nonatomic) NSString *place_id;
@property (strong, nonatomic) NSString *sunriseTime;
@property (strong, nonatomic) NSString *sunsetTime;
@property (strong, nonatomic) NSString *timezoneID;
9 years ago
@property (strong, nonatomic) NSString *latitude;
@property (strong, nonatomic) NSString *longitude;
9 years ago
@property (strong, nonatomic) NSDate *nextUpdate;
9 years ago
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
- (BOOL)saveObjectToPreferences:(CLTimezoneData *)object;
- (NSString *)getTimeForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue;
- (NSString *)getLocalCurrentDate;
- (NSString *)compareSystemDate:(NSString *)systemDate toTimezoneDate:(NSString *)date;
- (NSString *)getDateForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue;
- (void)getTimeZoneForLatitude:(NSString *)latitude andLongitude:(NSString *)longitude andDataObject:(CLTimezoneData *)dataObject;
- (NSString *)getFormattedSunriseOrSunsetTimeAndSunImage:(CLTimezoneCellView *)cell;
- (NSString *)formatStringShouldContainCity:(BOOL)value;
+ (instancetype)getCustomObject:(NSData *)encodedData;
9 years ago
@end