-
Notifications
You must be signed in to change notification settings - Fork 2
/
MLOperator.h
76 lines (61 loc) · 2.87 KB
/
MLOperator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
Copyright (c) 2017 Max Lungarella <[email protected]>
Created on 27/10/2017.
This file is part of AmiKo for OSX.
AmiKo for OSX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
------------------------------------------------------------------------ */
#import <Foundation/Foundation.h>
#define LEGACY_DEFAULTS_DOC_TITLE @"title"
#define LEGACY_DEFAULTS_DOC_NAME @"givenname"
#define LEGACY_DEFAULTS_DOC_SURNAME @"familyname"
#define LEGACY_DEFAULTS_DOC_ADDRESS @"postaladdress"
#define LEGACY_DEFAULTS_DOC_CITY @"city"
#define LEGACY_DEFAULTS_DOC_ZIP @"zipcode"
#define LEGACY_DEFAULTS_DOC_PHONE @"phonenumber"
#define LEGACY_DEFAULTS_DOC_EMAIL @"emailaddress"
#define LEGACY_DEFAULTS_DOC_COUNTRY @"country"
#define KEY_AMK_DOC_TITLE @"title"
#define KEY_AMK_DOC_GLN @"gln"
#define KEY_AMK_DOC_NAME @"given_name"
#define KEY_AMK_DOC_SURNAME @"family_name"
#define KEY_AMK_DOC_ADDRESS @"postal_address"
#define KEY_AMK_DOC_CITY @"city"
#define KEY_AMK_DOC_COUNTRY @"country"
#define KEY_AMK_DOC_ZIP @"zip_code"
#define KEY_AMK_DOC_PHONE @"phone_number"
#define KEY_AMK_DOC_EMAIL @"email_address"
#define KEY_AMK_DOC_IBAN @"iban"
#define KEY_AMK_DOC_VAT @"vat_number"
#define KEY_AMK_DOC_ZSR_NUMBER @"zsr_number"
#define KEY_AMK_DOC_MEDIDATA_CLIENT_ID @"medidata_client_id"
#define KEY_AMK_DOC_SIGNATURE @"signature"
#define DOC_SIGNATURE_FILENAME @"op_signature.png"
@interface MLOperator : NSObject
@property (atomic, copy) NSString *title;
@property (atomic, copy) NSString *gln;
@property (atomic, copy) NSString *familyName;
@property (atomic, copy) NSString *givenName;
@property (atomic, copy) NSString *postalAddress;
@property (atomic, copy) NSString *zipCode;
@property (atomic, copy) NSString *city;
@property (atomic, copy) NSString *country;
@property (atomic, copy) NSString *phoneNumber;
@property (atomic, copy) NSString *emailAddress;
@property (atomic, copy) NSString *IBAN;
@property (atomic, copy) NSString *vatNumber;
@property (atomic, copy) NSString *zsrNumber;
@property (atomic, copy) NSString *medidataClientId;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
- (NSString *) retrieveOperatorAsString;
- (void)importFromDict:(NSDictionary *)dict;
- (NSDictionary *)dictionaryRepresentation;
@end