iapetus_data library Null safety
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
Extensions
Constants
- androidLegacyPartner → const TunerPartner
-
TunerPartner(username: 'android-gtv', password: '^bs2*tzZAM47tvmAvV1GZS^TH1SBW?8o', deviceId: 'gtv2-foster', requestEncryptKey: 'MCf5Ljj*V?Fr4cF4', responseEncryptKey: …
- androidPartner → const AndroidTunerPartner
-
AndroidTunerPartner(username: 'android', password: 'AC7IBG09A3DTSYM4R41UJWL07VLN8JI7', deviceId: 'android-generic', requestEncryptKey: '6#26FRL\$ZWD', responseEncryptKe…
- appSignature → const String
-
'0735356f37ee31a95dcbe016fcc8c5b2a6a4ac93'
- desktopAirClientPartner → const InternalTunerPartner
-
InternalTunerPartner(username: 'pandora one', password: 'TVCKIBGS9AO9TSYLNNFUML0743LH82D', deviceId: 'D01', requestEncryptKey: '2%3WCL*JU\$MP]4', responseEncryptKey: …
- iosPartner → const TunerPartner
-
TunerPartner(username: 'iphone', password: 'P2E4FC0EAD3*878N92B2CDp34I0B1@388137C', deviceId: 'IP01', requestEncryptKey: '721^26xE22776', responseEncryptKey: '20zE1…
- palmPartner → const TunerPartner
-
TunerPartner(username: 'palm', password: 'IUC7IBG09A3JTSYM4N11UJWL07VLH8JP0', deviceId: 'pre', requestEncryptKey: '%526CBL\$ZU3', responseEncryptKey: 'E#U\$MY\$O2B=…
-
pandoraTypeEnumMap
→ const Map<
PandoraType, String> -
_$PandoraTypeEnumMap
- partner → const AndroidTunerPartner
-
The partner to use for all API calls.
androidPartner
-
partners
→ const List<
Partner> -
A list of all known partners.
[androidPartner, androidLegacyPartner, iosPartner, palmPartner, windowsMobilePartner, desktopAirClientPartner, vistaWidgetPartner]
-
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.
{'includePandoraOneInfo' : true, 'includeDemographics' : true, 'includeAdAttributes' : true, 'returnCollectTrackLifetimeStats' : true, 'returnIsSubscriber' : tr…
- vistaWidgetPartner → const InternalTunerPartner
-
InternalTunerPartner(username: 'windowsgadget', password: 'EVCCIBGS9AOJTSYMNNFUML07VLH8JYP0', deviceId: 'WG01', requestEncryptKey: '%22CML*ZU\$8YXP[1', responseEncryptK…
- windowsMobilePartner → const TunerPartner
-
TunerPartner(username: 'winmo', password: 'ED227E10a628EB0E8Pm825Dw7114AC39', deviceId: 'VERIZON_MOTOQ9C', requestEncryptKey: 'v93C8C2s12E0EBD', responseEncryptKey: …
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< encrypter) → Stringint> , 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