コード例 #1
0
ファイル: profiles.py プロジェクト: GoHypernet/Galileo-sdk
    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
ファイル: profiles.py プロジェクト: alphydan/Galileo-sdk
 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]