matrix_sdk_test/test_json/
members.rs

1//! Example responses to `GET /_matrix/client/v3/rooms/{roomId}/members`
2
3use once_cell::sync::Lazy;
4use serde_json::{json, Value as JsonValue};
5
6use super::DEFAULT_TEST_ROOM_ID;
7
8pub static MEMBERS: Lazy<JsonValue> = Lazy::new(|| {
9    json!({
10        "chunk": [
11        {
12            "content": {
13                "avatar_url": null,
14                "displayname": "example",
15                "membership": "join"
16            },
17            "event_id": "$151800140517rfvjc:localhost",
18            "membership": "join",
19            "origin_server_ts": 151800140,
20            "room_id": *DEFAULT_TEST_ROOM_ID,
21            "sender": "@example:localhost",
22            "state_key": "@example:localhost",
23            "type": "m.room.member",
24            "unsigned": {
25                "age": 2970366,
26            }
27        }
28        ]
29    })
30});