@@ -141,7 +141,7 @@ public interface ITickets : ICore
141
141
142
142
bool DeleteManySuspendedTickets ( IEnumerable < long > ids ) ;
143
143
144
- GroupTicketMetricResponse GetAllTicketMetrics ( ) ;
144
+ GroupTicketMetricResponse GetAllTicketMetrics ( int ? perPage = null , int ? page = null , TicketSideLoadOptionsEnum sideLoadOptions = TicketSideLoadOptionsEnum . None ) ;
145
145
146
146
IndividualTicketMetricResponse GetTicketMetricsForTicket ( long ticket_id ) ;
147
147
@@ -262,7 +262,7 @@ public interface ITickets : ICore
262
262
263
263
Task < bool > DeleteTicketFormAsync ( long id ) ;
264
264
265
- Task < GroupTicketMetricResponse > GetAllTicketMetricsAsync ( ) ;
265
+ Task < GroupTicketMetricResponse > GetAllTicketMetricsAsync ( int ? perPage = null , int ? page = null , TicketSideLoadOptionsEnum sideLoadOptions = TicketSideLoadOptionsEnum . None ) ;
266
266
267
267
Task < IndividualTicketMetricResponse > GetTicketMetricsForTicketAsync ( long ticket_id ) ;
268
268
@@ -681,9 +681,10 @@ public bool DeleteManySuspendedTickets(IEnumerable<long> ids)
681
681
682
682
#region TicketMetrics
683
683
684
- public GroupTicketMetricResponse GetAllTicketMetrics ( )
684
+ public GroupTicketMetricResponse GetAllTicketMetrics ( int ? perPage = null , int ? page = null , TicketSideLoadOptionsEnum sideLoadOptions = TicketSideLoadOptionsEnum . None )
685
685
{
686
- return GenericGet < GroupTicketMetricResponse > ( $ "{ _ticket_metrics } .json") ;
686
+ var resource = GetResourceStringWithSideLoadOptionsParam ( $ "{ _ticket_metrics } .json", sideLoadOptions ) ;
687
+ return GenericPagedGet < GroupTicketMetricResponse > ( resource , perPage , page ) ;
687
688
}
688
689
689
690
public IndividualTicketMetricResponse GetTicketMetricsForTicket ( long ticket_id )
@@ -1053,9 +1054,10 @@ public async Task<JobStatusResponse> MergeTicketsAsync(long targetTicketId, IEnu
1053
1054
1054
1055
#region TicketMetrics
1055
1056
1056
- public Task < GroupTicketMetricResponse > GetAllTicketMetricsAsync ( )
1057
+ public async Task < GroupTicketMetricResponse > GetAllTicketMetricsAsync ( int ? perPage = null , int ? page = null , TicketSideLoadOptionsEnum sideLoadOptions = TicketSideLoadOptionsEnum . None )
1057
1058
{
1058
- return GenericGetAsync < GroupTicketMetricResponse > ( $ "{ _ticket_metrics } .json") ;
1059
+ var resource = GetResourceStringWithSideLoadOptionsParam ( $ "{ _ticket_metrics } .json", sideLoadOptions ) ;
1060
+ return await GenericPagedGetAsync < GroupTicketMetricResponse > ( resource , perPage , page ) ;
1059
1061
}
1060
1062
1061
1063
public Task < IndividualTicketMetricResponse > GetTicketMetricsForTicketAsync ( long ticket_id )
0 commit comments