/app/source/models/count.coffee
https://bitbucket.org/jorritposthuma/inventory-counter-mobile · CoffeeScript · 18 lines · 16 code · 2 blank · 0 comment · 1 complexity · 6b9d498893992a4ca6c7fb4c11145e36 MD5 · raw file
- class Count extends Model
- @status =
- ERROR: -1
- UPLOAD: 0
- PROCESS: 1
- MAP: 2
- COUNT: 3
- FINAL: 4
- @statusToString = (status) ->
- switch status
- when -1 then "error"
- when 0 then "upload"
- when 1 then "process"
- when 2 then "map"
- when 3 then "count"
- when 4 then "final"