BTThreeDSecureV2ToolbarCustomization.m 954 B

1234567891011121314151617181920212223242526272829303132333435
  1. #import "BTThreeDSecureV2BaseCustomization_Internal.h"
  2. #if __has_include(<Braintree/BraintreeThreeDSecure.h>)
  3. #import <Braintree/BTThreeDSecureV2ToolbarCustomization.h>
  4. #else
  5. #import <BraintreeThreeDSecure/BTThreeDSecureV2ToolbarCustomization.h>
  6. #endif
  7. @implementation BTThreeDSecureV2ToolbarCustomization
  8. - (instancetype)init {
  9. self = [super init];
  10. if (self) {
  11. self.cardinalValue = [ToolbarCustomization new];
  12. }
  13. return self;
  14. }
  15. - (void)setBackgroundColor:(NSString *)backgroundColor {
  16. _backgroundColor = backgroundColor;
  17. ((ToolbarCustomization *)self.cardinalValue).backgroundColor = backgroundColor;
  18. }
  19. - (void)setHeaderText:(NSString *)headerText {
  20. _headerText = headerText;
  21. ((ToolbarCustomization *)self.cardinalValue).headerText = headerText;
  22. }
  23. - (void)setButtonText:(NSString *)buttonText {
  24. _buttonText = buttonText;
  25. ((ToolbarCustomization *)self.cardinalValue).buttonText = buttonText;
  26. }
  27. @end