amsel 0.1.0

Framework for building Bluesky Bots
Documentation
use crate::BskyRecordRef;
use bsky_sdk::BskyAgent;

pub struct BskyFeed {
    base: atrium_api::app::bsky::feed::generator::RecordData,
    reference: BskyRecordRef,
    agent: BskyAgent,
}

impl BskyFeed {
    pub fn new(
        base: atrium_api::app::bsky::feed::generator::RecordData,
        reference: BskyRecordRef,
        agent: BskyAgent,
    ) -> BskyFeed {
        BskyFeed {
            base,
            reference,
            agent,
        }
    }
}

impl std::ops::Deref for BskyFeed {
    type Target = atrium_api::app::bsky::feed::generator::RecordData;

    fn deref(&self) -> &Self::Target {
        &self.base
    }
}