diff options
Diffstat (limited to 'perllib/Integrations/Echo.pm')
-rw-r--r-- | perllib/Integrations/Echo.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/perllib/Integrations/Echo.pm b/perllib/Integrations/Echo.pm index 48a0edc6c..9a5b65ec2 100644 --- a/perllib/Integrations/Echo.pm +++ b/perllib/Integrations/Echo.pm @@ -291,6 +291,24 @@ sub GetServiceTaskInstances { return force_arrayref($res, 'ServiceTaskInstances'); } +sub GetEvent { + my ($self, $guid) = @_; + $self->call('GetEvent', ref => ixhash( + Key => 'Guid', + Type => 'Event', + Value => { 'msArray:anyType' => $guid }, + )); +} + +sub GetEventType { + my ($self, $id) = @_; + $self->call('GetEventType', ref => ixhash( + Key => 'Id', + Type => 'EventType', + Value => { 'msArray:anyType' => $id }, + )); +} + sub GetEventsForObject { my ($self, $id, $type) = @_; my $from = DateTime->now->set_time_zone(FixMyStreet->local_time_zone)->subtract(months => 3); |