use crate::message::{
DeleteMessage, InsertMessage, InsertUpdateMessage, RequestStdbConnectionMessage,
StdbConnectedMessage, StdbConnectionErrorMessage, StdbDisconnectedMessage,
StdbSubscriptionAppliedMessage, StdbSubscriptionErrorMessage, UpdateMessage,
};
use bevy_ecs::prelude::{MessageReader, MessageWriter};
pub type ReadInsertMessage<'w, 's, T> = MessageReader<'w, 's, InsertMessage<T>>;
pub type ReadUpdateMessage<'w, 's, T> = MessageReader<'w, 's, UpdateMessage<T>>;
pub type ReadDeleteMessage<'w, 's, T> = MessageReader<'w, 's, DeleteMessage<T>>;
pub type ReadInsertUpdateMessage<'w, 's, T> = MessageReader<'w, 's, InsertUpdateMessage<T>>;
pub type ReadStdbConnectedMessage<'w, 's> = MessageReader<'w, 's, StdbConnectedMessage>;
pub type ReadStdbDisconnectedMessage<'w, 's> = MessageReader<'w, 's, StdbDisconnectedMessage>;
pub type ReadStdbConnectionErrorMessage<'w, 's> = MessageReader<'w, 's, StdbConnectionErrorMessage>;
pub type ReadRequestStdbConnectionMessage<'w, 's> =
MessageReader<'w, 's, RequestStdbConnectionMessage>;
pub type WriteRequestStdbConnectionMessage<'w> = MessageWriter<'w, RequestStdbConnectionMessage>;
pub type ReadStdbSubscriptionAppliedMessage<'w, 's, K> =
MessageReader<'w, 's, StdbSubscriptionAppliedMessage<K>>;
pub type ReadStdbSubscriptionErrorMessage<'w, 's, K> =
MessageReader<'w, 's, StdbSubscriptionErrorMessage<K>>;