Example #1
0
		// Token: 0x06000138 RID: 312 RVA: 0x00008518 File Offset: 0x00006718
		public static ProductInfo GetProductInfoForDevice(iPhoneXE device)
		{
			string productType = device.CopyDeviceValue("ProductType");
			string deviceColor = device.CopyDeviceValue("DeviceColor");
			string enclosureColor = device.CopyDeviceValue("DeviceEnclosureColor");
			device.CopyDeviceValue("ProductVersion");
			ProductInfo productInfo = new ProductInfo();
			productInfo.DiscoverModel(productType);
			productInfo.DiscoverColor(deviceColor, enclosureColor);
			return productInfo;
		}
Example #2
0
 // Token: 0x06000069 RID: 105 RVA: 0x00004FA0 File Offset: 0x000031A0
 private static string ColorStringColorful(ProductInfo.ColorType color)
 {
     switch (color)
     {
         case ProductInfo.ColorType.White:
         case ProductInfo.ColorType.SpaceGray:
         case ProductInfo.ColorType.Silver:
         case ProductInfo.ColorType.Gold:
             {
                 IL_2A:
                 string result = "White";
                 return result;
             }
         case ProductInfo.ColorType.Pink:
             {
                 string result = "Pink";
                 return result;
             }
         case ProductInfo.ColorType.Yellow:
             {
                 string result = "Yellow";
                 return result;
             }
         case ProductInfo.ColorType.Blue:
             {
                 string result = "Blue";
                 return result;
             }
         case ProductInfo.ColorType.Green:
             {
                 string result = "Green";
                 return result;
             }
         default:
             {
                 string result = "White";
                 return result;
             }
     }
     //goto IL_2A;
 }
Example #3
0
 // Token: 0x06000068 RID: 104 RVA: 0x00004F5C File Offset: 0x0000315C
 private static string ColorStringGoldSilverOrGray(ProductInfo.ColorType color)
 {
     switch (color)
     {
         case ProductInfo.ColorType.Black:
         case ProductInfo.ColorType.SpaceGray:
             {
                 IL_1E:
                 string result = "Gray";
                 return result;
             }
         case ProductInfo.ColorType.White:
         case ProductInfo.ColorType.Silver:
             {
                 string result = "Silver";
                 return result;
             }
         case ProductInfo.ColorType.Gold:
             {
                 string result = "Gold";
                 return result;
             }
         default:
             {
                 string result = "Gray";
                 return result;
             }
     }
     //goto IL_1E;
 }
Example #4
0
 // Token: 0x06000067 RID: 103 RVA: 0x00004F20 File Offset: 0x00003120
 private static string ColorStringBlackOrWhite(ProductInfo.ColorType color)
 {
     string result;
     switch (color)
     {
         case ProductInfo.ColorType.Black:
         case ProductInfo.ColorType.SpaceGray:
             {
                 IL_1E:
                 result = "Black";
                 return result;
             }
         case ProductInfo.ColorType.White:
         case ProductInfo.ColorType.Silver:
         case ProductInfo.ColorType.Gold:
             {
                 result = "White";
                 return result;
             }
     }
     //goto IL_1E;
     result = "Black";
     return result;
 }