def get_appinfo(self, request): community_app = getAppInfo(team_key=request.team_key) return AppInfoMessage(name=community_app.name, icon_url=community_app.icon_url)
def get_community_by_hash(self, request): community = Community.get_by_hash(request.team_hash) community_app = getAppInfo(team_key=community.team_key) return CommunityHashResponseMessage(team_key=community.team_key, app_name=community_app.name, app_icon=community_app.icon_url)