add new files

This commit is contained in:
Sunandar
2017-01-24 17:45:40 +06:30
parent 2f427ae5b9
commit 2893f33a23
138 changed files with 36367 additions and 0 deletions

BIN
app/views/api/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
if @out[0] == true
json.set! :status, @out[0]
json.set! :data, @out[1]
else
json.set! :status, @out[0]
json.set! :message,@out[1]
end

View File

@@ -0,0 +1,7 @@
if (@user)
json.status true
json.extract! @user, :id
else
json.status false
json.message "Logout Failed."
end

View File

@@ -0,0 +1,8 @@
if @out[0] == true
json.set! :status, @out[0]
json.set! :serial_no, @out[1]
json.set! :wristband_code, @out[2]
else
json.set! :status, @out[0]
json.set! :message,@out[1]
end

View File

@@ -0,0 +1,2 @@
json.set! :status, @out[0]
json.set! :message,@out[1]

View File

@@ -0,0 +1,7 @@
if @out[0] == true
json.set! :status, @out[0]
json.set! :data, @out[1]
else
json.set! :status, @out[0]
json.set! :message,@out[1]
end

View File

@@ -0,0 +1,7 @@
if @out[0] == true
json.set! :status, @out[0]
json.set! :data, @out[1]
else
json.set! :status, @out[0]
json.set! :message,@out[1]
end

View File

@@ -0,0 +1,7 @@
if @out[0] == true
json.set! :status, @out[0]
json.set! :data, @out[1]
else
json.set! :status, @out[0]
json.set! :message,@out[1]
end