-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add - doc - Added conversion from vCard to MeCard
--- We've added a way to convert vCard to MeCard! --- Type: add Breaking: False Doc Required: True Part: 1/1
- Loading branch information
Showing
4 changed files
with
284 additions
and
16 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 |
---|---|---|
|
@@ -30,6 +30,18 @@ public static class ContactData | |
""" | ||
; | ||
|
||
private static readonly string singleMeCardContactShortReparsed = | ||
""" | ||
MECARD:N:Hood,Rick;; | ||
""" | ||
; | ||
|
||
private static readonly string singleMeCardContactShortReparsedCompatibility = | ||
""" | ||
MECARD:N:Hood,Rick;; | ||
""" | ||
; | ||
|
||
private static readonly string singleVcardContactShortFromMeCard = | ||
""" | ||
BEGIN:VCARD | ||
|
@@ -101,6 +113,30 @@ public static class ContactData | |
""" | ||
; | ||
|
||
private static readonly string singleMeCardContactReparsed = | ||
""" | ||
MECARD:N:Sanders,John;TEL:495-522-3560;EMAIL:[email protected];NOTE:Note test for VisualCard;ADR:,,Los Angeles,,,,USA;; | ||
""" | ||
; | ||
|
||
private static readonly string singleMeCardContactFullReparsed = | ||
""" | ||
MECARD:N:Sanders,John;SOUND:Saunders,John;TEL:495-522-3560;TEL-AV:495-522-3550;EMAIL:[email protected];NOTE:Note test for VisualCard;ADR:,,Los Angeles,,,,USA;; | ||
""" | ||
; | ||
|
||
private static readonly string singleMeCardContactReparsedCompatibility = | ||
""" | ||
MECARD:N:Sanders,John;TEL:495-522-3560;EMAIL:[email protected];ADR:,,Los Angeles,,,,USA;; | ||
""" | ||
; | ||
|
||
private static readonly string singleMeCardContactFullReparsedCompatibility = | ||
""" | ||
MECARD:N:Sanders,John;SOUND:Saunders,John;TEL:495-522-3560;EMAIL:[email protected];ADR:,,Los Angeles,,,,USA;; | ||
""" | ||
; | ||
|
||
private static readonly string singleVcardContactFromMeCard = | ||
""" | ||
BEGIN:VCARD | ||
|
@@ -585,6 +621,38 @@ public static class ContactData | |
], | ||
]; | ||
|
||
/// <summary> | ||
/// Test MeCard contacts | ||
/// </summary> | ||
public static IEnumerable<object[]> meCardContactsReparsed => | ||
[ | ||
[ | ||
(singleMeCardContactShort, singleMeCardContactShortReparsed), | ||
], | ||
[ | ||
(singleMeCardContact, singleMeCardContactReparsed), | ||
], | ||
[ | ||
(singleMeCardContactFull, singleMeCardContactFullReparsed), | ||
], | ||
]; | ||
|
||
/// <summary> | ||
/// Test MeCard contacts | ||
/// </summary> | ||
public static IEnumerable<object[]> meCardContactsReparsedCompatibility => | ||
[ | ||
[ | ||
(singleMeCardContactShort, singleMeCardContactShortReparsedCompatibility), | ||
], | ||
[ | ||
(singleMeCardContact, singleMeCardContactReparsedCompatibility), | ||
], | ||
[ | ||
(singleMeCardContactFull, singleMeCardContactFullReparsedCompatibility), | ||
], | ||
]; | ||
|
||
/// <summary> | ||
/// Test MeCard contacts | ||
/// </summary> | ||
|
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
Oops, something went wrong.