iapetus_data library

API message parsing functionality.

These features are made public to aid in low-level API use. Regular use of the high-level Iapetus APIs should not require these features.

Classes

AndroidTunerPartner
GetStationContentRequest
InternalTunerPartner
PandoraApiResponse
SuccessfulPandoraApiResponse
TunerPartner

Enums

GetPlaylistReason
PandoraApiErrorCode

Extensions

SuccesfulPandoraApiResponseResultGetters on SuccessfulPandoraApiResponse

Constants

androidLegacyPartner → const TunerPartner
androidPartner → const AndroidTunerPartner
appSignature → const String
desktopAirClientPartner → const InternalTunerPartner
iosPartner → const TunerPartner
palmPartner → const TunerPartner
pandoraTypeEnumMap → const Map<PandoraType, String>
partner → const AndroidTunerPartner
The partner to use for all API calls.
partners → const List<Partner>
A list of all known partners.
standardUserRequestParameters → const Map<String, bool>
These are parameters to be used in API requests that respond with a user object. AuthenticatedUser expects certain properties to be included in the response, so these parameters ensure that they're included.
vistaWidgetPartner → const InternalTunerPartner
windowsMobilePartner → const TunerPartner

Functions

buildPandoraDecrypter(String key) → Converter<String, Uint8List>
Builds a request/response decrypter using the given key.
buildPandoraEncrypter(String key) → Converter<List<int>, String>
Builds a request/response encrypter using the given key.
calculateSyncTimeValue(DateTime authenticationTime, DateTime syncTime) → int
decryptSyncTime(String hex) → DateTime
encryptSyncTime(DateTime time) → String
genderFromApiString(String gender) → Gender
genderToApiString(Gender gender) → String
pandoraDecrypt(String data, Converter<String, Uint8List> decrypter, [int drop = 0]) → String
Decrypts a request/response with the given decrypter.
pandoraDecryptRequest(String data) → String
Decrypts a request using the default partner encrypter.
pandoraDecryptResponse(String data, [int drop = 0]) → String
Decrypts a response using the default partner encrypter.
pandoraEncrypt(String data, Converter<List<int>, String> encrypter) → String
Encrypts a request/response with the given encrypter.
pandoraEncryptRequest(String data) → String
Encrypts a request using the default partner encrypter.
pandoraEncryptResponse(String data) → String
Encrypts a response using the default partner encrypter.
readColor(String color) → int
readDateTimeDateString(String dateString) → DateTime
readDateTimeJsonObject(Map<String, dynamic> json) → DateTime
Reads a date/time JSON object, found in the station list for example.
readDateTimeMicroseconds(int microseconds) → DateTime
readDateTimeMilliseconds(int milliseconds) → DateTime
readDateTimeSeconds(int seconds) → DateTime
readEscapedLineBreakString(String value) → List<String>
readMilliseconds(int milliseconds) → Duration
readNum(String value) → num
readOptInBool(bool? value) → bool
readOptionalColor(String? color) → int?
readOptionalDateTimeDateString(String? dateString) → DateTime?
readOptionalDateTimeMicroseconds(int? microseconds) → DateTime?
readOptionalDateTimeMilliseconds(int? milliseconds) → DateTime?
readOptionalDateTimeSeconds(int? seconds) → DateTime?
readOptionallyEmptyString(String value) → String?
readOptionallyEmptyUri(String uri) → Uri?
readOptionalMilliseconds(int? milliseconds) → Duration?
readOptionalNum(String? value) → num?
readOptionalOptionallyEmptyString(String? value) → String?
readOptionalOptionallyEmptyUri(String? uri) → Uri?
readOptionalSeconds(int? seconds) → Duration?
readOptionalUri(String? uri) → Uri?
readOptOutBool(bool? value) → bool
readScore(Object score) → int?
readSeconds(int seconds) → Duration
readUri(String uri) → Uri
writeColor(int color) → String
writeDateTimeDateString(DateTime dateTime) → String
writeDateTimeJsonObject(DateTime dateTime) → Map<String, dynamic>
Writes a date/time JSON object.
writeDateTimeMicroseconds(DateTime dateTime) → int
writeDateTimeMilliseconds(DateTime dateTime) → int
writeDateTimeSeconds(DateTime dateTime) → int
writeEscapedLineBreakString(List<String> value) → String
writeMilliseconds(Duration duration) → int
writeNum(num value) → String
writeOptInBool(bool value) → bool?
writeOptionalColor(int? color) → String?
writeOptionalDateTimeDateString(DateTime? dateTime) → String?
writeOptionalDateTimeMicroseconds(DateTime? dateTime) → int?
writeOptionalDateTimeMilliseconds(DateTime? dateTime) → int?
writeOptionalDateTimeSeconds(DateTime? dateTime) → int?
writeOptionallyEmptyString(String? value) → String
writeOptionallyEmptyUri(Uri? uri) → String
writeOptionalMilliseconds(Duration? duration) → int?
writeOptionalNum(num? value) → String?
writeOptionalSeconds(Duration? duration) → int?
writeOptionalUri(Uri? uri) → String?
writeOptOutBool(bool value) → bool?
writeScore(int? score) → Object
writeSeconds(Duration duration) → int
writeUri(Uri uri) → String