shlink-manager/lib/API/Classes/ShlinkStats/shlink_stats_visits.dart

20 lines
487 B
Dart
Raw Normal View History

2024-01-27 23:07:06 +01:00
/// Visitor data
class ShlinkStatsVisits {
/// Count of URL visits
int total;
2024-01-28 00:32:09 +01:00
2024-01-27 23:07:06 +01:00
/// Count of URL visits from humans
int nonBots;
2024-01-28 00:32:09 +01:00
2024-01-27 23:07:06 +01:00
/// Count of URL visits from bots/crawlers
int bots;
ShlinkStatsVisits(this.total, this.nonBots, this.bots);
/// Converts the JSON data from the API to an instance of [ShlinkStatsVisits]
ShlinkStatsVisits.fromJson(Map<String, dynamic> json)
: total = json["total"],
nonBots = json["nonBots"],
bots = json["bots"];
2024-01-28 00:32:09 +01:00
}