Esempio n. 1
0
 public static void AddEasMessageDataPoint(SmsSqmSession instance, ADObjectId id, string legacyDN, int messageCount, bool hasUnicode, int recipientNumber, bool isFromOutlook)
 {
     if (instance.Enabled)
     {
         SMSSendingClient smssendingClient;
         if (isFromOutlook)
         {
             smssendingClient = SMSSendingClient.Outlook;
         }
         else
         {
             smssendingClient = SMSSendingClient.OWA;
         }
         string deploymentType = SmsSqmDataPointHelper.GetDeploymentType(id);
         string text           = SmsSqmDataPointHelper.Generate64BitUserID(legacyDN);
         instance.AddToStreamDataPoint(SqmDataID.SMS_ST_EASMESSAGES, new object[]
         {
             deploymentType,
             text,
             messageCount,
             hasUnicode,
             recipientNumber,
             (int)smssendingClient
         });
     }
 }
Esempio n. 2
0
 public static void AddDeviceInfoReceivedDataPoint(SmsSqmSession instance, ADObjectId id, string legacyDN, string deviceType, string versionString)
 {
     if (instance.Enabled)
     {
         string deploymentType = SmsSqmDataPointHelper.GetDeploymentType(id);
         string text           = SmsSqmDataPointHelper.Generate64BitUserID(legacyDN);
         instance.AddToStreamDataPoint(SqmDataID.SMS_ST_EASESTABLISHMENT, new object[]
         {
             deploymentType,
             text,
             deviceType,
             versionString
         });
     }
 }
Esempio n. 3
0
 public static void AddEasConfigurationDataPoint(SmsSqmSession instance, ADObjectId id, string legacyDN, string deviceType, bool notificationEnabled, string versionString)
 {
     if (instance.Enabled)
     {
         string deploymentType = SmsSqmDataPointHelper.GetDeploymentType(id);
         string text           = SmsSqmDataPointHelper.Generate64BitUserID(legacyDN);
         instance.AddToStreamDataPoint(SqmDataID.SMS_ST_EASCONFIGURATION, new object[]
         {
             deploymentType,
             text,
             deviceType,
             notificationEnabled,
             versionString
         });
     }
 }
Esempio n. 4
0
 public static void AddNotificationTurningOnDataPoint(SmsSqmSession instance, ADObjectId id, string legacyDN, TextMessagingAccount account)
 {
     if (instance.Enabled)
     {
         string     deploymentType = SmsSqmDataPointHelper.GetDeploymentType(id);
         string     text           = SmsSqmDataPointHelper.Generate64BitUserID(legacyDN);
         RegionInfo regionInfo     = (RegionInfo)account[TextMessagingAccountSchema.CountryRegionId];
         int        num            = (int)account[TextMessagingAccountSchema.MobileOperatorId];
         instance.AddToStreamDataPoint(SqmDataID.SMS_ST_NOTIFICATIONTURNINGON, new object[]
         {
             deploymentType,
             text,
             regionInfo.ToString(),
             num
         });
     }
 }
Esempio n. 5
0
 public static void AddNotificationConfigDataPoint(SmsSqmSession instance, ADObjectId id, string legacyDN, SMSNotificationType notificationType)
 {
     if (notificationType == SMSNotificationType.None)
     {
         return;
     }
     if (instance.Enabled)
     {
         string deploymentType = SmsSqmDataPointHelper.GetDeploymentType(id);
         string text           = SmsSqmDataPointHelper.Generate64BitUserID(legacyDN);
         instance.AddToStreamDataPoint(SqmDataID.SMS_ST_NOTIFICATIONCONFIGURATION, new object[]
         {
             deploymentType,
             text,
             (int)notificationType
         });
     }
 }
Esempio n. 6
0
 public static void AddNotificationMessageDataPoint(SmsSqmSession instance, ADObjectId id, string legacyDN, SMSNotificationType messageType, bool isVoicemailMessage, bool isRuleAlertMessage, bool isSystemMessage, int messageCount, string carrier, string region)
 {
     if (instance.Enabled)
     {
         string deploymentType = SmsSqmDataPointHelper.GetDeploymentType(id);
         string text           = SmsSqmDataPointHelper.Generate64BitUserID(legacyDN);
         if (messageType == SMSNotificationType.None)
         {
             if (isVoicemailMessage)
             {
                 messageType = SMSNotificationType.VoiceMail;
             }
             else if (isRuleAlertMessage)
             {
                 messageType = SMSNotificationType.Email;
             }
             else
             {
                 if (!isSystemMessage)
                 {
                     return;
                 }
                 messageType = SMSNotificationType.System;
             }
         }
         instance.AddToStreamDataPoint(SqmDataID.SMS_ST_NOTIFICATIONMESSAGE, new object[]
         {
             deploymentType,
             text,
             (int)messageType,
             messageCount,
             Convert.ToInt32(carrier),
             region
         });
     }
 }