archiveSyncResponse property

Map<String, dynamic> archiveSyncResponse
getter/setter pair

Implementation

static Map<String, dynamic> archiveSyncResponse = {
  'next_batch': Random().nextDouble().toString(),
  'presence': {'events': []},
  'account_data': {'events': []},
  'to_device': {'events': []},
  'rooms': {
    'join': {},
    'invite': {},
    'leave': {
      '!5345234234:example.com': {
        'timeline': {
          'events': [
            {
              'content': {
                'body': 'This is a second text example message',
                'msgtype': 'm.text',
                'format': 'org.matrix.custom.html',
                'formatted_body':
                    '<b>This is a second text example message</b>',
              },
              'type': 'm.room.message',
              'event_id': '143274597446PhrSn:example.org',
              'room_id': '!5345234234:example.com',
              'sender': '@example:example.org',
              'origin_server_ts': 1432735824654,
              'unsigned': {'age': 1234},
            },
            {
              'content': {
                'body': 'This is a first text example message',
                'msgtype': 'm.text',
                'format': 'org.matrix.custom.html',
                'formatted_body':
                    '<b>This is a first text example message</b>',
              },
              'type': 'm.room.message',
              'event_id': '143274597443PhrSn:example.org',
              'room_id': '!5345234234:example.com',
              'sender': '@example:example.org',
              'origin_server_ts': 1432735824653,
              'unsigned': {'age': 1234},
            }
          ],
          'prev_batch': 't_1234a',
        },
        'state': {
          'events': [
            {
              'content': {'name': 'The room name'},
              'type': 'm.room.name',
              'event_id': '2143273582443PhrSn:example.org',
              'room_id': '!5345234234:example.com',
              'sender': '@example:example.org',
              'origin_server_ts': 1432735824653,
              'unsigned': {'age': 1234},
              'state_key': '',
            },
          ],
        },
        'account_data': {
          'events': [
            {
              'type': 'test.type.data',
              'content': {'foo': 'bar'},
            },
          ],
        },
      },
      '!5345234235:example.com': {
        'timeline': {'events': []},
        'state': {
          'events': [
            {
              'content': {'name': 'The room name 2'},
              'type': 'm.room.name',
              'event_id': '2143273582443PhrSn:example.org',
              'room_id': '!5345234235:example.com',
              'sender': '@example:example.org',
              'origin_server_ts': 1432735824653,
              'unsigned': {'age': 1234},
              'state_key': '',
            },
          ],
        },
        'prev_batch': 't_1234b',
      },
    },
  },
};