Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.73 KB | None | 0 0
  1. package com.bose.monet.package_160;
  2.  
  3. import com.bose.monet.f.l;
  4. import de.intrepid.bose_bmap.model.Label;
  5. import de.intrepid.bose_bmap.model.Log;
  6. import de.intrepid.bose_bmap.model.Set;
  7. import de.intrepid.bose_bmap.model.enums.Sort;
  8. import java.util.ArrayList;
  9. import java.util.EnumMap;
  10. import java.util.EnumSet;
  11. import java.util.Iterator;
  12. import java.util.List;
  13.  
  14. public enum Product
  15. {
  16. private static final EnumMap<io.intrepid.bose_bmap.model.enums.BoseProductId, l> ID_MAP;
  17. private static final EnumMap<io.intrepid.bose_bmap.model.enums.ProductType, EnumSet<l>> TYPE_MAP;
  18. private final DatabaseType onBoarder;
  19. private final FontFamily onboardingOverlaySpec;
  20. private final int pairingMessagePrefixId;
  21. private final int pairingMovieResId;
  22. private final de.intrepid.bose_bmap.model.enums.BoseProductId productId;
  23. private final BluetoothManager productTourResources;
  24. private final de.intrepid.bose_bmap.model.enums.ProductType productType;
  25. private final String userManualFilename;
  26.  
  27. static
  28. {
  29. POWDER = new Root.1("POWDER", 1, de.intrepid.bose_bmap.model.enums.BoseProductId.POWDER, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "quietcontrol-30", 2131755515, 2131820950, DatabaseType.POWDER, FontFamily.DEFAULT, null);
  30. ISAAC = new l.10("ISAAC", 2, de.intrepid.bose_bmap.model.enums.BoseProductId.ISAAC, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "soundlink-around-ear-wireless-headphones-ii", 2131755021, 2131820953, null, FontFamily.DEFAULT, null);
  31. WOLFCASTLE = new l.11("WOLFCASTLE", 3, de.intrepid.bose_bmap.model.enums.BoseProductId.WOLFCASTLE, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "quietcomfort-35", 2131755530, 2131820952, null, FontFamily.DEFAULT, null);
  32. FERRY = new l.12("ICE", 4, de.intrepid.bose_bmap.model.enums.BoseProductId.ACCOUNT, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "soundsport-wireless-headphones", 2131755020, 2131820950, DatabaseType.HOW_TO_WEAR, FontFamily.DEFAULT, null);
  33. FOREMAN = new l.13("FOREMAN", 5, de.intrepid.bose_bmap.model.enums.BoseProductId.FOREMAN, de.intrepid.bose_bmap.model.enums.ProductType.SPEAKER, "soundlink-color-ii", 2131755018, 2131820949, null, FontFamily.DEFAULT, null);
  34. FLURRY = new l.14("FLURRY", 6, de.intrepid.bose_bmap.model.enums.BoseProductId.FLURRY, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "soundsport-pulse-headphones", 2131755020, 2131820950, DatabaseType.HOW_TO_WEAR, FontFamily.DEFAULT, null);
  35. HARVEY = new l.15("HARVEY", 7, de.intrepid.bose_bmap.model.enums.BoseProductId.HARVEY, de.intrepid.bose_bmap.model.enums.ProductType.SPEAKER, "soundlink-revolve-plus", 2131755019, 2131820949, null, FontFamily.DEFAULT, null);
  36. FOLGERS = new l.16("FOLGERS", 8, de.intrepid.bose_bmap.model.enums.BoseProductId.FOLGERS, de.intrepid.bose_bmap.model.enums.ProductType.SPEAKER, "soundlink-revolve", 2131755017, 2131820949, null, FontFamily.DEFAULT, null);
  37. KLEOS = new l.17("KLEOS", 9, de.intrepid.bose_bmap.model.enums.BoseProductId.KLEOS, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "soundwear-companion-speaker", 2131755508, 2131820949, DatabaseType.PRODUCT_TOUR_INTRO, FontFamily.KLEOS, BluetoothManager.KLEOS);
  38. MINNOW = new ProgressDeserializer("MINNOW", 10, de.intrepid.bose_bmap.model.enums.BoseProductId.MINNOW, de.intrepid.bose_bmap.model.enums.ProductType.SPEAKER, "soundlink-micro", 2131755512, 2131820949, DatabaseType.PRODUCT_TOUR_INTRO, FontFamily.MINNOW, BluetoothManager.MINNOW);
  39. STETSON = new SetDeserializer("STETSON", 11, de.intrepid.bose_bmap.model.enums.BoseProductId.STETSON, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, Storage.DIRECTORY, 2131755021, 2131820953, null, FontFamily.DEFAULT, null);
  40. LEVI = new NegatedDeserializer("LEVI", 12, de.intrepid.bose_bmap.model.enums.BoseProductId.LEVI, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "soundsport-free-wireless-headphones", 2131755510, 2131820949, DatabaseType.HOW_TO_WEAR, FontFamily.LEVI, BluetoothManager.LEVI);
  41. BAYWOLF = new DueDeserializer("BAYWOLF", 13, de.intrepid.bose_bmap.model.enums.BoseProductId.BAYWOLF, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "quietcomfort-35-wireless-headphones-ii", 2131755010, 2131820952, DatabaseType.HOW_TO_WEAR, FontFamily.BAYWOLF, BluetoothManager.BAYWOLF_VPA);
  42. ATLAS = new LabelScribe("ATLAS", 14, de.intrepid.bose_bmap.model.enums.BoseProductId.ATLAS, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "proflight-aviation-headset", 2131755008, 2131820949, DatabaseType.PRODUCT_TOUR_INTRO, FontFamily.ATLAS, BluetoothManager.ATLAS);
  43. CHIBI = new StringDeserializer("CHIBI", 15, de.intrepid.bose_bmap.model.enums.BoseProductId.CHIBI, de.intrepid.bose_bmap.model.enums.ProductType.SPEAKER, "s1-pro", 2131755012, 2131820951, null, FontFamily.CHIBI, null);
  44. CELINE = new NumberPicker.TwoDigitFormatter("CELINE", 16, de.intrepid.bose_bmap.model.enums.BoseProductId.CELINE, de.intrepid.bose_bmap.model.enums.ProductType.HEADPHONES, "bose-frames", 2131755011, 0, DatabaseType.PRODUCT_TOUR_INTRO, FontFamily.CELINE, BluetoothManager.CELINE);
  45. Object localObject1 = UNKNOWN;
  46. int i = 0;
  47. $VALUES = new Product[] { localObject1, POWDER, ISAAC, WOLFCASTLE, FERRY, FOREMAN, FLURRY, HARVEY, FOLGERS, KLEOS, MINNOW, STETSON, LEVI, BAYWOLF, ATLAS, CHIBI, CELINE };
  48. ID_MAP = new EnumMap(io.intrepid.bose_bmap.model.enums.BoseProductId.class);
  49. TYPE_MAP = new EnumMap(io.intrepid.bose_bmap.model.enums.ProductType.class);
  50. localObject1 = values();
  51. int j = localObject1.length;
  52. while (i < j)
  53. {
  54. Object localObject2 = localObject1[i];
  55. ID_MAP.put(((Product)localObject2).getProductId(), localObject2);
  56. de.intrepid.bose_bmap.model.enums.ProductType localProductType = ((Product)localObject2).getProductType();
  57. EnumSet localEnumSet = (EnumSet)TYPE_MAP.get(localProductType);
  58. if (localEnumSet == null)
  59. {
  60. localObject2 = EnumSet.of((Enum)localObject2);
  61. TYPE_MAP.put(localProductType, localObject2);
  62. }
  63. else
  64. {
  65. localEnumSet.add(localObject2);
  66. }
  67. i += 1;
  68. }
  69. }
  70.  
  71. private Product(de.intrepid.bose_bmap.model.enums.BoseProductId paramBoseProductId, de.intrepid.bose_bmap.model.enums.ProductType paramProductType, String paramString, int paramInt1, int paramInt2, DatabaseType paramDatabaseType, FontFamily paramFontFamily, BluetoothManager paramBluetoothManager)
  72. {
  73. if ((paramDatabaseType != null) && (paramDatabaseType.isDelayed()))
  74. {
  75. ??? = new StringBuilder();
  76. ((StringBuilder)???).append("The specified Onboarder cannot be 'delayed': ");
  77. ((StringBuilder)???).append(paramDatabaseType.name());
  78. throw new IllegalArgumentException(((StringBuilder)???).toString());
  79. }
  80. productId = paramBoseProductId;
  81. productType = paramProductType;
  82. userManualFilename = paramString;
  83. pairingMovieResId = paramInt1;
  84. pairingMessagePrefixId = paramInt2;
  85. onBoarder = paramDatabaseType;
  86. onboardingOverlaySpec = paramFontFamily;
  87. productTourResources = paramBluetoothManager;
  88. }
  89.  
  90. public static int cncImageIdFromDevice(Log paramLog)
  91. {
  92. if (paramLog != null) {
  93. return fromBoseProductId(paramLog.getBoseProductId()).getCncImageId(paramLog.getProductVariant());
  94. }
  95. return 2131231040;
  96. }
  97.  
  98. public static Product fromBoseProductId(de.intrepid.bose_bmap.model.enums.BoseProductId paramBoseProductId)
  99. {
  100. if (paramBoseProductId == null) {
  101. return UNKNOWN;
  102. }
  103. Product localProduct = (Product)ID_MAP.get(paramBoseProductId.sanitizeIfCeline());
  104. paramBoseProductId = localProduct;
  105. if (localProduct == null) {
  106. paramBoseProductId = UNKNOWN;
  107. }
  108. return paramBoseProductId;
  109. }
  110.  
  111. public static EnumSet getAssetPackagesWithType(de.intrepid.bose_bmap.model.enums.ProductType paramProductType)
  112. {
  113. return (EnumSet)TYPE_MAP.get(paramProductType);
  114. }
  115.  
  116. public static List getCoinAnimationProducts(de.intrepid.bose_bmap.model.enums.ProductType paramProductType)
  117. {
  118. EnumSet localEnumSet = EnumSet.of(de.intrepid.bose_bmap.model.enums.BoseProductId.KLEOS, new de.intrepid.bose_bmap.model.enums.BoseProductId[] { de.intrepid.bose_bmap.model.enums.BoseProductId.STETSON, de.intrepid.bose_bmap.model.enums.BoseProductId.BAYWOLF, de.intrepid.bose_bmap.model.enums.BoseProductId.LEVI, de.intrepid.bose_bmap.model.enums.BoseProductId.ATLAS, de.intrepid.bose_bmap.model.enums.BoseProductId.CELINE });
  119. ArrayList localArrayList = new ArrayList();
  120. if (paramProductType == null) {
  121. return localArrayList;
  122. }
  123. paramProductType = getAssetPackagesWithType(paramProductType).iterator();
  124. while (paramProductType.hasNext())
  125. {
  126. Product localProduct = (Product)paramProductType.next();
  127. Object localObject = localProduct.getProductId();
  128. if (!localEnumSet.contains(((de.intrepid.bose_bmap.model.enums.BoseProductId)localObject).sanitizeIfCeline()))
  129. {
  130. localObject = ((de.intrepid.bose_bmap.model.enums.BoseProductId)localObject).getAllVariants().iterator();
  131. while (((Iterator)localObject).hasNext()) {
  132. localArrayList.add(Integer.valueOf(localProduct.getProductImageId(((Sort)((Iterator)localObject).next()).getValue().intValue())));
  133. }
  134. }
  135. }
  136. return localArrayList;
  137. }
  138.  
  139. public static int productImageIdFromDevice(Log paramLog)
  140. {
  141. if (paramLog != null) {
  142. return fromBoseProductId(paramLog.getBoseProductId()).getProductImageId(paramLog.getProductVariant());
  143. }
  144. return 2131231040;
  145. }
  146.  
  147. public static int productImageIdFromPairedDevice(Set paramSet)
  148. {
  149. if (paramSet != null) {
  150. return fromBoseProductId(paramSet.getBoseProductId()).getProductImageId(paramSet.getProductVariant());
  151. }
  152. return 2131231040;
  153. }
  154.  
  155. public int getBudImageId(Label paramLabel)
  156. {
  157. return 2131231040;
  158. }
  159.  
  160. public int getCncImageId(int paramInt)
  161. {
  162. return 2131231040;
  163. }
  164.  
  165. public DatabaseType getOnBoarder()
  166. {
  167. return onBoarder;
  168. }
  169.  
  170. public FontFamily getOnboardingOverlaySpec()
  171. {
  172. return onboardingOverlaySpec;
  173. }
  174.  
  175. public int getPairingMessagePrefixId()
  176. {
  177. return pairingMessagePrefixId;
  178. }
  179.  
  180. public int getPairingMovieResId()
  181. {
  182. return pairingMovieResId;
  183. }
  184.  
  185. public de.intrepid.bose_bmap.model.enums.BoseProductId getProductId()
  186. {
  187. return productId;
  188. }
  189.  
  190. public int getProductImageId(int paramInt)
  191. {
  192. return 2131231040;
  193. }
  194.  
  195. public int getProductImageId(int paramInt, boolean paramBoolean)
  196. {
  197. return getProductImageId(paramInt);
  198. }
  199.  
  200. public BluetoothManager getProductTourResources()
  201. {
  202. return productTourResources;
  203. }
  204.  
  205. public de.intrepid.bose_bmap.model.enums.ProductType getProductType()
  206. {
  207. return productType;
  208. }
  209.  
  210. public String getUserManualFilename()
  211. {
  212. return userManualFilename;
  213. }
  214.  
  215. public Sort getVariant(int paramInt)
  216. {
  217. return Sort.forValue(productId, Integer.valueOf(paramInt));
  218. }
  219. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement