| 1 | #! perl | ||
| 2 | |||
| 3 | use v5.36; | ||
| 4 | use Object::Pad; | ||
| 5 | use Class::JSON_Object; | ||
| 6 | use utf8; | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Weenect::WiFiZone - powersave zone info | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | Weenect::WiFiZone describes a user defined powersave area. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | =head1 METHODS | ||
| 19 | |||
| 20 | Supported methods include: | ||
| 21 | |||
| 22 | =head2 id | ||
| 23 | |||
| 24 | =head2 name | ||
| 25 | |||
| 26 | =head2 mac_address | ||
| 27 | |||
| 28 | =head2 created_at | ||
| 29 | |||
| 30 | =head2 updated_at | ||
| 31 | |||
| 32 | =head2 tracker_id | ||
| 33 | |||
| 34 | =head2 latitude | ||
| 35 | |||
| 36 | =head2 longitude | ||
| 37 | |||
| 38 | =head2 radius | ||
| 39 | |||
| 40 | =head2 is_active | ||
| 41 | |||
| 42 | =head2 enable_notifications | ||
| 43 | |||
| 44 | =cut | ||
| 45 | |||
| 46 | class Weenect::WiFiZone :does(Class::JSON_Object) { | ||
| 47 | field $id; | ||
| 48 | field $name; | ||
| 49 | field $mac_address; | ||
| 50 | field $created_at; | ||
| 51 | field $updated_at; | ||
| 52 | field $tracker_id; | ||
| 53 | field $latitude; | ||
| 54 | field $longitude; | ||
| 55 | field $radius; | ||
| 56 | field $is_active; | ||
| 57 | field $enable_notifications; | ||
| 58 | } | ||
| 59 | |||
| 60 | class Weenect::WiFiZones :does(Class::JSON_Object) { | ||
| 61 | field $total; | ||
| 62 | field @items :Class(Weenect::WiFiZone); | ||
| 63 | } | ||
| 64 | |||
| 65 | 1; |