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.

51 lines
1.6 KiB

9 years ago
//
// CLTimezoneData.h
// Clocker
//
// Created by Abhishek Banthia on 12/22/15.
9 years ago
//
9 years ago
//
#import <Foundation/Foundation.h>
#import "CLTimezoneCellView.h"
9 years ago
typedef enum : NSUInteger {
CLPanelDisplay,
CLMenuDisplay
} CLDateDisplayType;
@interface CLTimezoneData : NSObject<NSCoding>
9 years ago
9 years ago
@property (copy, nonatomic) NSString *customLabel;
@property (copy, nonatomic) NSString *formattedAddress;
@property (copy, nonatomic) NSString *place_id;
@property (copy, nonatomic) NSString *timezoneID;
@property (copy, nonatomic) NSString *latitude;
@property (copy, nonatomic) NSString *longitude;
9 years ago
@property (strong, nonatomic) NSDate *nextUpdate;
@property (strong, nonatomic) NSNumber *isFavourite;
@property (strong, nonatomic) NSDate *sunriseTime;
@property (strong, nonatomic) NSDate *sunsetTime;
@property (assign, nonatomic) BOOL sunriseOrSunset; //YES for Sunrise, NO for Sunset
+ (instancetype)getCustomObject:(NSData *)encodedData;
+ (void)setInitialTimezoneData;
9 years ago
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
- (BOOL)saveObjectToPreferences;
- (NSString *)getTimeForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue;
- (NSString *)getLocalCurrentDate;
- (NSString *)compareSystemDate:(NSString *)systemDate toTimezoneDate:(NSString *)date;
- (NSString *)getDateForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue andDisplayType:(CLDateDisplayType)type;
- (NSString *)formatStringShouldContainCity:(BOOL)value;
- (NSString *)getMenuTitle;
- (NSString *)getFormattedSunriseOrSunsetTime;
- (NSImage *)getFormattedSunriseOrSunsetImage;
/*
- (NSString *)getFormattedSunriseOrSunsetTimeAndSunImage:(CLTimezoneCellView *)cell;
*/
9 years ago
@end