Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
A session message processing method and apparatus according to an embodiment of the present disclosure are described below with reference to the drawings.
Fig. 1 is a schematic flowchart of a session message processing method according to an embodiment of the present disclosure.
As shown in fig. 1, the session message processing method includes:
step 101, when the first session in the first message area is in a marked state, detecting whether an operation instruction acquired in an associated area corresponding to the first session meets a preset condition.
The client is an instant messaging application, and the first message area contains sessions to which session messages unprocessed by the user belong.
The user operates the first session in the first message area, for example, the first session is selected through a clicking operation, or the first session is touched by a finger, or a mouse is hovered at the first session, so that the first session is in a marked state, and when the client determines that the first session is in the marked state, the client detects whether an operation instruction acquired in an associated area corresponding to the first session area meets a preset condition. Wherein the association area may be a display area of the first conversation in the first message area.
For example, the operation acquired in the association area corresponding to the first session is a sliding operation, and whether the direction of the sliding operation is a preset direction is detected, where the preset direction may be leftward or rightward. As shown in fig. 2, the first message area is "inbox", and an operation of sliding to the right may be performed at a position corresponding to "conversation 1" in the message display list of "inbox".
Or, detecting whether a target object corresponding to the selection operation instruction acquired in the association area is a preset operation object, where the preset operation object may be a preset processing option, such as a "complete" processing option, to mark that the session has completed processing.
For example, the client is installed in the mobile terminal, the user performs a long-press operation at the display position of the session, the client pops up a "completion" processing option, detects whether an object corresponding to the operation instruction acquired in the associated area of the session is the "completion" processing option, and when the user triggers the "completion" processing option, detects that an object corresponding to the trigger instruction acquired in the associated area of the session is the "completion" processing option.
For another example, the client is installed on the PC device, the user clicks a right mouse button at the session position, the client may pop up a "completion" processing option, and the user clicks the processing option, and it can be detected that an object corresponding to the click operation instruction obtained in the associated area of the session is the "completion" processing option.
Step 102, if the preset condition is satisfied, the first session is moved to the second message area.
And when detecting that the operation acquired in the associated area corresponding to the first session meets a preset condition, moving the first session to the second message area. Wherein the display attribute of the first message display area is different from the display attribute of the second message display area.
For example, the first message area includes sessions to which unprocessed session messages belong and the second message area includes sessions to which processed session messages belong, or the first message area includes sessions to which processed session messages belong and the second message area includes sessions to which unprocessed session messages belong.
In this embodiment, if all the sessions included in the first message area are sessions to which unprocessed session messages belong, and all the sessions included in the second message area are already processed, after the user finishes reading the content of the first session in the first session message area, the first session is marked through an operation. After the first session is marked, when the client detects that the operation instruction acquired in the associated area corresponding to the first session meets the preset condition, the first session in the first message area can be moved to the second message area, so that only the session to be processed is left in the first message area, and the efficiency of processing the unprocessed message is greatly improved.
As shown in fig. 2, the user slides to the right at the display position of "session 1" in the "inbox", the "done" button is displayed on the left side of "session 1", the "done" button is clicked, and the client moves "session 1" to "done".
For another example, the user selects the session in the "inbox" and clicks the right mouse button, the "done" processing option appears, the "done" processing option is selected, and the client moves the session to the "done" message area.
In this embodiment, the user may also move the session to which the processed session message belongs in the second message area to the first message area by operation. As shown in FIG. 3, the second message area is "completed", the user slides the "conversation A" in the "completed" to the right, a "move-back inbox" button appears, and if an operation that the user clicks the "move-back inbox" button is detected, the client moves the "conversation A" to the "inbox".
Based on this, the session message processing method of the embodiment of the disclosure can realize that the session is circulated between the first message area and the second message area, thereby improving the processing efficiency of the user on the session.
In one embodiment of the present disclosure, after the client moves the first session to the second message area, the current focus may be moved to the second session, wherein the second session is a session adjacent to and behind the first session in the first message area. Wherein, the focus can be understood as the focus of operation, such as the position indicated by the mouse.
If the first message area contains sessions to which unprocessed session messages belong and the second message area contains sessions to which processed session messages belong, after the first session is moved to the second message area, the current focus is moved to a second session adjacent to the first session after the first session, so that the focus is on the second session to be processed, and the efficiency of processing the unprocessed session messages by the user can be improved.
As shown in fig. 2, after the client moves "session 1" in the "inbox" to "completed", the current focus is moved to "session 2" to be processed.
In an embodiment of the present disclosure, the first message area is an unprocessed message area, and the second message area is a processed message area, that is, there is an unprocessed session message in a session included in the first message area, the message in the session in the second message area is processed, and the client may return to the first message area if the obtained session message belongs to the processed message area. Fig. 4 is a flowchart illustrating another session message processing method according to an embodiment of the present disclosure.
As shown in fig. 4, the session message processing method further includes:
in step 201, when acquiring a new session message, the client determines whether a session to which the new session message belongs is located in a processed message area.
When the client acquires a new session message, whether the session to which the new session message belongs is located in the processed message area is judged.
Specifically, it is determined whether an identifier in an identifier corresponding to a session in the processed message area is consistent with a user identifier corresponding to a client that sent a new session message, if so, it is indicated that the session to which the new session message belongs is located in the processed message area, and if not, it is determined that the new session message belongs to a new session, and a new session may be created in the first message area according to the user identifier corresponding to the new session.
For example, it may be determined that a session to which the new session message belongs exists in the processed message region by determining whether the name of the sender of the new session message matches the name of the session in the processed message region.
Step 202, if the session to which the new session message belongs is located in the processed message area, moving the session to which the new session message belongs to the unprocessed message area, and adding the new session message to the session.
In this embodiment, if the session to which the new session message belongs is located in the processed message area, the session may be moved to the unprocessed message area, and the new session message is added to the session, for example, the new session message is displayed at the top of the session, so that the session with the new session message in the processed message area returns to the unprocessed message area again, and the session is circulated between the unprocessed message area and the processed message area.
In practical application, when the session in the processed message area is moved to the unprocessed message area, the session may be added to the session list in the unprocessed message area according to the chronological order or the reverse order, so that the user may process the session in the unprocessed message area in order.
In an embodiment of the present disclosure, the first message area may also be a processed message area, and the second message area is an unprocessed message area, that is, the sessions included in the first message area may also all be sessions to which processed session messages belong, that is, all included sessions are unprocessed sessions, and the sessions included in the second message area may all be sessions to which unprocessed session messages belong.
When the first session in the processed message area is in the marked state, if an operation instruction meeting a preset condition is acquired in the associated area corresponding to the first session, the first session in the processed message area can be moved to the unprocessed message area to become an unprocessed session, and the first session is placed at the top of the session list.
As shown in FIG. 3, the processed message area is "completed", the user slides the "conversation A" in the "completed" to the right, a "move-back inbox" button appears, and if an operation that the user clicks the "move-back inbox" button is detected, the client moves the "conversation A" to the unprocessed message area "inbox".
In order to facilitate the user to quickly process the unprocessed conversation message, in the embodiment, after the first conversation in the first message area is in the marked state, the content of the first conversation can be displayed in the message display area. For example, when the user clicks on a first conversation in a first message area, the first conversation is in a marked state, the client displays the content of the first conversation in the message display area, and the user determines whether to move the conversation to a second message area according to the content of the first conversation.
The message display area may belong to the same interface as the first message area and the second message area, or may not belong to the same interface. For example, the first message area and the second message area are located on the left side of the interface, the message display area is located on the right side of the interface, and when a conversation in the first message area is clicked, the message display area on the right side of the interface can display the content of the conversation. As another example, the list of the first message region includes a plurality of conversations, and an identification of each conversation may be displayed, along with the full contents of the most recent conversation message.
In practical application, the content of the session may not be displayed, and at this time, the user determines whether to move the session to the second message area according to the identifier of the session displayed in the first message area, for example, the user joins some groups unrelated to the working service, and then the user can determine to move the group session to the processed message area directly according to the group name.
In order to implement the foregoing embodiment, the embodiment of the present disclosure further provides a session message processing apparatus. Fig. 5 is a schematic structural diagram of a session message processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the session message processing apparatus includes: a detection module 310, a first movement module 320.
The detecting module 310 is configured to detect whether an operation instruction acquired in an associated area corresponding to a first session meets a preset condition when the first session in the first message area is in a marked state;
the first moving module 320 is configured to move the first session to a second message area when the obtained operation instruction meets a preset condition, where a display attribute of the second message area is different from a display attribute of the first message area.
In a possible implementation manner of the embodiment of the present disclosure, the detecting module 310 is specifically configured to:
detecting whether the direction of the sliding operation acquired in the associated area meets a preset condition;
or,
and detecting whether a target object corresponding to the selection operation instruction acquired in the associated area is a preset operation object or not.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus further includes:
and the second moving module is used for moving the current focus to a second conversation which is positioned in the first message area and is behind the first conversation and adjacent to the first conversation.
In a possible implementation manner of the embodiment of the present disclosure, the first message area is an unprocessed message area, and the second message area is a processed message area; the device also comprises:
the judging module is used for judging whether the session to which the new session message belongs is located in the processed message area when the client acquires the new session message;
and the third moving module is used for moving the session to which the new session message belongs to the unprocessed message area and adding the new session message to the session to which the new session message belongs when the session to which the new session message belongs is located in the processed message area.
In a possible implementation manner of the embodiment of the present disclosure, the first message area is a processed message area, and the second message area is an unprocessed message area;
the first moving module 320 is further configured to move the first session to the top of the session list in the unprocessed message area.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus further includes:
and the display module is used for displaying the content of the first conversation in the message display area.
It should be noted that the foregoing explanation of the embodiment of the session message processing method is also applicable to the session message processing apparatus of this embodiment, and therefore is not described herein again.
According to the conversation message processing device in the embodiment of the disclosure, when the first conversation in the first message area is in the marked state, whether the operation instruction acquired in the associated area corresponding to the first conversation meets the preset condition is detected, if the preset condition is met, the first conversation is moved to the second message area, and the display attribute of the second message area is different from the display attribute of the first message area. Therefore, the conversation in the first message area can be moved to the second message area with the display attribute different from that of the first message area through the operation meeting the preset condition, so that the number of the conversation in the first message area is reduced, and the processing efficiency of the user on the unprocessed message is improved.
The embodiment of the present disclosure also provides an electronic device, which includes a processor and a memory;
wherein, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the conversation message processing method as described in the above embodiments.
Referring now to FIG. 6, a block diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 6 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
In order to implement the above embodiments, the present disclosure provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the conversation message processing method as described in the above embodiments.
Fig. 7 is a schematic diagram of a computer-readable storage medium of an embodiment of the disclosure. As shown in fig. 7, a computer-readable storage medium 900 according to an embodiment of the present disclosure has computer-readable instructions 901 stored thereon. When the computer readable instructions 901 are executed by a processor, all or part of the steps of the session message processing method of the embodiments of the present disclosure are executed.
In the description of the present specification, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure, and that changes, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present disclosure.