Esempio n. 1
0
 public void Init(TASKEVENT_HANLDER notificactionHandler, TASKEVENT_HANLDER taskCompleteHandler, string serviceUrl, string contentId)
 {
     onNotificationHandler  = notificactionHandler;
     onTaskCompletedHandler = taskCompleteHandler;
     if (serviceUrl == null)
     {
         ServiceUri = App.configManager.ServiceUrl;
     }
     else
     {
         ServiceUri = serviceUrl;
     }
     if (contentId == null)
     {
         ContentId = App.configManager.ContentId;
     }
     else
     {
         ContentId = contentId;
     }
     ApplicationData.Current.LocalSettings.Values[CONTENTID_TAG] = contentId;
 }
Esempio n. 2
0
 public void Init(ushort compId, string prefix, TASKEVENT_HANLDER eventMsgRecvHandler)
 {
     companyId    = compId;
     beaconPrefix = prefix;
     onEventMessageReceivedHandler = eventMsgRecvHandler;
 }