Advertisement
Guest User

Untitled

a guest
Jul 15th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 2.60 KB | None | 0 0
  1.  
  2. class Color(
  3.     R: Int,
  4.     G: Int,
  5.     B: Int,
  6.     A: Int
  7. )
  8.  
  9. // http://fisawebapp.azurewebsites.net/api/pct/chart/construction/33e8f407-cf48-47bc-b4ea-2ce184562585
  10. // http://fisawebapp.azurewebsites.net/api/pct/chart/construction
  11. // mesma coisa pra pvq
  12.  
  13. // OLD
  14. class ConstructionPctFailRate(
  15.     val constructionName: String,
  16.     val pctResult: List<PctFailsResult>)
  17.  
  18. // NEW
  19. class ConstructionPctFailRate(
  20.     val constructionName: String,
  21.     val color: Color,
  22.     val pctGoal: Int,
  23.     val pctResult: List<PctFailsResult>)
  24.  
  25. // http://fisawebapp.azurewebsites.net/api/ppc/chart/construction/33e8f407-cf48-47bc-b4ea-2ce184562585/general
  26.  
  27. //OLD
  28. class PpcGeneralResultApi(val period: Int, val resultPercentage: Float)
  29. response = List<PpcGeneralResultApi)
  30.  
  31. //NEW
  32. class PpcGeneralResultApi(val period: Int, val resultPercentage: Float)
  33. class ConstructionPpcGeneralResult(
  34.     val constructionName: String,
  35.     val color: Color,
  36.     val results: List<PpcGeneralResultApi>
  37. )
  38.  
  39. response = ConstructionPpcGeneralResult
  40.  
  41. // http://fisawebapp.azurewebsites.net/api/ppc/chart/construction/33e8f407-cf48-47bc-b4ea-2ce184562585/supplier
  42. // mesma coisa pro four weeks
  43.  
  44. //OLD
  45. class PpcSupplierResultApi(val supplier: String, val resultPercentage: Float)
  46. response = List<PpcSupplierResultApi>
  47.  
  48. //NEW
  49. class PpcSupplierResultApi(val supplier: String, val resultPercentage: Float)
  50. class ConstructionPpcGeneralResult(
  51.     val constructionName: String,
  52.     val color: Color,
  53.     val results: List<PpcSupplierResultApi>
  54. )
  55.  
  56. response = ConstructionPpcGeneralResult
  57.  
  58. // http://fisawebapp.azurewebsites.net/api/ppc/chart/construction/33e8f407-cf48-47bc-b4ea-2ce184562585/failreason
  59. // mesma coisa pro four weeks
  60.  
  61. //OLD
  62. class PpcFailReasonResultApi(
  63.         val failReason: Int,
  64.         val percentage: Float,
  65.         val translatedValue: String)
  66. response = List<PpcFailReasonResultApi>
  67.  
  68. //NEW
  69. class PpcFailReasonResultApi(
  70.         val failReason: Int,
  71.         val percentage: Float,
  72.         val translatedValue: String)
  73.  
  74. class ConstructionResult(
  75.     constructionName: String,
  76.     color: Color,
  77.     results: List<PpcFailReasonResultApi>
  78. )
  79.  
  80. // http://fisawebapp.azurewebsites.net/api/pg/chart/energybyworker/construction/33e8f407-cf48-47bc-b4ea-2ce184562585
  81. // para todos da pg
  82.  
  83. //OLD
  84. class PGKwhByWorkersResult(
  85.         val constructionName: String,
  86.         val color: Int,
  87.         val results: List<kwhWorkerByMonth>
  88. )
  89.  
  90.  
  91. // NEW
  92. class PGKwhByWorkersResult(
  93.         val constructionName: String,
  94.         val color: Color, // <- color aqui
  95.         val results: List<kwhWorkerByMonth>
  96. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement