#import #import @interface Scope : NSObject @property (nonatomic, readonly, strong) NSString *title; - (NSArray> *)passportScope; @end @interface ComplexScope : Scope @property (nonatomic, readonly) NSArray *types; @property (nonatomic, readonly) BOOL oneOf; @property (nonatomic, readonly) BOOL translation; @property (nonatomic, readonly) BOOL selfie; - (instancetype)updateWithScope:(NSArray> *)scope oneOf:(bool)oneOf translation:(bool)translation selfie:(bool)selfie; + (instancetype)scopeWithTitle:(NSString *)title scope:(NSArray> *)scope oneOf:(bool)oneOf translation:(bool)translation selfie:(bool)selfie; @end @interface SwitchableScope : Scope @property (nonatomic, readonly) bool enabled; - (instancetype)updateWithEnabled:(bool)enabled; + (instancetype)scopeWithTitle:(NSString *)title scope:(id)scope enabled:(bool)enabled; @end