[GH-ISSUE #4] 'Privacy' is not synced #904

Closed
opened 2026-03-13 23:17:46 +03:00 by kerem · 3 comments
Owner

Originally created by @aluxnimm on GitHub (Feb 24, 2015).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/4

Originally assigned to: @aluxnimm on GitHub.

Original comment by: nertsch

Original Ticket: outlookcaldavsynchronizer/2

Originally created by @aluxnimm on GitHub (Feb 24, 2015). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/4 Originally assigned to: @aluxnimm on GitHub. Original comment by: nertsch Original Ticket: [outlookcaldavsynchronizer/2](https://sourceforge.net/p/outlookcaldavsynchronizer/2)
Author
Owner

@aluxnimm commented on GitHub (Feb 24, 2015):

  • summary: 'Privacy' field is not synced --> 'Privacy' is not synced

Original comment by: nertsch

<!-- gh-comment-id:126311903 --> @aluxnimm commented on GitHub (Feb 24, 2015): - **summary**: 'Privacy' field is not synced --> 'Privacy' is not synced Original comment by: nertsch
Author
Owner

@aluxnimm commented on GitHub (Mar 26, 2015):

code snippets for testing:

target.Class = MapPrivacy1To2(source.Sensitivity);

private string MapPrivacy1To2(OlSensitivity value)
{
switch (value)
{
case OlSensitivity.olPrivate:
return "PRIVATE";
case OlSensitivity.olConfidential:
return "CONFIDENTIAL";
case OlSensitivity.olNormal:
return "PUBLIC";
case OlSensitivity.olPersonal:
return "PRIVATE"; // not sure
}

    throw new NotImplementedException(string.Format("Mapping for value '{0}' not implemented.", value));
}

target.Sensitivity = MapPrivacy2To1(source.Class);

private OlSensitivity MapPrivacy2To1(string value)
{
switch (value)
{
case "PRIVATE":
return OlSensitivity.olPrivate;
case "CONFIDENTIAL":
return OlSensitivity.olConfidential;
case "PUBLIC":
return OlSensitivity.olNormal;

    }
    return OlSensitivity.olNormal;
}

Original comment by: aluxnimm

<!-- gh-comment-id:126311904 --> @aluxnimm commented on GitHub (Mar 26, 2015): code snippets for testing: target.Class = MapPrivacy1To2(source.Sensitivity); private string MapPrivacy1To2(OlSensitivity value) { switch (value) { case OlSensitivity.olPrivate: return "PRIVATE"; case OlSensitivity.olConfidential: return "CONFIDENTIAL"; case OlSensitivity.olNormal: return "PUBLIC"; case OlSensitivity.olPersonal: return "PRIVATE"; // not sure } ``` throw new NotImplementedException(string.Format("Mapping for value '{0}' not implemented.", value)); } ``` target.Sensitivity = MapPrivacy2To1(source.Class); private OlSensitivity MapPrivacy2To1(string value) { switch (value) { case "PRIVATE": return OlSensitivity.olPrivate; case "CONFIDENTIAL": return OlSensitivity.olConfidential; case "PUBLIC": return OlSensitivity.olNormal; ``` } return OlSensitivity.olNormal; } ``` Original comment by: aluxnimm
Author
Owner

@aluxnimm commented on GitHub (Mar 27, 2015):

  • labels: --> solved
  • status: open --> closed

Original comment by: nertsch

<!-- gh-comment-id:126311905 --> @aluxnimm commented on GitHub (Mar 27, 2015): - **labels**: --> solved - **status**: open --> closed Original comment by: nertsch
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#904
No description provided.