Skip to content

CardSubscription

Bases: CardSubscription_

Source code in src/plankapy/interfaces.py
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
class CardSubscription(CardSubscription_): 

    @property
    def user(self) -> User:
        """User that is subscribed to the card

        Returns:
            User: User instance
        """
        user_route = self.routes.get_user(id=self.userId)
        return User(**user_route()['item']).bind(self.routes)

    @property
    def card(self) -> Card:
        """Card the user is subscribed to

        Returns:
            Card: Card instance
        """
        card_route = self.routes.get_card(id=self.cardId)
        return Card(**card_route()['item']).bind(self.routes)

card property

Card the user is subscribed to

Returns:

Name Type Description
Card Card

Card instance

user property

User that is subscribed to the card

Returns:

Name Type Description
User User

User instance