fix(android): clarify channel and voice status icons
This commit is contained in:
@@ -368,6 +368,12 @@ pub struct BridgeClient {
|
||||
pub channel: u64,
|
||||
/// Nickname.
|
||||
pub name: String,
|
||||
/// True when this client has muted microphone/input capture.
|
||||
pub input_muted: bool,
|
||||
/// True when this client has muted speaker/output audio.
|
||||
pub output_muted: bool,
|
||||
/// True when recent inbound voice activity was observed for this client.
|
||||
pub is_speaking: bool,
|
||||
/// True for TeamSpeak ServerQuery clients.
|
||||
pub is_server_query: bool,
|
||||
}
|
||||
@@ -418,6 +424,9 @@ impl From<chanora_protocol::ServerSnapshot> for BridgeSnapshot {
|
||||
id: c.id.0,
|
||||
channel: c.channel.0,
|
||||
name: c.name,
|
||||
input_muted: c.input_muted,
|
||||
output_muted: c.output_muted,
|
||||
is_speaking: c.is_speaking,
|
||||
is_server_query: c.is_server_query,
|
||||
})
|
||||
.collect(),
|
||||
|
||||
@@ -1292,11 +1292,17 @@ impl SseDecode for crate::api::BridgeClient {
|
||||
let mut var_id = <u64>::sse_decode(deserializer);
|
||||
let mut var_channel = <u64>::sse_decode(deserializer);
|
||||
let mut var_name = <String>::sse_decode(deserializer);
|
||||
let mut var_input_muted = <bool>::sse_decode(deserializer);
|
||||
let mut var_output_muted = <bool>::sse_decode(deserializer);
|
||||
let mut var_is_speaking = <bool>::sse_decode(deserializer);
|
||||
let mut var_isServerQuery = <bool>::sse_decode(deserializer);
|
||||
return crate::api::BridgeClient {
|
||||
id: var_id,
|
||||
channel: var_channel,
|
||||
name: var_name,
|
||||
input_muted: var_input_muted,
|
||||
output_muted: var_output_muted,
|
||||
is_speaking: var_is_speaking,
|
||||
is_server_query: var_isServerQuery,
|
||||
};
|
||||
}
|
||||
@@ -1820,6 +1826,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::BridgeClient {
|
||||
self.id.into_into_dart().into_dart(),
|
||||
self.channel.into_into_dart().into_dart(),
|
||||
self.name.into_into_dart().into_dart(),
|
||||
self.input_muted.into_into_dart().into_dart(),
|
||||
self.output_muted.into_into_dart().into_dart(),
|
||||
self.is_speaking.into_into_dart().into_dart(),
|
||||
self.is_server_query.into_into_dart().into_dart(),
|
||||
]
|
||||
.into_dart()
|
||||
@@ -2193,6 +2202,9 @@ impl SseEncode for crate::api::BridgeClient {
|
||||
<u64>::sse_encode(self.id, serializer);
|
||||
<u64>::sse_encode(self.channel, serializer);
|
||||
<String>::sse_encode(self.name, serializer);
|
||||
<bool>::sse_encode(self.input_muted, serializer);
|
||||
<bool>::sse_encode(self.output_muted, serializer);
|
||||
<bool>::sse_encode(self.is_speaking, serializer);
|
||||
<bool>::sse_encode(self.is_server_query, serializer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user