예제 #1
0
 private AppCompatibility CheckCompatibility(UserAgent client)
 {
     if ((DevicePlatform)client.DP == DevicePlatform.iOS)
     {
         if (NeeoUtility.GetIntegerValue(client.AppVer) >=
             NeeoUtility.GetIntegerValue(ConfigurationManager.AppSettings[NeeoConstants.IosCriticalVersion]))
         {
             return(AppCompatibility.Compatible);
         }
         return(AppCompatibility.Incompatible);
     }
     if ((DevicePlatform)client.DP == DevicePlatform.Android)
     {
         if (NeeoUtility.GetIntegerValue(client.AppVer) < NeeoUtility.GetIntegerValue(ConfigurationManager.AppSettings[NeeoConstants.AndroidFeatureVersion]))
         {
             return(AppCompatibility.Compatible);
         }
         if (NeeoUtility.GetIntegerValue(client.AppVer) >=
             NeeoUtility.GetIntegerValue(ConfigurationManager.AppSettings[NeeoConstants.AndroidCriticalVersion]))
         {
             return(AppCompatibility.Compatible);
         }
         return(AppCompatibility.Incompatible);
     }
     if ((DevicePlatform)client.DP == DevicePlatform.WindowsMobile)
     {
         if (NeeoUtility.GetIntegerValue(client.AppVer) >=
             NeeoUtility.GetIntegerValue(ConfigurationManager.AppSettings[NeeoConstants.WPCriticalVersion]))
         {
             return(AppCompatibility.Compatible);
         }
         return(AppCompatibility.Incompatible);
     }
     return(AppCompatibility.Incompatible);
 }