Trait reactions_runtime_api::ReactionsApi[][src]

pub trait ReactionsApi<Block: BlockT, AccountId, BlockNumber>: Core<Block> where
    AccountId: Codec,
    BlockNumber: Codec
{ fn get_reactions_by_ids(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        reaction_ids: Vec<ReactionId>
    ) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error> { ... }
fn get_reactions_by_ids_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        reaction_ids: Vec<ReactionId>
    ) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error> { ... }
fn get_reactions_by_post_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        post_id: PostId,
        limit: u64,
        offset: u64
    ) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error> { ... }
fn get_reactions_by_post_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        post_id: PostId,
        limit: u64,
        offset: u64
    ) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error> { ... }
fn get_reaction_kinds_by_post_ids_and_reactor(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        post_ids: Vec<PostId>,
        reactor: AccountId
    ) -> Result<BTreeMap<PostId, ReactionKind>, Self::Error> { ... }
fn get_reaction_kinds_by_post_ids_and_reactor_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        post_ids: Vec<PostId>,
        reactor: AccountId
    ) -> Result<BTreeMap<PostId, ReactionKind>, Self::Error> { ... } }

Provided methods

fn get_reactions_by_ids(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    reaction_ids: Vec<ReactionId>
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error>
[src]

fn get_reactions_by_ids_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    reaction_ids: Vec<ReactionId>
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error>
[src]

fn get_reactions_by_post_id(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    post_id: PostId,
    limit: u64,
    offset: u64
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error>
[src]

fn get_reactions_by_post_id_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    post_id: PostId,
    limit: u64,
    offset: u64
) -> Result<Vec<FlatReaction<AccountId, BlockNumber>>, Self::Error>
[src]

fn get_reaction_kinds_by_post_ids_and_reactor(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    post_ids: Vec<PostId>,
    reactor: AccountId
) -> Result<BTreeMap<PostId, ReactionKind>, Self::Error>
[src]

fn get_reaction_kinds_by_post_ids_and_reactor_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    post_ids: Vec<PostId>,
    reactor: AccountId
) -> Result<BTreeMap<PostId, ReactionKind>, Self::Error>
[src]

Loading content...

Trait Implementations

impl<Block: BlockT, AccountId, BlockNumber, __Sr_Api_Error__> RuntimeApiInfo for dyn ReactionsApi<Block, AccountId, BlockNumber, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...