Skip to content

iOS SDK v.5.4.0

Compare
Choose a tag to compare
@danylovaolha danylovaolha released this 09 Jul 09:18
· 12 commits to master since this release
a3b0d06
  • added support of custom smart-text substitutions for push templates, the sendEmail method signatures changed:
-(MessageStatus *)sendEmailFromTemplate:(NSString *)templateName envelope:(EmailEnvelope *)envelope;
-(MessageStatus *)sendEmailFromTemplate:(NSString *)templateName envelope:(EmailEnvelope *)envelope templateValues:(NSDictionary<NSString *, NSString*> *)templateValues;

-(void)sendEmailFromTemplate:(NSString *)templateName envelope:(EmailEnvelope *)envelope response:(void(^)(MessageStatus *))responseBlock error:(void(^)(Fault *))errorBlock;
-(void)sendEmailFromTemplate:(NSString *)templateName envelope:(EmailEnvelope *)envelope templateValues:(NSDictionary<NSString *, NSString*> *)templateValues response:(void(^)(MessageStatus *))responseBlock error:(void(^)(Fault *))errorBlock;
  • the EmailEnvelope class added:
@interface EmailEnvelope : NSObject

@property (strong, nonatomic) NSArray<NSString *> *to;
@property (strong, nonatomic) NSArray<NSString *> *cc;
@property (strong, nonatomic) NSArray<NSString *> *bcc;
@property (strong, nonatomic) NSString *query;

-(void)addTo:(NSArray<NSString *> *)to;
-(void)addCc:(NSArray<NSString *> *)cc;
-(void)addBcc:(NSArray<NSString *> *)bcc;

@end