Skip to content

Commit

Permalink
Make StatsPostDetails Equatable
Browse files Browse the repository at this point in the history
  • Loading branch information
staskus committed Mar 20, 2024
1 parent 36ffc22 commit 518a4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WordPressKit/StatsPostDetails.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public struct StatsPostDetails {
public struct StatsPostDetails: Equatable {
public let fetchedDate: Date
public let totalViewsCount: Int

Expand All @@ -8,7 +8,7 @@ public struct StatsPostDetails {
public let lastTwoWeeks: [StatsPostViews]
}

public struct StatsWeeklyBreakdown {
public struct StatsWeeklyBreakdown: Equatable {
public let startDay: DateComponents
public let endDay: DateComponents

Expand All @@ -19,7 +19,7 @@ public struct StatsWeeklyBreakdown {
public let days: [StatsPostViews]
}

public struct StatsPostViews {
public struct StatsPostViews: Equatable {
public let period: StatsPeriodUnit
public let date: DateComponents
public let viewsCount: Int
Expand Down

0 comments on commit 518a4a5

Please sign in to comment.