mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 17:11:17 +00:00
16 lines
452 B
TypeScript
16 lines
452 B
TypeScript
|
|
import { WeatherSource, type WeatherSourceOptions } from "@aris/source-weatherkit"
|
||
|
|
|
||
|
|
import type { FeedSourceProvider } from "../session/feed-source-provider.ts"
|
||
|
|
|
||
|
|
export class WeatherSourceProvider implements FeedSourceProvider {
|
||
|
|
private readonly options: WeatherSourceOptions
|
||
|
|
|
||
|
|
constructor(options: WeatherSourceOptions) {
|
||
|
|
this.options = options
|
||
|
|
}
|
||
|
|
|
||
|
|
feedSourceForUser(_userId: string): WeatherSource {
|
||
|
|
return new WeatherSource(this.options)
|
||
|
|
}
|
||
|
|
}
|