Skip to content
Clipsey edited this page Sep 4, 2019 · 1 revision

State when out of category [Display list of categories]

{
  entities: {
    channels: {
      1: {
        id: 1,
        username: "runItBack",
        streamTitle: "running refrigerator",
        snapshot: "image1.jpg"
        viewers: 224
      },
      2: {
        id: 2,
        username: "mcLuvin",
        streamTitle: "eggs and bacon",
        snapshot: "image2.jpg"
        viewers: 447
      },
      5: {
        id: 5,
        username: "falseBoot",
        streamTitle: "My Title",
        snapshot: "image5.jpg"
        viewers: 0
      },
    },
    followings: {
      11: {
        id: 11,
        username: "blue_macaw",
        profilePicture: "pp11.jpg"
      },
      25: {
        id: 25,
        username: "blue_toucan",
        profilePicture: "pp25.jpg"
      }
    },
    categories: {
       4: {
        id: 4,
        title: "cooking chicken",
        picture: "cp5.jpg",
        viewers: 25
      },
      6: {
        id: 6,
        title: "frying eggs",
        picture: "cp6.jpg",
        viewers: 2
      },
      7: {
        id: 7,
        title: "dairy and you",
        picture: "cp7.jpg",
        viewers: 3000
      },
      44: {
        id: 44,
        title: "avian diets",
        picture: "cp44.jpg",
        viewers: 0
      },
      66: {
        id: 66,
        title: "plant-based diets",
        picture: "cp66.jpg",
        viewers: 30000
      }
    }
  },
  ui: {
    loading: true/false,
    homepage: {
       channels: [1, 2, 5],
       categories: [4, 6, 7],
       theme: "dark",
    }
  },
  errors: {
    login: ["Incorrect username/password combination"],
  },
  session: { currentUserId: 25 }
}

State when in category [display list of streamers in that category] :

{
  entities: {
    channels: {
      1: {
        id: 1,
        username: "runItBack",
        streamTitle: "running refrigerator",
        snapshot: "image1.jpg"
        viewers: 224
      },
      2: {
        id: 2,
        username: "mcLuvin",
        streamTitle: "eggs and bacon",
        snapshot: "image2.jpg"
        viewers: 447
      },
      5: {
        id: 5,
        username: "falseBoot",
        streamTitle: "My Title",
        snapshot: "image5.jpg"
        viewers: 0
      },
      6: {
        id: 6,
        username: "blueblue",
        streamTitle: "Testing",
        snapshot: "image6.jpg"
        viewers: 500
      },
      32: {
        id: 32,
        username: "NoMoreTables",
        streamTitle: "Cooking pasta backwards?!?",
        snapshot: "image2.jpg"
        viewers: 500000
      },
      33: {
        id: 33,
        username: "Dreamer",
        streamTitle: "One man dream team",
        snapshot: "image3.jpg"
        viewers: 0
      },
    },
    followings: {
      11: {
        id: 11,
        username: "blue_macaw",
        profilePicture: "pp11.jpg"
      },
      25: {
        id: 25,
        username: "blue_toucan",
        profilePicture: "pp25.jpg"
      }
    },
    categories: {
       4: {
        id: 4,
        title: "cooking chicken",
        picture: "cp5.jpg",
        viewers: 25
      },
      6: {
        id: 6,
        title: "frying eggs",
        picture: "cp6.jpg",
        viewers: 2
      },
      7: {
        id: 7,
        title: "dairy and you",
        picture: "cp7.jpg",
        viewers: 3000
      },
    }
  },
  ui: {
    loading: true/false,
    homepage: {
       channels: [1, 2, 5],
       categories: [4, 6, 7],
       theme: "dark",
    }
  },
  errors: {
    login: ["Incorrect username/password combination"],
  },
  session: { currentUserId: 25 }
}
Clone this wiki locally