| 1 | #!/bin/false | ||
| 2 | # PODNAME: BZ::Client::BugUserLastVisit | ||
| 3 | # ABSTRACT: Find and Store the last time a user visited a Bugzilla Bug. | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings 'all'; | ||
| 7 | |||
| 8 | package BZ::Client::BugUserLastVisit; | ||
| 9 | $BZ::Client::BugUserLastVisit::VERSION = '4.91'; | ||
| 10 | |||
| 11 | use parent qw( BZ::Client::API ); | ||
| 12 | |||
| 13 | # See https://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/BugUserLastVisit.html | ||
| 14 | |||
| 15 | ## functions | ||
| 16 | |||
| 17 | sub update { | ||
| 18 | my($class, $client, $params) = @_; | ||
| 19 | my $result = $class->api_call($client, 'BugUserLastVisit.update', $params); | ||
| 20 | return wantarray ? @$result : $result | ||
| 21 | } | ||
| 22 | |||
| 23 | sub get { | ||
| 24 | my($class, $client, $params) = @_; | ||
| 25 | my $result = $class->api_call($client, 'BugUserLastVisit.get', $params); | ||
| 26 | return wantarray ? @$result : $result | ||
| 27 | } | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__ |