-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp - Consolidated type-based info parsers
We've consolidated type-based info parsers --- We've made a substantial change to type-based info parsers by determining the types from the value and parsing them more efficiently. We've cut down the constants so that there are no repeat types with a difference in the delimiter. --- Type: imp Breaking: False Doc Required: False Part: 1/1
- Loading branch information
Showing
21 changed files
with
741 additions
and
467 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ public static class ContactData | |
BEGIN:VCARD | ||
VERSION:3.0 | ||
FN:Rick Hood | ||
N:Hood;Rick;;;; | ||
N:Hood;Rick;;; | ||
END:VCARD | ||
|
||
""" | ||
|
@@ -147,7 +147,7 @@ public static class ContactData | |
BEGIN:VCARD | ||
VERSION:3.0 | ||
FN:John Sanders | ||
N:Sanders;John;;;; | ||
N:Sanders;John;;; | ||
TEL;TYPE=CELL:495-522-3560 | ||
ADR;TYPE=HOME:;;Los Angeles;;;;USA | ||
EMAIL;TYPE=HOME:[email protected] | ||
|
@@ -720,6 +720,7 @@ public static class ContactData | |
TEL;TYPE=cell:589-210-1059 | ||
TITLE:Chief Executive Officer | ||
URL:https://sso.org/ | ||
BDAY:19890222 | ||
X-SIP-SIP:sip test | ||
END:VCARD | ||
|
||
|
@@ -789,7 +790,7 @@ public static class ContactData | |
new ImppInfo(0, Array.Empty<string>(), "aim:IM", new string[] { "HOME" }), | ||
new ImppInfo(0, Array.Empty<string>(), "msn:Windows LIVE", new string[] { "HOME" }), | ||
new ImppInfo(0, Array.Empty<string>(), "ymsgr:Yahoo", new string[] { "HOME" }) | ||
} | ||
}, | ||
}; | ||
private static readonly Card multipleVcardFourContactsInstanceThree = new | ||
( | ||
|
@@ -827,7 +828,8 @@ public static class ContactData | |
ContactXNames = new XNameInfo[] | ||
{ | ||
new XNameInfo(0, Array.Empty<string>(), "SIP-SIP", new string[] { "sip test" }, Array.Empty<string>()), | ||
} | ||
}, | ||
ContactBirthdate = new DateTime(1989, 2, 22), | ||
}; | ||
private static readonly Card multipleVcardFourContactsInstanceFour = singleVcardFourContactInstance; | ||
#endregion | ||
|
@@ -891,7 +893,8 @@ public static class ContactData | |
ContactMails = new EmailInfo[] | ||
{ | ||
new EmailInfo(0, Array.Empty<string>(), new string[] { "INTERNET" }, "[email protected]") | ||
} | ||
}, | ||
ContactBirthdate = new DateTime(1963, 9, 21), | ||
}; | ||
private static readonly Card vcardThreeOldSampleInstanceTwo = new | ||
( | ||
|
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
Oops, something went wrong.