Filling tho responses array.
This commit is contained in:
parent
c39e639ab1
commit
841d2dc7c2
@ -6,4 +6,5 @@ class AuthD::Response
|
|||||||
def initialize(@user, @email, @phone)
|
def initialize(@user, @email, @phone)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << Contacts
|
||||||
end
|
end
|
||||||
|
@ -4,4 +4,5 @@ class AuthD::Response
|
|||||||
def initialize(@reason)
|
def initialize(@reason)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << Error
|
||||||
end
|
end
|
||||||
|
@ -4,10 +4,12 @@ class AuthD::Response
|
|||||||
def initialize(@user)
|
def initialize(@user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << PasswordRecoverySent
|
||||||
|
|
||||||
IPC::JSON.message PasswordRecovered, 10 do
|
IPC::JSON.message PasswordRecovered, 10 do
|
||||||
property user : ::AuthD::User::Public
|
property user : ::AuthD::User::Public
|
||||||
def initialize(@user)
|
def initialize(@user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << PasswordRecovered
|
||||||
end
|
end
|
||||||
|
@ -7,6 +7,7 @@ class AuthD::Response
|
|||||||
def initialize(@service, @resource, @user, @permission)
|
def initialize(@service, @resource, @user, @permission)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << PermissionCheck
|
||||||
|
|
||||||
IPC::JSON.message PermissionSet, 8 do
|
IPC::JSON.message PermissionSet, 8 do
|
||||||
property user : Int32
|
property user : Int32
|
||||||
@ -16,4 +17,5 @@ class AuthD::Response
|
|||||||
def initialize(@user, @service, @resource, @permission)
|
def initialize(@user, @service, @resource, @permission)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << PermissionSet
|
||||||
end
|
end
|
||||||
|
@ -5,4 +5,5 @@ class AuthD::Response
|
|||||||
def initialize(@token, @uid)
|
def initialize(@token, @uid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << Token
|
||||||
end
|
end
|
||||||
|
@ -4,34 +4,40 @@ class AuthD::Response
|
|||||||
def initialize(@user)
|
def initialize(@user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << User
|
||||||
|
|
||||||
IPC::JSON.message UserAdded, 3 do
|
IPC::JSON.message UserAdded, 3 do
|
||||||
property user : ::AuthD::User::Public
|
property user : ::AuthD::User::Public
|
||||||
def initialize(@user)
|
def initialize(@user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << UserAdded
|
||||||
|
|
||||||
IPC::JSON.message UserEdited, 4 do
|
IPC::JSON.message UserEdited, 4 do
|
||||||
property uid : Int32
|
property uid : Int32
|
||||||
def initialize(@uid)
|
def initialize(@uid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << UserEdited
|
||||||
|
|
||||||
IPC::JSON.message UserValidated, 5 do
|
IPC::JSON.message UserValidated, 5 do
|
||||||
property user : ::AuthD::User::Public
|
property user : ::AuthD::User::Public
|
||||||
def initialize(@user)
|
def initialize(@user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << UserValidated
|
||||||
|
|
||||||
IPC::JSON.message UsersList, 6 do
|
IPC::JSON.message UsersList, 6 do
|
||||||
property users : Array(::AuthD::User::Public)
|
property users : Array(::AuthD::User::Public)
|
||||||
def initialize(@users)
|
def initialize(@users)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << UsersList
|
||||||
|
|
||||||
IPC::JSON.message MatchingUsers, 11 do
|
IPC::JSON.message MatchingUsers, 11 do
|
||||||
property users : Array(::AuthD::User::Public)
|
property users : Array(::AuthD::User::Public)
|
||||||
def initialize(@users)
|
def initialize(@users)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
AuthD.responses << MatchingUsers
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user