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.
|
|
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2015-01-23 13:22:02 +00:00
|
|
|
#import "MXCContactField.h"
|
2015-01-22 11:01:12 +00:00
|
|
|
|
2015-01-23 13:22:02 +00:00
|
|
|
@interface MXCPhoneNumber : MXCContactField
|
2015-01-20 12:33:01 +00:00
|
|
|
|
2015-01-21 09:48:38 +00:00
|
|
|
// phonenumber info
|
|
|
|
@property (nonatomic, readonly) NSString *type;
|
|
|
|
@property (nonatomic, readonly) NSString *textNumber;
|
2015-01-28 16:37:51 +00:00
|
|
|
@property (nonatomic, readonly) NSString *internationalPhoneNumber;
|
2015-01-29 12:40:38 +00:00
|
|
|
// defines a country code will internationalize it
|
|
|
|
@property (nonatomic, readwrite) NSString *countryCode;
|
|
|
|
@property (nonatomic, readonly) BOOL isValid;
|
2015-01-20 12:33:01 +00:00
|
|
|
|
2015-01-22 11:01:12 +00:00
|
|
|
- (id)initWithTextNumber:(NSString*)textNumber type:(NSString*)aType contactID:(NSString*)aContactID matrixID:(NSString*)matrixID;
|
2015-01-21 09:48:38 +00:00
|
|
|
|
2015-01-27 14:43:57 +00:00
|
|
|
- (BOOL)matchedWithPatterns:(NSArray*)patterns;
|
|
|
|
|
2015-01-20 12:33:01 +00:00
|
|
|
@end
|