-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from olgadanylova/master
5.3.8
- Loading branch information
Showing
50 changed files
with
1,306 additions
and
3 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
31 changes: 31 additions & 0 deletions
31
SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EmailEnvelope.h
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
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
36
SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EmailEnvelope.m
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
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 |
30 changes: 30 additions & 0 deletions
30
SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EnvelopeWithQuery.h
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
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 |
73 changes: 73 additions & 0 deletions
73
SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EnvelopeWithQuery.m
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
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 |
78 changes: 78 additions & 0 deletions
78
SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EnvelopeWithRecepients.m
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
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 |
32 changes: 32 additions & 0 deletions
32
SDK/backendlessAPI/Classes/Messaging/EmailEnvelope/EnvelopeWithRecipients.h
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
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 |
Oops, something went wrong.