libipc API updates.

ipc07
Luka Vandervelden 2019-06-05 22:38:08 +02:00
parent a31bd4c940
commit 96134ba876
1 changed files with 6 additions and 6 deletions

View File

@ -80,7 +80,7 @@ module AuthD
response = read response = read
if response.user_type == ResponseTypes::Ok.value.to_u8 if response.type == ResponseTypes::Ok.value.to_u8
response.payload response.payload
else else
nil nil
@ -95,7 +95,7 @@ module AuthD
response = read response = read
if response.user_type == ResponseTypes::Ok.value.to_u8 if response.type == ResponseTypes::Ok.value.to_u8
User.from_json response.payload User.from_json response.payload
else else
nil nil
@ -107,7 +107,7 @@ module AuthD
response = read response = read
if response.user_type == ResponseTypes::Ok.value.to_u8 if response.type == ResponseTypes::Ok.value.to_u8
User.from_json response.payload User.from_json response.payload
else else
nil nil
@ -135,8 +135,8 @@ module AuthD
response = read response = read
pp! response.user_type pp! response.type
case ResponseTypes.new response.user_type.to_i case ResponseTypes.new response.type.to_i
when ResponseTypes::Ok when ResponseTypes::Ok
AuthD::User.from_json response.payload AuthD::User.from_json response.payload
else else
@ -160,7 +160,7 @@ module AuthD
response = read response = read
case ResponseTypes.new response.user_type.to_i case ResponseTypes.new response.type.to_i
when ResponseTypes::Ok when ResponseTypes::Ok
true true
else else