1/** 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15export default { 16 // Name of the field corresponding to the session list 17 sessionField: { 18 id: "id", //session Table id integer 19 time: "time", // Last SMS message time integer 20 telephone: "telephone", //Phone number TEXT 21 content: "content", // SMS message content TEXT 22 contactsNum: "contacts_num", // Number of Contacts integer 23 smsType: "sms_type", //Sms Type 0-Common,1-Notice integer 24 unreadCount: "unread_count", // Number of unread SMs integer 25 sendStatus: "sending_status", // Sending success status 0:Success ,1 :Fail , 2 : Sending... integer 26 hasDraft: "has_draft", //Whether there is a draft 0: no, 1:have integer 27 hasLock: "has_lock", // Whether there is a lock 0: no, 1:have integer 28 messageCount: "message_count", //Total number of messages integer 29 hasMms: "has_mms", //Whether there is a new message 0: no, 1:have integer 30 hasAttachment: "has_attachment" //Whether there are attachments 0: no, 1:have integer 31 }, 32 // Name of the field corresponding to the SMS message details. 33 messageInfo: { 34 msgId: "msg_id", //sms_mms_info Table id integer 35 slotId: "slot_id", //slot_id integer 36 receiverNumber: "receiver_number", //Recipient number TEXT 37 senderNumber: "sender_number", //Sender number TEXT 38 startTime: "start_time", //Start Time TEXT 39 endTime: "end_time", //End Time TEXT 40 msgType: "msg_type", //Message Type 0 Subject、1 Pictures、2 Video、3 Audio、4 Text、5 business card integer 41 smsType: "sms_type", //SM Type 0-Common,1-Notice integer 42 msgTitle: "msg_title", //Message Title TEXT 43 msgContent: "msg_content", //Message content TEXT 44 msgState: "msg_state", //Message Status 0:Success ,1 :fail , 2 : Sending... integer 45 operatorServiceNumber: "operator_service_number", //Operator service number TEXT 46 msgCode: "msg_code", //Message Code integer 47 isLock: "is_lock", //Locked 0-No,1-Yes integer 48 isRead: "is_read", // Read or Not 49 isCollect: "is_collect", //Favorites 0-Not favorited,1-Favorites integer 50 sessionType: "session_type", //Session Type 0 - Common 1 - broadcast 2 - Group Sending integer 51 retryNumber: "retry_number", //Retry Times integer 52 isSubsection: "is_subsection", //Branch 0 - NO 1 - Yes integer 53 sessionId: "session_id", //Session ID integer 54 groupId: "group_id", //Group ID integer 55 isSender: "is_sender", //Sender or Not 0 - Recipient 1 - Sender integer 56 isSendReport: "is_send_report" //Whether to send a report 0 - No 1 - Yes integer 57 }, 58 contactColumns: { 59 id: "id", // raw_contact_table id 60 displayName: "display_name", // Display Name 61 contactedCount: "contacted_count", // Number of Contacts 62 lastestContactedTime: "lastest_contacted_time", // Last Contact Time 63 }, 64 contactDataColumns: { 65 id: "id", // raw_contact_table id 66 contactId: "contact_id", // raw_contact_table id 67 detailInfo: "detail_info", 68 typeId: "type_id", // raw_contact_table id 69 contentType: "content_type", // raw_contact_table id 70 displayName: "display_name", // Display Name 71 hasDelete: "is_deleted" // hasDelete 72 }, 73 searchContactView: { 74 searchName: "search_name", 75 contactId: "contact_id", 76 detailInfo: "detail_info", 77 contentType: "content_type", 78 displayName: "display_name", // Display Name 79 hasDelete: "is_deleted" // hasDelete 80 }, 81 // Saving MMS data 82 mmsPart: { 83 msgId: "msg_id", //mms_part table id integer 84 groupId: "group_id", // Group ID integer 85 type: "type", // 0: theme; 1: picture; 2: video; 3: audio; 4: text; 5: business card integer 86 locationPath: "location_path", //Local storage path TEXT 87 content: "content", //MMS text content TEXT 88 partSize: "part_size", //MMS Size TEXT 89 partIndex: "part_index", //MMS data subscript integer 90 recordingTime: "recording_time", //Audio/Video Recording Time TEXT 91 encode: "encode", //Encoding or not 0: no encoding/encryption; 1: encoding/encryption integer 92 state: "state" //Sending success status 0: success; 1: failure; 2: sending... integer 93 }, 94 // Saving SMS data in partitions 95 smsSubsection: { 96 smsSubsectionId: "sms_subsection_id", //sms_subsection table id integer 97 receiverNumber: "receiver_number", //Recipient number TEXT 98 senderNumber: "sender_number", //Sender number TEXT 99 isSender: "is_sender", //Sender number 0 - Sender 1 - Recipient integer 100 startTime: "start_time", //Start Time TEXT 101 endTime: "end_time", //End Time TEXT 102 rawPdu: "raw_pdu", //PDU string of the SMS message TEXT 103 format: "format", //Formatted data integer 104 destPort: "dest_port", //Destination Port integer 105 subsectionIndex: "subsection_index", //Section Index integer 106 size: "size" //size integer 107 }, 108 // mms Protocol data saving 109 mmsProtocol: { 110 msgId: "msg_id", //mms_Protocol table id integer 111 bcc: "bcc", //bcc TEXT 112 cc: "cc", //cc TEXT 113 content_location: "content_location", //content_location TEXT 114 date: "date", //date TEXT 115 deliveryReport: "delivery_report", //deliveryReport integer 116 deliveryTime: "delivery_time", //deliveryTime TEXT 117 expiry: "expiry", //expiry integer 118 type: "type", //type integer 119 serialNumber: "serial_number", //serialNumber TEXT 120 category: "category", //category TEXT 121 version: "version", //version integer 122 size: "size", //size integer 123 priority: "priority", //priority integer 124 readReply: "read_reply", //readReply integer 125 reportAllowed: "report_allowed", //reportAllowed integer 126 responseStatus: "response_status", //responseStatus integer 127 responseText: "response_text", //responseText TEXT 128 senderVisibility: "sender_visibility" //senderVisibility integer 129 } 130}