Trait reactions_rpc::ReactionsApi [−][src]
Required methods
fn get_reactions_by_ids(
&self,
at: Option<BlockHash>,
reaction_ids: Vec<ReactionId>
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
[src]
&self,
at: Option<BlockHash>,
reaction_ids: Vec<ReactionId>
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
fn get_reactions_by_post_id(
&self,
at: Option<BlockHash>,
post_id: PostId,
limit: u64,
offset: u64
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
[src]
&self,
at: Option<BlockHash>,
post_id: PostId,
limit: u64,
offset: u64
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
fn get_reaction_kinds_by_post_ids_and_reactor(
&self,
at: Option<BlockHash>,
post_ids: Vec<PostId>,
reactor: AccountId
) -> Result<BTreeMap<PostId, ReactionKind>>
[src]
&self,
at: Option<BlockHash>,
post_ids: Vec<PostId>,
reactor: AccountId
) -> Result<BTreeMap<PostId, ReactionKind>>
Provided methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> where
BlockHash: Send + Sync + 'static + DeserializeOwned,
AccountId: Send + Sync + 'static + Serialize + DeserializeOwned,
BlockNumber: Send + Sync + 'static + Serialize,
[src]
BlockHash: Send + Sync + 'static + DeserializeOwned,
AccountId: Send + Sync + 'static + Serialize + DeserializeOwned,
BlockNumber: Send + Sync + 'static + Serialize,
Create an IoDelegate
, wiring rpc calls to the trait methods.
Implementors
impl<C, Block, AccountId, BlockNumber> ReactionsApi<<Block as Block>::Hash, AccountId, BlockNumber> for Reactions<C, Block> where
Block: BlockT,
AccountId: Codec,
BlockNumber: Codec,
C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
C::Api: ReactionsRuntimeApi<Block, AccountId, BlockNumber>,
[src]
Block: BlockT,
AccountId: Codec,
BlockNumber: Codec,
C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
C::Api: ReactionsRuntimeApi<Block, AccountId, BlockNumber>,
fn get_reactions_by_ids(
&self,
at: Option<<Block as BlockT>::Hash>,
reaction_ids: Vec<u64>
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
[src]
&self,
at: Option<<Block as BlockT>::Hash>,
reaction_ids: Vec<u64>
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
fn get_reactions_by_post_id(
&self,
at: Option<<Block as BlockT>::Hash>,
post_id: u64,
limit: u64,
offset: u64
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
[src]
&self,
at: Option<<Block as BlockT>::Hash>,
post_id: u64,
limit: u64,
offset: u64
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>>
fn get_reaction_kinds_by_post_ids_and_reactor(
&self,
at: Option<<Block as BlockT>::Hash>,
post_ids: Vec<PostId>,
reactor: AccountId
) -> Result<BTreeMap<PostId, ReactionKind>>
[src]
&self,
at: Option<<Block as BlockT>::Hash>,
post_ids: Vec<PostId>,
reactor: AccountId
) -> Result<BTreeMap<PostId, ReactionKind>>