Station class

This struct is used to represent a radio station.

Annotations
  • @JsonSerializable()

Constructors

Station.new({required String changeUUID, required String stationUUID, required String? serverUUID, required String name, required String url, required String? urlResolved, required String? homepage, required String? favicon, required String? tags, @Deprecated('Use countrycode instead, full name of the country.') required String country, required String countryCode, required String? state, required String? language, required String? languageCodes, required int votes, required DateTime lastChangeTime, required String? codec, required int bitrate, required bool hls, required bool lastCheckOk, required DateTime? lastCheckTime, required DateTime? lastCheckOkTime, required DateTime? lastLocalCheckTime, required DateTime? clickTimestamp, required int clickCount, required int clickTrend, required bool sslError, required double? geoLat, required double? geoLong, required bool hasExtendedInfo})
This struct is used to represent a radio station.
const
Station.fromJson(Map<String, dynamic> json)
This struct is used to represent a radio station.
factory

Properties

bitrate int
The bitrate of this stream recorded at the last check.
final
changeUUID String
A globally unique identifier for the change of the station information
final
clickCount int
Clicks within the last 24 hours
final
clickTimestamp DateTime?
The time of the last click recorded for this stream
final
clickTrend int
The difference of the clickcounts within the last 2 days. Posivite values mean an increase, negative a decrease of clicks.
final
codec String?
The codec of this stream recorded at the last check.
final
country String
Currently it is autogenerated from the countrycode.
final
countryCode String
Official countrycodes as in ISO 3166-1 alpha-2.
final
favicon String?
URL to an icon or picture that represents the stream. (PNG, JPG)
final
geoLat double?
Latitude on earth where the stream is located.
final
geoLong double?
Longitude on earth where the stream is located.
final
hasExtendedInfo bool
Is true, if the stream owner does provide extended information as HTTP headers which override the information in the database.
final
hashCode int
The hash code for this object.
no setterinherited
hls bool
Mark if this stream is using HLS distribution or non-HLS.
final
homepage String?
URL to the homepage of the stream, so you can direct the user to a page with more information about the stream.
final
language String?
Languages that are spoken in this stream, separated by comma.
final
languageCodes String?
Languages that are spoken in this stream by code ISO 639-2/B, separated by comma.
final
lastChangeTime DateTime
Last time when the stream information was changed in the database
final
lastCheckOk bool
The current online/offline state of this stream. This is a value calculated from multiple measure points in the internet. The test servers are located in different countries. It is a majority vote.
final
lastCheckOkTime DateTime?
The last time when the stream was checked for the online status with a positive result
final
lastCheckTime DateTime?
The last time when any radio-browser server checked the online state of this stream
final
lastLocalCheckTime DateTime?
The last time when this server checked the online state and the metadata of this stream
final
name String
The name of the station
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverUUID String?
A unique identifier for the server
final
sslError bool
Whether there was an ssl error while connecting to the stream url.
final
state String?
Full name of the entity where the station is located inside the country
final
stationUUID String
A globally unique identifier for the station
final
tags String?
Tags of the stream with more information about it
final
url String
The stream URL provided by the user
final
urlResolved String?
An automatically "resolved" stream URL. Things resolved are playlists (M3U/PLS/ASX...), HTTP redirects (Code 301/302). This link is especially useful if you use this API from a platform that is not able to do a resolve on its own (e.g. JavaScript in browser) or you just don't want to invest the time in decoding playlists yourself.
final
votes int
Number of votes for this station. This number is by server and only ever increases. It will never be reset to 0.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert a Station instance to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited