Add sample channels, http lib

This commit is contained in:
Tommy Chow 2021-08-20 21:16:59 -04:00
parent db205035d2
commit 3173524441
3 changed files with 60 additions and 0 deletions

View file

@ -1 +1,53 @@
import 'package:frosty/models/channel.dart';
/// The twitch IRC websocket channel
const twitchIrc = 'wss://irc-ws.chat.twitch.tv:443';
/// Sample channel objects for testing/preview purposes.
const SampleChannels = [
Channel(
id: '',
userId: '',
userLogin: 'xqcow',
userName: 'xQcOW',
gameId: '',
gameName: 'VALORANT',
type: 'live',
title: 'TITANIC MAN WITH UNREAL UNMATCHED UNBELIEVABLE STRENGHT AND APTITUDE ACCOMPLISHES ACHIEVEMENTS DEEMED IMPOSSIBLE BY THE PUBLIC (GONE WRONG)',
viewerCount: 76422,
startedAt: '',
language: 'en',
thumbnailUrl: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_xqcow-{width}x{height}.jpg',
tagIds: [],
isMature: false),
Channel(
id: '',
userId: '',
userLogin: 'lirik',
userName: 'Lirik',
gameId: '',
gameName: 'Just Chatting',
type: 'live',
title: 'LOL',
viewerCount: 11933,
startedAt: '',
language: 'en',
thumbnailUrl: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_lirik-{width}x{height}.jpg',
tagIds: [],
isMature: false),
Channel(
id: '',
userId: '',
userLogin: 'mizkif',
userName: 'Mizkif',
gameId: '',
gameName: 'Just Chatting',
type: 'live',
title: 'DRAMA DRAMA DRAMA',
viewerCount: 4547,
startedAt: '',
language: 'en',
thumbnailUrl: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_mizkif-{width}x{height}.jpg',
tagIds: [],
isMature: false)
];

View file

@ -221,6 +221,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
http:
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.3"
http_multi_server:
dependency: transitive
description:

View file

@ -29,6 +29,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
http: ^0.13.3
dev_dependencies:
flutter_test: