|
| 1 | +import { StreamResponse } from "@types"; |
| 2 | + |
| 3 | +const now = new Date(); |
| 4 | +const oneHourAgo = new Date(now.getTime() - 60 * 60 * 1000); |
| 5 | +const twoHoursLater = new Date(now.getTime() + 2 * 60 * 60 * 1000); |
| 6 | +const fourHoursLater = new Date(now.getTime() + 4 * 60 * 60 * 1000); |
| 7 | +const sixHoursLater = new Date(now.getTime() + 6 * 60 * 60 * 1000); |
| 8 | +const tomorrow = new Date(now.getTime() + 24 * 60 * 60 * 1000); |
| 9 | +const ttl = new Date(now.getTime() + 30 * 24 * 60 * 60 * 1000); // 30 days from now |
| 10 | + |
| 11 | +export const mockStreams: StreamResponse[] = [ |
| 12 | + { |
| 13 | + id: "stream1", |
| 14 | + streamerId: "streamer1", |
| 15 | + channelId: "UCvUc0m317LWTTPZoBQV479A", |
| 16 | + platform: "youtube", |
| 17 | + title: "【LIVE】Morning Gaming Stream - Apex Legends Ranked", |
| 18 | + thumbnail: "/mock-images/stream-thumbnail.svg", |
| 19 | + url: "https://www.youtube.com/live/YkySMsypko8", |
| 20 | + scheduledStartTime: oneHourAgo.toISOString(), |
| 21 | + startTime: oneHourAgo.toISOString(), |
| 22 | + ttl, |
| 23 | + }, |
| 24 | + { |
| 25 | + id: "stream2", |
| 26 | + streamerId: "streamer2", |
| 27 | + channelId: "shinomiyaruna", |
| 28 | + platform: "twitch", |
| 29 | + title: "【Twitch】Chatting and Game Testing Stream", |
| 30 | + thumbnail: "/mock-images/stream-thumbnail.svg", |
| 31 | + url: "https://www.twitch.tv/shinomiyaruna", |
| 32 | + scheduledStartTime: twoHoursLater.toISOString(), |
| 33 | + ttl, |
| 34 | + }, |
| 35 | + { |
| 36 | + id: "stream3", |
| 37 | + streamerId: "streamer1", |
| 38 | + channelId: "UCvUc0m317LWTTPZoBQV479A", |
| 39 | + platform: "youtube", |
| 40 | + title: "【Minecraft】Building a new house! Come hang out!", |
| 41 | + thumbnail: "/mock-images/stream-thumbnail.svg", |
| 42 | + url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", |
| 43 | + scheduledStartTime: fourHoursLater.toISOString(), |
| 44 | + ttl, |
| 45 | + }, |
| 46 | + { |
| 47 | + id: "stream4", |
| 48 | + streamerId: "streamer3", |
| 49 | + channelId: "hanabusarisa", |
| 50 | + platform: "twitCasting", |
| 51 | + title: "Late Night Chat Stream 💤", |
| 52 | + thumbnail: "/mock-images/stream-thumbnail.svg", |
| 53 | + url: "https://twitcasting.tv/hanabusarisa", |
| 54 | + scheduledStartTime: sixHoursLater.toISOString(), |
| 55 | + ttl, |
| 56 | + }, |
| 57 | + { |
| 58 | + id: "stream5", |
| 59 | + streamerId: "streamer2", |
| 60 | + channelId: "UC61OwuYOVuKkpKnid-43Twg", |
| 61 | + platform: "youtube", |
| 62 | + title: "【歌枠】Singing Stream - Taking Requests!", |
| 63 | + thumbnail: "/mock-images/stream-thumbnail.svg", |
| 64 | + url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", |
| 65 | + scheduledStartTime: tomorrow.toISOString(), |
| 66 | + ttl, |
| 67 | + }, |
| 68 | + { |
| 69 | + id: "stream6", |
| 70 | + streamerId: "streamer3", |
| 71 | + channelId: "UCD5W21JqNMv_tV9nfjvF9sw", |
| 72 | + platform: "youtube", |
| 73 | + title: "【Valorant】Competitive Ranked Grind", |
| 74 | + thumbnail: "/mock-images/stream-thumbnail.svg", |
| 75 | + url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", |
| 76 | + scheduledStartTime: tomorrow.toISOString(), |
| 77 | + ttl, |
| 78 | + }, |
| 79 | +]; |
0 commit comments