def list_station_invites(self): """ List all inbound station invites :return: Stations inviting the current user :rtype: List[Station] """ response = self._get("/users/invites") json = response.json() stations = json["stations"] return [station_dict_to_station(station) for station in stations]
def on_station_member_station_updated(data): self.stations_events.station_member_station_updated( StationMemberStationUpdated( station_dict_to_station(data["station"])))
def on_station_admin_station_updated(data): self.stations_events.station_admin_station_updated( StationAdminStationUpdated( station_dict_to_station(data["station"])))
def on_station_user_invite_received(data): self.stations_events.station_user_invite_received( StationUserInviteReceivedEvent( station_dict_to_station(data["station"])))
def on_new_station(data): self.stations_events.new_station( NewStationEvent(station_dict_to_station(data["station"])))
def list_station_invites(self): response = self._get("/users/invites") json = response.json() stations = json["stations"] return [station_dict_to_station(station) for station in stations]