require 'platform_connections/connection_platforms'

module PlatformConnections
  class Connection
    def self.get_all(user_id)
      Connections::Connection.get_all(user_id)
    end

    def self.destroy(user_id, platform)
      if Connections::PLATFORMS.include?(platform)
        Connections::Connection.destroy(user_id, platform)
      end
    end

    def self.query(id, platform)
      Connections::Connection.query(id, platform)
    end
  end
end
