Skip to content

Consider making adapter classes for each service to convert JSON into vertical model objects #71

Description

@aborem

I.e.,

# adapters/tumblr_adapter.py

class TumblrAdapter:
    def adapt_social_posting_vertical(...):
        ...

# tumblr.py

class TumblrTransferService:
    adapter = TumblrAdapter()

    ...

    def fetch_social_posting_vertical(...):
        ...
        return self.adapter.adapt_social_posting_vertical(...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bubbleLow priority that we may revisit later

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions