PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): MIT, Apache-2.0
 1class Count extends Model
 2
 3  @status =
 4    ERROR:    -1
 5    UPLOAD:   0
 6    PROCESS:  1
 7    MAP:      2
 8    COUNT:    3
 9    FINAL:    4
10
11  @statusToString = (status) ->
12    switch status
13      when -1 then "error"
14      when 0 then "upload"
15      when 1 then "process"
16      when 2 then "map"
17      when 3 then "count"
18      when 4 then "final"