matrix_sdk_test/test_json/
members.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! Example responses to `GET /_matrix/client/v3/rooms/{roomId}/members`

use once_cell::sync::Lazy;
use serde_json::{json, Value as JsonValue};

use super::DEFAULT_TEST_ROOM_ID;

pub static MEMBERS: Lazy<JsonValue> = Lazy::new(|| {
    json!({
        "chunk": [
        {
            "content": {
                "avatar_url": null,
                "displayname": "example",
                "membership": "join"
            },
            "event_id": "$151800140517rfvjc:localhost",
            "membership": "join",
            "origin_server_ts": 151800140,
            "room_id": *DEFAULT_TEST_ROOM_ID,
            "sender": "@example:localhost",
            "state_key": "@example:localhost",
            "type": "m.room.member",
            "unsigned": {
                "age": 2970366,
            }
        }
        ]
    })
});