Filling tho responses array.

This commit is contained in:
Karchnu 2020-12-13 03:00:45 +01:00
parent c39e639ab1
commit 841d2dc7c2
6 changed files with 13 additions and 0 deletions

View File

@ -6,4 +6,5 @@ class AuthD::Response
def initialize(@user, @email, @phone)
end
end
AuthD.responses << Contacts
end

View File

@ -4,4 +4,5 @@ class AuthD::Response
def initialize(@reason)
end
end
AuthD.responses << Error
end

View File

@ -4,10 +4,12 @@ class AuthD::Response
def initialize(@user)
end
end
AuthD.responses << PasswordRecoverySent
IPC::JSON.message PasswordRecovered, 10 do
property user : ::AuthD::User::Public
def initialize(@user)
end
end
AuthD.responses << PasswordRecovered
end

View File

@ -7,6 +7,7 @@ class AuthD::Response
def initialize(@service, @resource, @user, @permission)
end
end
AuthD.responses << PermissionCheck
IPC::JSON.message PermissionSet, 8 do
property user : Int32
@ -16,4 +17,5 @@ class AuthD::Response
def initialize(@user, @service, @resource, @permission)
end
end
AuthD.responses << PermissionSet
end

View File

@ -5,4 +5,5 @@ class AuthD::Response
def initialize(@token, @uid)
end
end
AuthD.responses << Token
end

View File

@ -4,34 +4,40 @@ class AuthD::Response
def initialize(@user)
end
end
AuthD.responses << User
IPC::JSON.message UserAdded, 3 do
property user : ::AuthD::User::Public
def initialize(@user)
end
end
AuthD.responses << UserAdded
IPC::JSON.message UserEdited, 4 do
property uid : Int32
def initialize(@uid)
end
end
AuthD.responses << UserEdited
IPC::JSON.message UserValidated, 5 do
property user : ::AuthD::User::Public
def initialize(@user)
end
end
AuthD.responses << UserValidated
IPC::JSON.message UsersList, 6 do
property users : Array(::AuthD::User::Public)
def initialize(@users)
end
end
AuthD.responses << UsersList
IPC::JSON.message MatchingUsers, 11 do
property users : Array(::AuthD::User::Public)
def initialize(@users)
end
end
AuthD.responses << MatchingUsers
end