Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ElBruno Lync to Pebble
static void Main()
if (ConnectToPebble()) return;
var client = LyncClient.GetClient();
client.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded;
Console.WriteLine("Press Enter to exit.");
static void ConversationManager_ConversationAdded(object sender, Microsoft.Lync.Model.Conversation.ConversationManagerEventArgs e)
var conversation = e.Conversation;
var message = string.Format("New Lync conversation{0}", Environment.NewLine);
message = conversation.Participants.Aggregate(message, (current, participant) => current + (participant.Properties.Values.ElementAt(1) + Environment.NewLine));
_pebble.NotificationSMS("New Lync conversation", message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.