예제 #1
0
    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]
예제 #2
0
 def on_station_member_station_updated(data):
     self.stations_events.station_member_station_updated(
         StationMemberStationUpdated(
             station_dict_to_station(data["station"])))
예제 #3
0
 def on_station_admin_station_updated(data):
     self.stations_events.station_admin_station_updated(
         StationAdminStationUpdated(
             station_dict_to_station(data["station"])))
예제 #4
0
 def on_station_user_invite_received(data):
     self.stations_events.station_user_invite_received(
         StationUserInviteReceivedEvent(
             station_dict_to_station(data["station"])))
예제 #5
0
 def on_new_station(data):
     self.stations_events.new_station(
         NewStationEvent(station_dict_to_station(data["station"])))
예제 #6
0
 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]