-
Notifications
You must be signed in to change notification settings - Fork 0
State
Jahan Khan edited this page May 4, 2018
·
1 revision
{
entities: {
channels: {
1: {
id: 1,
name: "Hogwarts Groupchat",
userIds: [1,2,3,4],
messageIds: [1,2,3]
}
2: {
id: 2,
name: "Voldemort's Minions",
userIds: [5,6],
messageIds: [4,5]
}
}
messages: {
1: {
id: 1,
body: "i can't figure out this spell",
author_id: 1,
channel_id: 1
},
2: {
id: 2,
body: "go ask hermione",
author_id: 4,
channel_id: 1
},
3: {
id: 3,
body: "i think i might have a solution for you",
author_id: 3,
channel_id: 1
},
4: {
id: 4,
body: "i'm way better than potter",
author_id: 6,
channel_id: 2
},
5: {
id: 5,
body: "where is the cheese?",
author_id: 5,
channel_id: 2
}
},
users: {
1: {
id: 1,
username: "ron",
email: "[email protected]",
img_url: "https://www.shutterstock.com/image-vector/icon-wizard-boy-glasses-minimal-potter-1011204820?src=5IxkbjujuQSiPTHwZOWugQ-1-0"
}
2: {
id: 2,
username: "fred",
email: "[email protected]",
img_url: "https://www.shutterstock.com/image-vector/icon-wizard-boy-glasses-minimal-potter-1011204820?src=5IxkbjujuQSiPTHwZOWugQ-1-0"
},
3: {
id: 3,
username: "george",
email: "[email protected]",
img_url: "https://www.shutterstock.com/image-vector/icon-wizard-boy-glasses-minimal-potter-1011204820?src=5IxkbjujuQSiPTHwZOWugQ-1-0"
},
4: {
id: 4,
username: "harry",
email: "[email protected]",
img_url: "https://www.shutterstock.com/image-vector/icon-wizard-boy-glasses-minimal-potter-1011204820?src=5IxkbjujuQSiPTHwZOWugQ-1-0"
},
5: {
id: 5,
username: "wormtail",
email: "[email protected]",
img_url: "https://www.shutterstock.com/image-vector/icon-wizard-boy-glasses-minimal-potter-1011204820?src=5IxkbjujuQSiPTHwZOWugQ-1-0"
},
6: {
id: 6,
username: "malfoy",
email: "[email protected]",
img_url: "https://www.shutterstock.com/image-vector/icon-wizard-boy-glasses-minimal-potter-1011204820?src=5IxkbjujuQSiPTHwZOWugQ-1-0"
}
}
},
ui: {
loading: true/false
},
errors: {
login: ["Incorrect username/password combination"],
messageForm: ["Message body cannot be blank"],
},
session: { id: 2 }
}