This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"points" : [ | |
{ | |
"name" : "Motor DE Horizontal", | |
"enabled" : true, | |
"location" : { | |
"number" : 2, | |
"plane" : "H" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func testPerforamnce() { | |
let obj = ProcessingImageService() | |
let image = UIImage(named: "myImage") | |
measure(metrics: [XCTClockMetric(), // to measure time | |
XCTCPUMetric(), // to measure cpu cycles | |
XCTStorageMetric(), // to measure storage consuming | |
XCTMemoryMetric()]) { // to measeure RAM consuming | |
obj.processImage(image: image) // this is the heavy process | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol CalendarConnectorProtocol { | |
func isAuthorized()->Bool | |
func requestAccess(completion: @escaping EKEventStoreRequestAccessCompletionHandler) | |
func fetch(fromDate : Date, toDate : Date, calendarsExclude : [String], completion : ([EKEventDTO])->Void) | |
func openAddEventScreen(fromController controller : Any, atDate date : Date, inCalendarID : String, completion : @escaping AddCalendarEventCompletionBlock) | |
func openEventScreen(eventIdentifier : String, fromController controller : Any) | |
func getAllCalendars()->[EKCalendarDTO] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol CalendarServiceProtocol { | |
func getVisibleCalendarsIDs()->[String] | |
func isEventInThePast(eventID : String)->Bool | |
func isEventLastForSeveralDays(eventID : String)->Bool | |
func getAllEvents()->[EKEventDTO] | |
func calendarDataChanged() | |
} | |
class CalendarService: NSObject, CalendarServiceProtocol { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol CalendarScreenInteractorProtocol { | |
func calendarDataUpdated() | |
func requestAccess(completion: @escaping EKEventStoreRequestAccessCompletionHandler) | |
func getAllData()->[CalendarDisplayModel] | |
func hasPermission()->Bool | |
func openEvent(eventID : String) | |
func markCalendarAsVisible(calendarID : String) | |
func markCalendarAsHidden(calendarID : String) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocl CalendarScreenPresenterProtocol { | |
func dataUpdated() | |
func onViewDidLoad() | |
func onMenuButtonTap() | |
func onEventTap(atIndexPath indexPath : IndexPath) | |
func userScrolledToNextPage() | |
} | |
class CalendarScreenPresenter : CalendarScreenPresenterProtocol { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol CalendarViewControllerProtocol { | |
func reloadData() | |
func reloadCell(atIndexPath indexPath : IndexPath) | |
func showNewBadge() | |
func hideNewBadge() | |
func expandDaysSelector() | |
} | |
class CalendarViewController : UIViewController, CalendarViewControllerProtocol { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Skin { | |
var titleFont : UIFont! | |
var titleColor : UIColor! | |
var subTitleFont : UIFont! | |
var subTitleColor : UIColor! | |
var openPopupDuration : TimeInterval! | |
var backgroundColor : UIColor! | |
} | |
class SkinHandler { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef NS_OPTIONS(NSUInteger, ContactStatus) { | |
Deleted = (1 << 0), // => 00000001 | |
Archived = (1 << 1), // => 00000010 | |
Exists = (1 << 2) // => 00000100 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ContactStatus status = Deleted | Archived; // => 00000011 |
OlderNewer