Unlock instant, AI-driven research and patent intelligence for your innovation.

A method, device and electronic equipment for counting the number of unread messages

A technology for unread messages and messages, which is applied in the field of data processing and can solve the problems of low statistical efficiency and large amount of calculation in the statistical process.

Active Publication Date: 2022-04-22
BEIJING KINGSOFT INTERNET SECURITY SOFTWARE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In some scenarios, there are category differences among messages or commodities, that is to say, each message or commodity belongs to a different category. For example, in a game mall, there may be more than 10,000 commodities. The above 1 More than 10,000 commodities belong to several different categories (for example, commodities include: dresses, shirts, canvas shoes, Yitian swords, dragon swords, mother-child swords, etc., commodity categories include clothes, weapons, etc., among which are clothes Commodities in the category include dresses, shirts, canvas shoes, etc., and commodities in the category of weapons include Yitian Sword, Dragon Saber, Zimu Sword, etc.), when it is necessary to count the number of unread messages (commodities) according to different categories, In the above method, it is necessary to traverse the state variables of more than 10,000 commodities, the statistical process requires a large amount of calculation, and the statistical efficiency is low. Furthermore, in scenarios where frequent statistics of the number of unread messages are required, such as in games, the above method The problem of low statistical efficiency is exacerbated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method, device and electronic equipment for counting the number of unread messages
  • A method, device and electronic equipment for counting the number of unread messages
  • A method, device and electronic equipment for counting the number of unread messages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following will be combined with the accompanying drawings in the embodiments of the present invention, the technical solution in the embodiments of the present invention will be described clearly and completely, it is clear that the embodiments described are only a part of the embodiment of the present invention, not all embodiments. Based on embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative work, are within the scope of protection of the present invention.

[0043] In order to improve the efficiency of the unread message number statistics, embodiments of the present invention provides a statistical method, apparatus and electronic device for the number of unread messages.

[0044] Unread messages in an embodiment of the present invention may be any form of information that the user has not viewed or read, for example, may be news information, chat information, or virtual goods in a game ma...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a method, device, and electronic device for counting the number of unread messages, which determine the target message category object corresponding to the target message category to be counted; in the target storage area corresponding to the target message category object, traverse each The status variable in the message object determines the number of messages whose message status is unread, as the number of unread messages in the target message category; wherein, each message category object corresponds to a storage area for storing messages belonging to the message category The message object corresponding to the message; each message corresponds to a message object; the message object includes a state variable indicating whether the state of the message is unread. In the embodiment of the present invention, the number of unread messages in the message category can be obtained by traversing the message objects corresponding to the messages belonging to the message category in the storage area corresponding to the message category. The efficiency of message counting.

Description

Technical field [0001] The present invention relates to the field of data processing technology, in particular to an unread message quantity statistical method, apparatus and electronic device. Background [0002] NotificationBadge is generally located in the upper right corner of the application APP icon or the mall icon in the game, etc., and its common manifestation is: a red dot, which displays specific data to indicate the number of unread messages or the number of goods that the user has not viewed in the APP or mall. [0003] At present, the method of counting the number of unread messages is: in advance in the data structure of the message or commodity, increase the status variable used to characterize whether the message or commodity is an unread state, and when it is necessary to count the total number of unread messages, iterate over the status variables in the data structure of each message or commodity to obtain the total number of unread messages. [0004] In some ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/451
CPCG06F3/04817G06F9/451
Inventor 王欢
Owner BEIJING KINGSOFT INTERNET SECURITY SOFTWARE CO LTD