archiveSyncResponse property

Map<String, Object?> archiveSyncResponse
getter/setter pair

Implementation

static Map<String, Object?> archiveSyncResponse = {
  'next_batch': Random().nextDouble().toString(),
  'presence': {'events': <Map<String, Object?>>[]},
  'account_data': {'events': <Map<String, Object?>>[]},
  'to_device': {'events': <Map<String, Object?>>[]},
  'rooms': {
    'join': <String, Object?>{},
    'invite': <String, Object?>{},
    'leave': {
      '!5345234234:example.com': {
        'timeline': {
          'events': [
            {
              'content': {
                'body': 'This is an example text message',
                'msgtype': 'm.text',
                'format': 'org.sdn.custom.html',
                'formatted_body': '<b>This is an example text message</b>'
              },
              'type': 'm.room.message',
              'event_id': '143273582443PhrSn:example.org',
              'room_id': '!5345234234:example.com',
              'sender': '@example:example.org',
              'origin_server_ts': 1432735824653,
              'unsigned': {'age': 1234}
            },
          ]
        },
        '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': <Map<String, Object?>>[]},
        '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': ''
            },
          ]
        }
      },
    },
  }
};