mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Remove AttrArgsProcessEvent type and use CGREvent in its stead
This commit is contained in:
committed by
Dan Christian Bogos
parent
1f33f480b2
commit
2e241d9632
@@ -27,7 +27,7 @@ func init() {
|
||||
c := &CmdGetAttributeForEvent{
|
||||
name: "attributes_for_event",
|
||||
rpcMethod: utils.AttributeSv1GetAttributeForEvent,
|
||||
rpcParams: &engine.AttrArgsProcessEvent{},
|
||||
rpcParams: &utils.CGREvent{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -36,7 +36,7 @@ func init() {
|
||||
type CmdGetAttributeForEvent struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *engine.AttrArgsProcessEvent
|
||||
rpcParams *utils.CGREvent
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -50,9 +50,7 @@ func (self *CmdGetAttributeForEvent) RpcMethod() string {
|
||||
|
||||
func (self *CmdGetAttributeForEvent) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &engine.AttrArgsProcessEvent{
|
||||
CGREvent: new(utils.CGREvent),
|
||||
}
|
||||
self.rpcParams = new(utils.CGREvent)
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ func init() {
|
||||
c := &CmdAttributesProcessEvent{
|
||||
name: "attributes_process_event",
|
||||
rpcMethod: utils.AttributeSv1ProcessEvent,
|
||||
rpcParams: &engine.AttrArgsProcessEvent{},
|
||||
rpcParams: &utils.CGREvent{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -38,7 +38,7 @@ func init() {
|
||||
type CmdAttributesProcessEvent struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *engine.AttrArgsProcessEvent
|
||||
rpcParams *utils.CGREvent
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -52,9 +52,7 @@ func (self *CmdAttributesProcessEvent) RpcMethod() string {
|
||||
|
||||
func (self *CmdAttributesProcessEvent) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &engine.AttrArgsProcessEvent{
|
||||
CGREvent: new(utils.CGREvent),
|
||||
}
|
||||
self.rpcParams = new(utils.CGREvent)
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user