Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 518a4a5

Browse files
committed
Make StatsPostDetails Equatable
1 parent 36ffc22 commit 518a4a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPressKit/StatsPostDetails.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public struct StatsPostDetails {
1+
public struct StatsPostDetails: Equatable {
22
public let fetchedDate: Date
33
public let totalViewsCount: Int
44

@@ -8,7 +8,7 @@ public struct StatsPostDetails {
88
public let lastTwoWeeks: [StatsPostViews]
99
}
1010

11-
public struct StatsWeeklyBreakdown {
11+
public struct StatsWeeklyBreakdown: Equatable {
1212
public let startDay: DateComponents
1313
public let endDay: DateComponents
1414

@@ -19,7 +19,7 @@ public struct StatsWeeklyBreakdown {
1919
public let days: [StatsPostViews]
2020
}
2121

22-
public struct StatsPostViews {
22+
public struct StatsPostViews: Equatable {
2323
public let period: StatsPeriodUnit
2424
public let date: DateComponents
2525
public let viewsCount: Int

0 commit comments

Comments
 (0)