Skip to content

Commit

Permalink
chore(android): pigeon upgrade for android
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgangso committed Aug 15, 2024
1 parent 95ff132 commit a5de5f9
Show file tree
Hide file tree
Showing 21 changed files with 1,168 additions and 1,125 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v20.0.2), do not edit directly.
// Autogenerated from Pigeon (v21.2.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon

package media.bcc.bccm_player.pigeon;
Expand Down Expand Up @@ -99,14 +99,14 @@ public static final class Builder {

@NonNull
ArrayList<Object> toList() {
ArrayList<Object> toListResult = new ArrayList<Object>(1);
ArrayList<Object> toListResult = new ArrayList<>(1);
toListResult.add(playbackPositionMs);
return toListResult;
}

static @NonNull CastSessionUnavailableEvent fromList(@NonNull ArrayList<Object> __pigeon_list) {
static @NonNull CastSessionUnavailableEvent fromList(@NonNull ArrayList<Object> pigeonVar_list) {
CastSessionUnavailableEvent pigeonResult = new CastSessionUnavailableEvent();
Object playbackPositionMs = __pigeon_list.get(0);
Object playbackPositionMs = pigeonVar_list.get(0);
pigeonResult.setPlaybackPositionMs((playbackPositionMs == null) ? null : ((playbackPositionMs instanceof Integer) ? (Integer) playbackPositionMs : (Long) playbackPositionMs));
return pigeonResult;
}
Expand Down Expand Up @@ -180,8 +180,10 @@ public ChromecastPigeon(@NonNull BinaryMessenger argBinaryMessenger, @NonNull St
this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix;
}

/** Public interface for sending reply. */
/** The codec used by ChromecastPigeon. */
/**
* Public interface for sending reply.
* The codec used by ChromecastPigeon.
*/
static @NonNull MessageCodec<Object> getCodec() {
return PigeonCodec.INSTANCE;
}
Expand All @@ -196,7 +198,7 @@ public void onSessionEnded(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -216,7 +218,7 @@ public void onSessionEnding(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -236,7 +238,7 @@ public void onSessionResumeFailed(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -256,7 +258,7 @@ public void onSessionResumed(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -276,7 +278,7 @@ public void onSessionResuming(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -296,7 +298,7 @@ public void onSessionStartFailed(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -316,7 +318,7 @@ public void onSessionStarted(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -336,7 +338,7 @@ public void onSessionStarting(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -356,7 +358,7 @@ public void onSessionSuspended(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -376,7 +378,7 @@ public void onCastSessionAvailable(@NonNull VoidResult result) {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand All @@ -391,12 +393,12 @@ public void onCastSessionUnavailable(@NonNull CastSessionUnavailableEvent eventA
new BasicMessageChannel<>(
binaryMessenger, channelName, getCodec());
channel.send(
new ArrayList<Object>(Collections.singletonList(eventArg)),
new ArrayList<>(Collections.singletonList(eventArg)),
channelReply -> {
if (channelReply instanceof List) {
List<Object> listReply = (List<Object>) channelReply;
if (listReply.size() > 1) {
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));
result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));
} else {
result.success();
}
Expand Down
Loading

0 comments on commit a5de5f9

Please sign in to comment.