LCOV - code coverage report
Current view: top level - lib/matrix_api_lite/model - event_types.dart (source / functions) Hit Total Coverage
Test: merged.info Lines: 1 1 100.0 %
Date: 2024-09-27 11:38:01 Functions: 0 0 -

          Line data    Source code
       1             : // ignore_for_file: constant_identifier_names
       2             : 
       3             : /* MIT License
       4             : *
       5             : * Copyright (C) 2019, 2020, 2021 Famedly GmbH
       6             : *
       7             : * Permission is hereby granted, free of charge, to any person obtaining a copy
       8             : * of this software and associated documentation files (the "Software"), to deal
       9             : * in the Software without restriction, including without limitation the rights
      10             : * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      11             : * copies of the Software, and to permit persons to whom the Software is
      12             : * furnished to do so, subject to the following conditions:
      13             : *
      14             : * The above copyright notice and this permission notice shall be included in all
      15             : * copies or substantial portions of the Software.
      16             : *
      17             : * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      18             : * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      19             : * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      20             : * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      21             : * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      22             : * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      23             : * SOFTWARE.
      24             : */
      25             : 
      26             : abstract class EventTypes {
      27             :   // Room timeline and state event types
      28             :   static const String Message = 'm.room.message';
      29             :   static const String Sticker = 'm.sticker';
      30             :   static const String Reaction = 'm.reaction';
      31             :   static const String Redaction = 'm.room.redaction';
      32             :   static const String RoomAliases = 'm.room.aliases';
      33             :   static const String RoomCanonicalAlias = 'm.room.canonical_alias';
      34             :   static const String RoomCreate = 'm.room.create';
      35             :   static const String RoomJoinRules = 'm.room.join_rules';
      36             :   static const String RoomMember = 'm.room.member';
      37             :   static const String RoomPowerLevels = 'm.room.power_levels';
      38             :   static const String RoomName = 'm.room.name';
      39             :   static const String RoomPinnedEvents = 'm.room.pinned_events';
      40             :   static const String RoomTopic = 'm.room.topic';
      41             :   static const String RoomAvatar = 'm.room.avatar';
      42             :   static const String RoomTombstone = 'm.room.tombstone';
      43             :   static const String GuestAccess = 'm.room.guest_access';
      44             :   static const String HistoryVisibility = 'm.room.history_visibility';
      45             :   static const String Encryption = 'm.room.encryption';
      46             :   static const String Encrypted = 'm.room.encrypted';
      47             :   static const String CallInvite = 'm.call.invite';
      48             :   static const String CallAnswer = 'm.call.answer';
      49             :   static const String CallCandidates = 'm.call.candidates';
      50             :   static const String CallHangup = 'm.call.hangup';
      51             :   static const String CallSelectAnswer = 'm.call.select_answer';
      52             :   static const String CallReject = 'm.call.reject';
      53             :   static const String CallNegotiate = 'm.call.negotiate';
      54             :   static const String CallSDPStreamMetadataChanged =
      55             :       'm.call.sdp_stream_metadata_changed';
      56             :   static const String CallSDPStreamMetadataChangedPrefix =
      57             :       'org.matrix.call.sdp_stream_metadata_changed';
      58             :   static const String CallReplaces = 'm.call.replaces';
      59             :   static const String CallAssertedIdentity = 'm.call.asserted_identity';
      60             :   static const String CallAssertedIdentityPrefix =
      61             :       'org.matrix.call.asserted_identity';
      62             :   static const String Unknown = 'm.unknown';
      63             : 
      64             :   // To device event types
      65             :   static const String RoomKey = 'm.room_key';
      66             :   static const String ForwardedRoomKey = 'm.forwarded_room_key';
      67             :   static const String RoomKeyRequest = 'm.room_key_request';
      68             :   static const String KeyVerificationRequest = 'm.key.verification.request';
      69             :   static const String KeyVerificationStart = 'm.key.verification.start';
      70             :   static const String KeyVerificationReady = 'm.key.verification.ready';
      71             :   static const String KeyVerificationDone = 'm.key.verification.done';
      72             :   static const String KeyVerificationCancel = 'm.key.verification.cancel';
      73             :   static const String KeyVerificationAccept = 'm.key.verification.accept';
      74             :   static const String SecretRequest = 'm.secret.request';
      75             :   static const String SecretSend = 'm.secret.send';
      76             :   static const String Dummy = 'm.dummy';
      77             : 
      78             :   // QR
      79             :   static const String QRShow = 'm.qr_code.show.v1';
      80             :   static const String QRScan = 'm.qr_code.scan.v1';
      81             :   static const String Reciprocate = 'm.reciprocate.v1';
      82             :   static const String Sas = 'm.sas.v1';
      83             : 
      84             :   // Account data event types
      85             :   static const String CrossSigningSelfSigning = 'm.cross_signing.self_signing';
      86             :   static const String CrossSigningUserSigning = 'm.cross_signing.user_signing';
      87             :   static const String CrossSigningMasterKey = 'm.cross_signing.master';
      88             :   static const String MegolmBackup = 'm.megolm_backup.v1';
      89             :   static const String SecretStorageDefaultKey = 'm.secret_storage.default_key';
      90             :   static const String PushRules = 'm.push_rules';
      91             : 
      92          14 :   static String secretStorageKey(String keyId) => 'm.secret_storage.key.$keyId';
      93             : 
      94             :   // Spaces
      95             :   static const String SpaceParent = 'm.space.parent';
      96             :   static const String SpaceChild = 'm.space.child';
      97             : 
      98             :   // MatrixRTC
      99             :   static const String GroupCallMember = 'com.famedly.call.member';
     100             :   static const String GroupCallMemberEncryptionKeys =
     101             :       '$GroupCallMember.encryption_keys';
     102             :   static const String GroupCallMemberEncryptionKeysRequest =
     103             :       '$GroupCallMember.encryption_keys_request';
     104             :   static const String GroupCallMemberCandidates = '$GroupCallMember.candidates';
     105             :   static const String GroupCallMemberInvite = '$GroupCallMember.invite';
     106             :   static const String GroupCallMemberAnswer = '$GroupCallMember.answer';
     107             :   static const String GroupCallMemberHangup = '$GroupCallMember.hangup';
     108             :   static const String GroupCallMemberSelectAnswer =
     109             :       '$GroupCallMember.select_answer';
     110             :   static const String GroupCallMemberReject = '$GroupCallMember.reject';
     111             :   static const String GroupCallMemberNegotiate = '$GroupCallMember.negotiate';
     112             :   static const String GroupCallMemberSDPStreamMetadataChanged =
     113             :       '$GroupCallMember.sdp_stream_metadata_changed';
     114             :   static const String GroupCallMemberReplaces = '$GroupCallMember.replaces';
     115             :   static const String GroupCallMemberAssertedIdentity =
     116             :       '$GroupCallMember.asserted_identity';
     117             : }

Generated by: LCOV version 1.14