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
import UIKit | |
import HealthKit | |
class HealthKitService: NSObject { | |
private let healthStore = HKHealthStore() | |
static let instance = HealthKitService() | |
private enum HealthKitControllerError: Error { | |
case DeviceNotSupported |
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
public enum AccountStatus | |
{ | |
NotRegistered = 1, | |
SimpleCustomer = 2, | |
ValuableCustomer = 3, | |
MostValuableCustomer = 4 | |
} | |
public class DiscountManager | |
{ |
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 AppState { | |
@observable batteries = [] | |
@observable loadingBatteries = false | |
@observable selectedChargeStatusViewType = ChargeStatusViewType.Percent | |
@observable selectedBattery = null | |
} | |
class Battery { | |
id = null |
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
### Keybase proof | |
I hereby claim: | |
* I am mikkoj on github. | |
* I am mikkoj (https://keybase.io/mikkoj) on keybase. | |
* I have a public key whose fingerprint is CDD7 09FF 7891 E6FC B3ED 9D14 8660 760B B68E B966 | |
To claim this, I am signing this object: |