Skip to content

Commit

Permalink
Merge pull request #228 from olgadanylova/master
Browse files Browse the repository at this point in the history
5.3.8
  • Loading branch information
Olha Danylova authored Jun 5, 2019
2 parents dd42124 + f5b9d41 commit e8fba3c
Show file tree
Hide file tree
Showing 50 changed files with 1,306 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# RELEASE HISTORY

## 5.3.8 ??, 2019
* added classes and Protocol: EmailEnvelope, IEmailEnvelope, EnvelopeWIthQuery, EnvelopeWithRecipients
* added methods in MessagingService:
```
-(MessageStatus *)sendEmails:(NSString *)templateName envelope:(id<IEmailEnvelope>)envelope;
-(MessageStatus *)sendEmails:(NSString *)templateName templateValues:(NSDictionary<NSString *, NSString*> *)templateValues envelope:(id<IEmailEnvelope>)envelope;
-(void)sendEmails:(NSString *)templateName envelope:(id<IEmailEnvelope>)envelope response:(void(^)(MessageStatus *))responseBlock error:(void(^)(Fault *))errorBlock;
-(void)sendEmails:(NSString *)templateName templateValues:(NSDictionary<NSString *, NSString*> *)templateValues envelope:(id<IEmailEnvelope>)envelope response:(void(^)(MessageStatus *))responseBlock error:(void(^)(Fault *))errorBlock;
```

## 5.2.13 May, 13 2019
* added support of sortBy and properties for LoadRelationsQueryBuilder
* macOS device registration fixed
Expand Down
4 changes: 2 additions & 2 deletions Pods/Backendless.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SDK/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 675cc991d5f2f8cb6bcd0ce2d67444ed1b8f2a74

COCOAPODS: 1.7.0.rc.1
COCOAPODS: 1.7.0.beta.3
4 changes: 4 additions & 0 deletions SDK/backendlessAPI/Classes/Backendless.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
#import "MapDrivenDataStore.h"
#import "SharedObject.h"
#import "RTService.h"
#import "EmailEnvelope.h"
#import "EmailEnvelope.h"
#import "EnvelopeWithQuery.h"
#import "EnvelopeWithRecipients.h"

#if TARGET_OS_IOS || TARGET_OS_SIMULATOR
#import "BackendlessPushHelper.h"
Expand Down
31 changes: 31 additions & 0 deletions SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EmailEnvelope.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// EmailEnvelope.h
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/

#import <Foundation/Foundation.h>

@class EnvelopeWithRecipients, EnvelopeWithQuery;

@interface EmailEnvelope : NSObject

+(EnvelopeWithRecipients *)templateWithRecipients;
+(EnvelopeWithQuery *)templateWithQuery;

@end
36 changes: 36 additions & 0 deletions SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EmailEnvelope.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// EmailEnvelope.m
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/

#import "EmailEnvelope.h"
#import "EnvelopeWithRecipients.h"
#import "EnvelopeWithQuery.h"

@implementation EmailEnvelope

+(EnvelopeWithRecipients *)templateWithRecipients {
return [EnvelopeWithRecipients new];
}

+(EnvelopeWithQuery *)templateWithQuery {
return [EnvelopeWithQuery new];
}

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// EnvelopeWithQuery.h
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/

#import <Foundation/Foundation.h>
#import "IEmailEnvelope.h"

@interface EnvelopeWithQuery : NSObject<IEmailEnvelope>

-(void)setRecipientsQuery:(NSString *)recipientsQuery;
-(NSString *)getRecipientsQuery;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//
// EnvelopeWithQuery.m
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/

#import "EnvelopeWithQuery.h"

@interface EnvelopeWithQuery() {
NSMutableArray<NSString *> *ccAddresses;
NSMutableArray<NSString *> *bccAddresses;
NSString *query;
}
@end

@implementation EnvelopeWithQuery

-(instancetype)init {
if (self = [super init]) {
self.cc = [NSMutableArray<NSString *> new];
self.bcc = [NSMutableArray<NSString *> new];
}
return self;
}

-(void)addCc:(NSArray<NSString *> *)cc {
[ccAddresses addObjectsFromArray:cc];
}

-(void)setCc:(NSArray<NSString *> *)cc {
ccAddresses = [NSMutableArray arrayWithArray:cc];
}

-(NSArray<NSString *> *)getCc {
return ccAddresses;
}

-(void)addBcc:(NSArray<NSString *> *)bcc {
[bccAddresses addObjectsFromArray:bcc];
}

-(void)setBcc:(NSArray<NSString *> *)bcc {
bccAddresses = [NSMutableArray arrayWithArray:bcc];
}

-(NSArray<NSString *> *)getBcc {
return bccAddresses;
}

-(void)setRecipientsQuery:(NSString *)recipientsQuery {
query = recipientsQuery;
}

-(NSString *)getRecipientsQuery {
return query;
}

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
//
// EnvelopeWithRecipients.m
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/

#import "EnvelopeWithRecipients.h"

@interface EnvelopeWithRecipients() {
NSMutableArray<NSString *> *toAddresses;
NSMutableArray<NSString *> *ccAddresses;
NSMutableArray<NSString *> *bccAddresses;
}
@end

@implementation EnvelopeWithRecipients

-(instancetype)init {
if (self = [super init]) {
toAddresses = [NSMutableArray<NSString *> new];
ccAddresses = [NSMutableArray<NSString *> new];
bccAddresses = [NSMutableArray<NSString *> new];
}
return self;
}

-(void)addTo:(NSArray<NSString *> *)to {
[toAddresses addObjectsFromArray:to];
}

-(void)setTo:(NSArray<NSString *> *)to {
toAddresses = [NSMutableArray arrayWithArray:to];
}

-(NSArray<NSString *> *)getTo {
return toAddresses;
}

-(void)addCc:(NSArray<NSString *> *)cc {
[ccAddresses addObjectsFromArray:cc];
}

-(void)setCc:(NSArray<NSString *> *)cc {
ccAddresses = [NSMutableArray arrayWithArray:cc];
}

-(NSArray<NSString *> *)getCc {
return ccAddresses;
}

-(void)addBcc:(NSArray<NSString *> *)bcc {
[bccAddresses addObjectsFromArray:bcc];
}

-(void)setBcc:(NSArray<NSString *> *)bcc {
bccAddresses = [NSMutableArray arrayWithArray:bcc];
}

-(NSArray<NSString *> *)getBcc {
return bccAddresses;
}

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// EnvelopeWithRecipients.h
// backendlessAPI
/*
* *********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2018 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/


#import <Foundation/Foundation.h>
#import "IEmailEnvelope.h"

@interface EnvelopeWithRecipients : NSObject<IEmailEnvelope>

-(void)addTo:(NSArray<NSString *> *)to;
-(void)setTo:(NSArray<NSString *> *)to;
-(NSArray<NSString *> *)getTo;

@end
Loading

0 comments on commit e8fba3c

Please sign in to comment.