mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-06 05:18:47 +00:00
feat: implement web service
Signed-off-by: The one with the braid <info@braid.business>
This commit is contained in:
parent
44494eaa90
commit
6e7f19a764
26 changed files with 331 additions and 512 deletions
|
@ -1,30 +0,0 @@
|
|||
/// Information about a location beacon.
|
||||
class Beacon {
|
||||
/// Unique identifier of a Bluetooth Low Energy location beacon.
|
||||
final String proximityUUID;
|
||||
|
||||
/// Major identifier of a Bluetooth Low Energy location beacon.
|
||||
final double? major;
|
||||
|
||||
/// Minor identifier of a Bluetooth Low Energy location beacon.
|
||||
final double? minor;
|
||||
|
||||
/// Text displayed on the lock screen when the pass is currently relevant.
|
||||
/// For example, a description of the nearby location such as
|
||||
/// “Store nearby on 1st and Main.”
|
||||
final String? relevantText;
|
||||
|
||||
const Beacon({
|
||||
required this.proximityUUID,
|
||||
this.major,
|
||||
this.minor,
|
||||
this.relevantText,
|
||||
});
|
||||
|
||||
factory Beacon.fromJson(Map<String, Object?> json) => Beacon(
|
||||
proximityUUID: json['proximityUUID'] as String,
|
||||
major: json['major'] as double?,
|
||||
minor: json['minor'] as double?,
|
||||
relevantText: json['relevantText'] as String?,
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue