2015-01-20 12:33:01 +00:00
|
|
|
/*
|
|
|
|
Copyright 2014 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
2015-01-20 15:29:42 +00:00
|
|
|
|
2015-01-23 13:22:02 +00:00
|
|
|
#import "MXCEmail.h"
|
2015-01-23 14:53:39 +00:00
|
|
|
#import "MatrixSDKHandler.h"
|
2015-01-20 15:29:42 +00:00
|
|
|
|
2015-01-23 13:22:02 +00:00
|
|
|
#import "MXCContact.h"
|
2015-01-20 12:33:01 +00:00
|
|
|
|
2015-01-20 17:03:03 +00:00
|
|
|
#import "MediaManager.h"
|
|
|
|
|
2015-01-23 13:22:02 +00:00
|
|
|
@interface MXCEmail()
|
2015-01-21 09:48:38 +00:00
|
|
|
@end
|
|
|
|
|
2015-01-23 13:22:02 +00:00
|
|
|
@implementation MXCEmail
|
2015-01-20 17:03:03 +00:00
|
|
|
|
|
|
|
- (void) commonInit {
|
|
|
|
// init members
|
2015-01-21 12:26:29 +00:00
|
|
|
_emailAddress = nil;
|
|
|
|
_type = nil;
|
2015-01-20 17:03:03 +00:00
|
|
|
}
|
2015-01-20 15:29:42 +00:00
|
|
|
|
|
|
|
- (id)init {
|
|
|
|
self = [super init];
|
|
|
|
|
|
|
|
if (self) {
|
2015-01-20 17:03:03 +00:00
|
|
|
[self commonInit];
|
2015-01-20 15:29:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2015-01-22 11:01:12 +00:00
|
|
|
- (id)initWithEmailAddress:(NSString*)anEmailAddress type:(NSString*)aType contactID:(NSString*)aContactID matrixID:(NSString*)matrixID {
|
|
|
|
self = [super initWithContactID:aContactID matrixID:matrixID];
|
2015-01-20 15:29:42 +00:00
|
|
|
|
|
|
|
if (self) {
|
2015-01-20 17:03:03 +00:00
|
|
|
[self commonInit];
|
2015-01-21 12:26:29 +00:00
|
|
|
_emailAddress = anEmailAddress;
|
|
|
|
_type = aType;
|
2015-01-20 15:29:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2015-01-20 12:33:01 +00:00
|
|
|
@end
|