CN110138652A - A kind of session updates method, apparatus and client device - Google Patents

A kind of session updates method, apparatus and client device Download PDF

Info

Publication number
CN110138652A
CN110138652A CN201910423181.1A CN201910423181A CN110138652A CN 110138652 A CN110138652 A CN 110138652A CN 201910423181 A CN201910423181 A CN 201910423181A CN 110138652 A CN110138652 A CN 110138652A
Authority
CN
China
Prior art keywords
session
level
entry
list
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910423181.1A
Other languages
Chinese (zh)
Other versions
CN110138652B (en
Inventor
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910423181.1A priority Critical patent/CN110138652B/en
Publication of CN110138652A publication Critical patent/CN110138652A/en
Application granted granted Critical
Publication of CN110138652B publication Critical patent/CN110138652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is about a kind of session updates method, apparatus and client device.In this method: obtaining the session data of each session to be updated, the session data of each session includes: session identification, class indication and conversation message;The conversation database of client is updated according to session data obtained;Session entry in conversation database is grouped according to class indication, obtains one group of first session entry and at least one set of second session entry;According to the second session entry of each first session entry and each group, session list is updated;Wherein, a level-one session in the unique respective session list of every group of second session entry, a level-one session in each unique respective session list of first session entry.The disclosure do not change client by polymerize session in the way of conversate displaying under the premise of, the interaction times between client and server can be reduced, to reduce time-consuming.

Description

A kind of session updates method, apparatus and client device
Technical field
This disclosure relates to instant messaging technical field more particularly to a kind of session updates method, apparatus and client device.
Background technique
In the client of instant communication class, the type and quantity of session are more, can not be primary to user in the client Property all show.After the session of same type is polymerize, will polymerization session and other non-polymeric sessions be presented along to User can solve this problem.Wherein, the polymerization session that user is seen in the client is similar to a file.
For the client for the displaying that conversated in the way of polymerization session, in the related technology, the meeting of client Talking about update method includes: after server issues session data to client, and client is based on the session data received, with local Merged session, complete the session updates of client.In updated session, the conversation message in non-polymeric session is by more Newly, polymerizeing the conversation message in session will not then be updated.When user needs to check the sub- session in a certain polymerization session, Client requests the conversation message of each sub- session in the polymerization session to server again, and based on the conversation message requested, more Each sub- session in the new polymerization session.
As it can be seen that need client to be interacted for several times with server in existing session updates method, it can be by client All session updates complete, the required time is longer.Therefore, do not change client by polymerization session in the way of understood Under the premise of words are shown, the interaction times between client and server how are reduced, to reduce time-consuming, is one and urgently solves Certainly the problem of.
Summary of the invention
The disclosure provides a kind of session updates method, apparatus and client device, not change client using polymerization The mode of session conversates under the premise of displaying, at least solves in the related technology, how to reduce between client and server Interaction times, to reduce time-consuming problem.The technical solution of the disclosure is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of session updates method is provided, this method is applied to client, packet It includes:
The session data of each session to be updated is obtained, the session data of each session includes: session identification, classification Mark and conversation message, the class indication is for characterizing: session is non-polymeric session or session to be polymerized, and is worked as Class categories belonging to when session is session to be polymerized;
According to session data obtained, the conversation database of the client local is updated, in the conversation database The content of each session entry be the session data for having generated session;
Each session entry in the conversation database is grouped according to class indication, obtains one group of first session Entry and at least one set of second session entry;Wherein, it is non-that the class indication of first session entry, which is for characterizing session, The mark of the session of polymerization, the class indication of second session entry are for characterizing the mark that session is session to be polymerized Know, and the session data of any group of the second session entry includes the same class indication;
According to the second session entry of each first session entry and each group, updates in the client and be used for session exhibition The session list shown;Wherein, every group of second session entry uniquely corresponds to a level-one session in the session list, Mei Ge One session entry uniquely corresponds to a level-one session in the session list.
Optionally, described according to session data obtained, update the conversation database of the client local, comprising:
For obtained each session data, in the conversation database for judging the client local, if existing has The session entry of session identification included by the session data, if it does not, creating a session item in the conversation database Mesh, the newly-built session entry have session identification and class indication included by the session data;
Conversation message included by the session data is added to the session for each session data obtained In database in the corresponding session entry of the session data, the corresponding session entry of the session data is with the session data institute Session entry including session identification.
Optionally, the session list includes level-one session list and second level session list, is being not detected about described When the displaying opportunity of second level session list, the attribute of the second level session list is hiding;
It is described according to the second session entry of each first session entry and each group, update in the client for meeting Talk about the session list shown, comprising:
For each group of the second session entry, every one second session entry being utilized respectively in second session entry of group is raw At a second level session, and according to each second level session of generation, a second level session list is generated;For the second level session list One is generated for the polymerization session as level-one session, and polymerization session is associated with the second level session list;
For every one first session entry, it is corresponding for as the to be utilized of level-one session to generate first session entry Session;
Respectively using each polymerization session as a level-one session and respectively using each session to be utilized as a level-one Session generates the level-one session list.
Optionally, described to be made respectively using each polymerization session as a level-one session and respectively with each session to be utilized For a level-one session, the level-one session list is generated, comprising:
For each polymerization session, determine in each second level session of second level session list associated by the polymerization session, most The generation time of a new conversation message, using identified generation time as the active time of the polymerization session;
For each session to be utilized, a session newest in the first session entry corresponding to the session to be utilized is disappeared The generation time of breath, the active time as the session to be utilized;
With the active time of the active time of each polymerization session and each session to be utilized, to each polymerization session and respectively A session to be utilized is ranked up, and obtains the first collating sequence, using first collating sequence as the level-one session list.
Optionally, each second level session according to generation, generates a second level session list, comprising:
For each second level session generated, determine in the second session entry for generating the second level session, newest one The identified generation time is determined as the active time of the second level session by the generation time of conversation message;
Each second level session generated is ranked up according to active time, obtains the second collating sequence, and will be described Second collating sequence is as a second level session list.
According to the second aspect of an embodiment of the present disclosure, a kind of session updates device is provided, which is applied to client, should Device includes:
Module is obtained, is configured as obtaining the session data of each session to be updated, the session data of each session is equal Include: session identification, class indication and conversation message, the class indication is used to characterize: session be non-polymeric session or Session to be polymerized, and when session be session to be polymerized when belonging to class categories;
First update module is configured as updating the session number of the client local according to session data obtained According to library, the content of each session entry in the conversation database is the session data for having generated session;
Grouping module is configured as dividing each session entry in the conversation database according to class indication Group obtains one group of first session entry and at least one set of second session entry;Wherein, the class indication of first session entry For for characterizing the mark that session is non-polymeric session, the class indication of second session entry is to be for characterizing session The mark of session to be polymerized, and the session data of any group of the second session entry includes the same class indication;
Second update module is configured as updating institute according to the second session entry of each first session entry and each group State the session list shown for session in client;Wherein, every group of second session entry uniquely corresponds to the session list In a level-one session, each first session entry uniquely corresponds to a level-one session in the session list.
Optionally, first update module, is specifically configured to:
For obtained each session data, in the conversation database for judging the client local, if existing has The session entry of session identification included by the session data, if it does not, creating a session item in the conversation database Mesh, the newly-built session entry have session identification and class indication included by the session data;
Conversation message included by the session data is added to the session for each session data obtained In database in the corresponding session entry of the session data, the corresponding session entry of the session data is with the session data institute Session entry including session identification.
Optionally, the session list includes level-one session list and second level session list, is being not detected about described When the displaying opportunity of second level session list, the attribute of the second level session list is hiding;
Second update module, comprising: polymerization session generates submodule, session to be utilized generates submodule and session List generates submodule;
The polymerization session generates submodule, is configured as each group of the second session entry, is utilized respectively the group the Every one second session entry in two session entries generates a second level session, and according to each second level session of generation, generates One second level session list;One is generated for the polymerization session as level-one session for the second level session list, and will polymerization Session is associated with the second level session list;
The session to be utilized generates submodule, is configured as generating first session for every one first session entry The corresponding session to be utilized for as level-one session of entry;
The session list generates submodule, is configured to using each polymerization session as a level-one session and divides Not using each session to be utilized as a level-one session, the level-one session list is generated.
Optionally, the session list generates submodule, comprising: first determines that subelement, second determine subelement and the One sorting subunit;
Described first determines subelement, is configured as determining second level associated by the polymerization session for each polymerization session In each second level session of session list, the generation time of a newest conversation message, using identified generation time as The active time of the polymerization session;
Described second determines subelement, is configured as each session to be utilized, by corresponding to the session to be utilized the The generation time of a newest conversation message, the active time as the session to be utilized in one session entry;
First sorting subunit is configured as with the active time of each polymerization session and each session to be utilized Active time is ranked up each polymerization session and each session to be utilized, obtains the first collating sequence, by the first row Sequence sequence is as the level-one session list.
Optionally, the polymerization session generates submodule, comprising: third determines subelement and the second sorting subunit;
The third determines subelement, is configured as determining for each second level session generated and generating the second level meeting In second session entry of words, the identified generation time is determined as the second level by the generation time of a newest conversation message The active time of session;
Second sorting subunit is configured as arranging each second level session generated according to active time Sequence obtains the second collating sequence, and using second collating sequence as a second level session list.
According to the third aspect of an embodiment of the present disclosure, a kind of client device is provided, including processor, communication interface, is deposited Reservoir and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described kind of session updates method.
According to a fourth aspect of embodiments of the present disclosure, a kind of storage medium is provided, when the instruction in the storage medium by When the processor of client device executes, so that the client device is able to carry out any of the above-described kind of session updates method.
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product is provided, when the computer program produces When product are executed by the processor of client device, so that electronic equipment is able to carry out any of the above-described kind of session updates method.
The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that
The session data for obtaining each session to be updated, the meeting according to session data obtained, to client local Words database is updated.Due to the session data that session data obtained is client each session to be updated, therefore can To be disposably updated to sessions to be updated all in client, even the second level under the level-one session that polymerization is formed Session can also update together.Also, in the disclosure, characterize whether session needs to polymerize using class indication, and when meeting Class categories belonging to when words are session to be polymerized, so that can be according to class indication, from the meeting in conversation database It talks about in entry, determines the second session entry of each first session entry and each group, wherein each first session entry, to application A level-one session in the session list that session is shown;Every group of second session entry corresponds to one in the session list Level-one session.As it can be seen that the disclosure can not change client by polymerize session in the way of conversate displaying under the premise of, The interaction times between client and server are reduced, to reduce time-consuming.It should be understood that above general description is with after Text datail description be only it is exemplary and explanatory, do not limit the disclosure.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of flow chart of session updates method shown according to an exemplary embodiment.
Fig. 2 (a) is to be used for the level-one session list that session is shown in the client in session updates method shown in FIG. 1 Schematic diagram, Fig. 2 (b) is the signal of the second level session list under level-one session 3 shown in Fig. 2 (a) in level-one session list Figure.
Fig. 3 is a kind of block diagram of session updates device shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of client device shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.
In order to do not change client by polymerize session in the way of conversate displaying under the premise of, reduce client with Interaction times between server, to reduce time-consuming, embodiment of the disclosure provide a kind of session updates method, apparatus and Client device.
A kind of session updates method that embodiment of the disclosure provides can be applied to the client in electronic equipment.Specifically , which can be the terminal device for being equipped with client, and in a particular application, which can move electricity Words, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, or Personal digital assistant etc..
In embodiment of the disclosure, class indication is used to characterize the session in client for non-polymeric session or to poly- The session of conjunction, and when session be session to be polymerized when belonging to class categories.For any client, work as server Receive other clients to the client send conversation message when, server according to send the conversation message client mark The mark of knowledge or client user, determine the session identification and class indication of the affiliated session of the conversation message, and according to the session Message and identified session identification and class indication, generate the session data of the client.It is requested in user end to server When session data, session data generated is fed back into client, so that client is based on the received session data of institute to meeting Words are updated.In practical applications, client can time using from the last time to server queued session data as request Parameter, to session data caused by server request after such time.
Firstly, a kind of session updates method provided embodiment of the disclosure is described in detail.
Fig. 1 is a kind of flow chart of session updates method shown according to an exemplary embodiment, as shown in Figure 1, this public affairs A kind of session updates method that the embodiment opened provides can be applied in client, comprising the following steps:
S11: obtaining the session data of each session to be updated, the session data of each session include: session identification, Class indication and conversation message, the class indication is for characterizing: session is non-polymeric session or session to be polymerized, and Class categories belonging to when session is session to be polymerized.
Wherein, session identification is used to distinguish the user of client and the session of each communication object.Communication mentioned here Object may include: to have added personal good friend, stranger good friend and public platform, be not limited thereto certainly.It is understood that Stranger good friend and public platform are relatively low to the significance level of user, therefore the session and use of user and each stranger good friend The session of family and each public platform all can be to be polymerized session, and user and each add the session of individual good friend then can be with For non-polymeric session.It should be noted that the specific session of non-polymeric session and session to be polymerized herein shown Type is merely exemplary, should not constitute the restriction to the disclosure.
In practical applications, class indication may include a preset first identifier and at least one preset Two marks, wherein first identifier is different from any one second identifier.In this way, can use a preset first identifier, to mark Know non-polymeric session, and utilize preset one or more second identifiers, to identify session to be polymerized.It is marked in guarantee first Under the premise of knowledge is different with second identifier, the occurrence of first identifier and second identifier, the disclosure is without limitation.For example, Assuming that identifying non-polymeric session using number 0, session to be polymerized is identified using digital 1-9.In this way, class indication etc. It is non-polymeric session in 0 session, it is then session to be polymerized that class indication, which is equal to the session of any one of 1-9,.
In practical applications, the meeting for obtaining each session to be updated can be executed when meeting scheduled update opportunity The step of talking about data.Here scheduled update opportunity, there may be a variety of.Illustratively, under scheduled update opportunity may include State the one or more of opportunity:
Client according to the scheduled period execute session synchronization when, client creation new session when, client delete session When, when the operation of client executing session top set and client is when having newly-increased conversation message.
S12: according to session data obtained, updating the conversation database of client local, in the conversation database The content of each session entry is the session data for having generated session.
Here, according to session data obtained, the specific implementation for updating the conversation database of client local can With there are a variety of.Illustratively, in one implementation, according to session data obtained, the meeting of client local is updated Database is talked about, may include:
For obtained each session data, in the conversation database for judging client local, if exist with the meeting The session entry of session identification included by data is talked about, if it does not, a session entry is created in conversation database, it is newly-built The session entry has session identification and class indication included by the session data;
Conversation message included by the session data is added to session data for each session data obtained In library in the corresponding session entry of the session data, the corresponding session entry of the session data is with included by the session data The session entry of session identification.
It is understood that the content of each session entry is one and has given birth in the conversation database of client local At the session data of session, in this way, the content of each session entry includes at least: session identification, the class indication of a session And the conversation message of the session.Each session data is obtained in this way, can be directed to, the conversation database from client local In, the session entry comprising same session identification is searched, and then by the conversation message in the session data, be added to and found The session entry in.It is understood that the contingency table that the class indication and the session data in the session entry are included It is also identical for knowing.In addition, if there is no the session identification that the session data is included, the session datas in conversation database It may be a newly-increased session of client.So, the session identification for being included according to the session data, in conversation database In create a session entry, the class indication in the newly-built session entry, the classification for also being included using the session data Mark.
S13: being grouped each session entry in conversation database according to class indication, obtains one group of first session Entry and at least one set of second session entry.
Wherein, the class indication of the first session entry is for characterizing the mark that session is non-polymeric session, the second meeting The class indication for talking about entry is for characterizing the mark that session is session to be polymerized, and the session of any group of the second session entry Data include the same class indication.
It here, may include multiple for characterizing the mark that session is session to be polymerized, therefore in conversation database Each session entry is grouped the rear obtained grouping about the second session entry according to class indication, may include more Group.For example, it is assumed that conversation database has 5 the first session entries and 5 the second session entries.Wherein, 5 the first sessions The class indication of entry is 0;In 5 the second session entries, the class indication for having 2 the second session entries is 1, and in addition 3 The class indication of a second session entry is 2.So, this 10 session entries are grouped according to class indication, it can be with Obtain one group of first session entry and 2 group of second session entry.Wherein, the class indication of first group of second session entry is 1, The class indication of second group of second session entry is 2.
S14: it according to the second session entry of each first session entry and each group, updates in client and is used for session exhibition The session list shown;Wherein, a level-one session in the unique respective session list of every group of second session entry, each first meeting Talk about a level-one session in the unique respective session list of entry.
Wherein, there may be a variety of for the specific manifestation form of the session list shown for session in client.Example Property, in one implementation, in client for session show session list may include level-one session list and Second level session list, when the displaying opportunity about second level session list is not detected, the attribute of second level session list can be It hides.Here, the grade of session list is used for priority when differentiating sessions list shows user.Level-one session list is preferential User is showed, second level session list can show user after level-one session list shows user again.
It is understood that the session in level-one session list is level-one session, the session in second level session list is equal For second level session.In level-one session list, each first session entry is exposed directly to user in the form of level-one session, and For the level-one session corresponding to every group of second session entry, each second session item which is included Mesh can't show user in level-one session list.
In embodiment of the disclosure, according to the second session entry of each first session entry and each group, client is updated In the specific implementation of session list shown for session there are a variety of.Illustratively, in one implementation, root According to the second session entry of each first session entry and each group, the session list shown for session in client is updated, May include:
For each group of the second session entry, every one second session entry being utilized respectively in second session entry of group is raw At a second level session, and according to each second level session of generation, a second level session list is generated;For the second level session list One is generated for the polymerization session as level-one session, and polymerization session is associated with the second level session list;
For every one first session entry, it is corresponding for as the to be utilized of level-one session to generate first session entry Session;
Respectively using each polymerization session as a level-one session and respectively using each session to be utilized as a level-one Session generates level-one session list.
Here the level-one session list generated can be as shown in Fig. 2 (a).In Fig. 2 (a), level-one session 3 and level-one session 5 For level-one session corresponding to polymerization session, level-one session 1,2 and 4 is level-one session corresponding to session to be utilized.It can see It arrives, each second level session polymerizeing in session can't be shown in level-one session list.
Wherein, about the displaying opportunity of second level session list, it may include: user from level-one session list, click The corresponding level-one session of any group of the second session entry, is not limited thereto certainly.
It is understood that clicking the corresponding level-one of one group of second session entry when user is from level-one session list When session, it can be shown in the client to user accordingly: the second level session list generated according to second session entry of group, Generate the second level session list under the level-one session.For example, it is assumed that user is clicked in the client as shown in Fig. 2 (a) Level-one session 3 in level-one session list, then the second level session list under the level-one session 3 shown in the client to user It can be as shown in Fig. 2 (b).
In embodiment of the disclosure, respectively using each polymerization session as a level-one session and respectively with each to be utilized Session generates the specific implementation of level-one session list as a level-one session, and there may be a variety of.Illustratively, exist In a kind of implementation, respectively using each polymerization session as a level-one session and respectively using each session to be utilized as one A level-one session generates level-one session list, may include:
For each polymerization session, determine in each second level session of second level session list associated by the polymerization session, most The generation time of a new conversation message, using identified generation time as the active time of the polymerization session;
For each session to be utilized, a session newest in the first session entry corresponding to the session to be utilized is disappeared The generation time of breath, the active time as the session to be utilized;
With the active time of the active time of each polymerization session and each session to be utilized, to each polymerization session and respectively A session to be utilized is ranked up, and obtains the first collating sequence, using the first collating sequence as level-one session list.
Wherein, there are a variety of for the specific method of determination of the generation time of every conversation message.Illustratively, in a kind of realization In mode, conversation message can be determined by the server received time, and using the identified time as the generation of conversation message Time.
In embodiment of the disclosure, when being ranked up to each polymerization session and each session to be utilized, active time exists First polymerization session or session to be utilized can come front, and the posterior polymerization session of active time or session to be utilized can arrange Later.
In embodiment of the disclosure, according to each second level session of generation, the specific reality of a second level session list is generated There may also be a variety of for existing mode.Illustratively, in one implementation, according to each second level session of generation, one is generated A second level session list may include:
For each second level session generated, determine in the second session entry for generating the second level session, newest one The identified generation time is determined as the active time of the second level session by the generation time of conversation message;
Each second level session generated is ranked up according to active time, obtains the second collating sequence, and by second Collating sequence is as a second level session list.
In addition, in practical applications, it, can be by level-one session list and/or two in order to reach visual beautiful effect Grade session list shows user in the form of list or view.The disclosure does not do specifically the specific bandwagon effect of session list It limits.
In the session updates method that embodiment of the disclosure provides, the session data of each session to be updated, root are obtained According to session data obtained, the conversation database of client local is updated.Since session data obtained is visitor The session data of family end each session to be updated, therefore disposably sessions to be updated all in client can be carried out more Newly, it even polymerizeing the second level session under the level-one session formed, can also update together.Also, in the disclosure, classification is utilized Mark to characterize whether session needs to polymerize, and when session be session to be polymerized when belonging to class categories, so that The second meeting of each first session entry and each group can be determined according to class indication, from the session entry in conversation database Talk about entry, wherein each first session entry, a level-one session to being applied in the session list that session is shown;Every group Second session entry corresponds to a level-one session in the session list.As it can be seen that the disclosure can be utilized not changing client The mode of polymerization session conversates under the premise of displaying, the interaction times between client and server is reduced, to reduce It is time-consuming.
Optionally, in one implementation, client the session data of received each session can also include: meeting Talk about priority.Here, session priority is for characterizing displaying priority of the session in session list.It is understood that meeting The high session of priority is talked about, it is comparatively important for users.For example, user and the session for having added personal good friend, to user For it is comparatively important, then, in session list, the displaying priority of user and the session for add individual good friend can be with Higher than the displaying priority of user and public platform of interest.
Correspondingly, being that any session data creates session entry in the conversation database of client local in step S12 When, session identification, class indication and the session priority that there is the newly-built session entry session data to be included.
Correspondingly, with the active time of the active time of each polymerization session and each session to be utilized, to each poly- After credit union's words and each session to be utilized are ranked up, it can also be directed to each polymerization session, determine that the polymerization session is closed The session priority of each second level session of union II grade session list;Using a highest session priority as the polymerization session Session priority;For each session to be utilized, the session priority of the session to be utilized is determined;To each polymerization session and Each session to be utilized carries out two minor sorts according to session priority, and using the sequence after two minor sorts as level-one session column Table.
It is understood that when two minor sorts, before the high polymerization session of session priority or session to be utilized can come Face, the low polymerization session of session priority or session to be utilized can come below.
Optionally, in one implementation, the session priority of the identical session of class indication is equal.Therefore, each The session priority of each second level session of second level session list associated by polymerization session is equal.Correspondingly, determining polymerization meeting The session priority of each second level session of associated second level session list is talked about, second level meeting associated by session can be polymerize to determine The session priority of any one second level session of list is talked about, and using identified session priority as the session of polymerization session Priority.
Optionally, in another implementation, the session priority of the identical session of class indication is unequal, therefore, It, can be to generated each two during generating a second level session list in each second level session according to generation After grade session is ranked up according to active time, two minor sorts are carried out according to session priority to each second level session, and will Two minor sorts obtain sequence as a second level session list.It is understood that when two minor sorts, session priority it is high two Grade session can come front, and the low second level session of session priority can come below.
As it can be seen that the session updates method provided using embodiment of the disclosure, can be used for session exhibition in client The session in session list shown is ranked up with active time and session priority, so that it is important to see that user preferentially Session and session with newly-increased conversation message.
Fig. 3 is a kind of session updates device block diagram shown according to an exemplary embodiment.Referring to Fig. 3, which includes Obtain module 131, the first update module 132, grouping module 133 and the second update module 134.
The acquisition module 131 is configured as obtaining the session data of each session to be updated, the session number of each session According to including: session identification, class indication and conversation message, the class indication is for characterizing: session is non-polymeric session Or session to be polymerized, and when session be session to be polymerized when belonging to class categories;
First update module 132 is configured as updating the session number of client local according to session data obtained According to library, the content of each session entry in the conversation database is the session data for having generated session;
The grouping module 133 is configured as dividing each session entry in conversation database according to class indication Group obtains one group of first session entry and at least one set of second session entry;Wherein, the class indication of the first session entry is to use In the mark that characterization session is non-polymeric session, it is to be polymerized that the class indication of the second session entry, which is for characterizing session, The mark of session, and the session data of any group of the second session entry includes the same class indication;
Second update module 134 is configured as according to the second session entry of each first session entry and each group, more The session list shown for session in new client;Wherein, in the unique respective session list of every group of second session entry One level-one session, a level-one session in each unique respective session list of first session entry.
Optionally, first update module 132, can be specifically configured to:
For obtained each session data, in the conversation database for judging client local, if exist with the meeting The session entry of session identification included by data is talked about, if it does not, a session entry is created in conversation database, it is newly-built The session entry has session identification and class indication included by the session data;
Conversation message included by the session data is added to session data for each session data obtained In library in the corresponding session entry of the session data, the corresponding session entry of the session data is with included by the session data The session entry of session identification.
Optionally, session list includes level-one session list and second level session list, is being not detected about second level session When the displaying opportunity of list, the attribute of second level session list is hiding;
Second update module 134, may include: polymerization session generate submodule, session to be utilized generate submodule with And session list generates submodule;
The polymerization session generates submodule, is configured as being utilized respectively the group second for each group of the second session entry Every one second session entry in session entry generates a second level session, and according to each second level session of generation, generates one A second level session list;One is generated for the polymerization session as level-one session for the second level session list, and will polymerize meeting Words are associated with the second level session list;
The session to be utilized generates submodule, is configured as generating the first session item for every one first session entry The corresponding session to be utilized for as level-one session of mesh;
The session list generates submodule, is configured to using each polymerization session as a level-one session and difference Using each session to be utilized as a level-one session, level-one session list is generated.
Optionally, above-mentioned session list generates submodule, may include: the first determining subelement, the second determining son list Member and the first sorting subunit;
The first determining subelement, is configured as determining second level meeting associated by the polymerization session for each polymerization session In each second level session for talking about list, the generation time of a newest conversation message, using identified generation time as this It polymerize the active time of session;
The second determining subelement, is configured as each session to be utilized, will be first corresponding to the session to be utilized The generation time of a newest conversation message, the active time as the session to be utilized in session entry;
First sorting subunit is configured as the work with the active time of each polymerization session and each session to be utilized It jumps the time, each polymerization session and each session to be utilized is ranked up, the first collating sequence is obtained, by the first collating sequence As level-one session list.
Optionally, above-mentioned polymerization session generates submodule, may include: that third determines that subelement and the second sequence are single Member;
The third determines subelement, is configured as determining for each second level session generated and generating the second level session The second session entry in, the identified generation time is determined as the second level meeting by the generation time of a newest conversation message The active time of words;
Second sorting subunit is configured as being ranked up each second level session generated according to active time, The second collating sequence is obtained, and using the second collating sequence as a second level session list.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
The session updates device that embodiment of the disclosure provides, obtains the session data of each session to be updated, according to Session data obtained is updated the conversation database of client local.Since session data obtained is client The session data of each session to be updated is held, therefore disposably sessions to be updated all in client can be carried out more Newly, it even polymerizeing the second level session under the level-one session formed, can also update together.Also, in the disclosure, classification is utilized Mark to characterize whether session needs to polymerize, and when session be session to be polymerized when belonging to class categories, so that The second meeting of each first session entry and each group can be determined according to class indication, from the session entry in conversation database Talk about entry, wherein each first session entry, a level-one session to being applied in the session list that session is shown;Every group Second session entry corresponds to a level-one session in the session list.As it can be seen that the disclosure can be utilized not changing client The mode of polymerization session conversates under the premise of displaying, the interaction times between client and server is reduced, to reduce It is time-consuming.
Fig. 4 is a kind of block diagram of client device shown according to an exemplary embodiment, which includes place Manage device 401, communication interface 402, memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 complete mutual communication by communication bus 404,
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes above-mentioned any session updates Method.
In the exemplary embodiment, additionally provide a kind of storage medium including instruction, when the instruction in storage medium by When the processor of client device executes, so that client device is able to carry out above-mentioned any session updates method.
Optionally, which can be non-transitorycomputer readable storage medium.Wherein, the non-transitory meter Calculation machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage and set It is standby etc..
In the exemplary embodiment, a kind of computer program product is additionally provided, when the computer program product is by visitor When the processor of family end equipment executes, so that electronic equipment is able to carry out any of the above-described kind of session updates method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are wanted by right Book is asked to point out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is limited by claims.

Claims (10)

1. a kind of session updates method, which is characterized in that be applied to client, which comprises
The session data of each session to be updated is obtained, the session data of each session includes: session identification, class indication And conversation message, the class indication is for characterizing: session is non-polymeric session or session to be polymerized, and works as session Class categories belonging to when for session to be polymerized;
According to session data obtained, the conversation database of the client local is updated, it is every in the conversation database The content of one session entry is the session data for having generated session;
Each session entry in the conversation database is grouped according to class indication, obtains one group of first session entry With at least one set of second session entry;Wherein, it is non-polymeric that the class indication of first session entry, which is for characterizing session, Session mark, the class indication of second session entry be for characterizing the mark that session is session to be polymerized, and The session data of any group of the second session entry includes the same class indication;
According to the second session entry of each first session entry and each group, updates in the client and be used for what session was shown Session list;Wherein, every group of second session entry uniquely corresponds to a level-one session in the session list, each first meeting Words entry uniquely corresponds to a level-one session in the session list.
2. updating the visitor the method according to claim 1, wherein described according to session data obtained The conversation database at family end, comprising:
For obtained each session data, in the conversation database for judging the client local, if exist with the meeting The session entry of session identification included by data is talked about, if it does not, a session entry is created in the conversation database, The newly-built session entry has session identification and class indication included by the session data;
Conversation message included by the session data is added to the session data for each session data obtained In library in the corresponding session entry of the session data, the corresponding session entry of the session data is with included by the session data Session identification session entry.
3. the method according to claim 1, wherein the session list includes level-one session list and second level meeting List is talked about, when the displaying opportunity about the second level session list is not detected, the attribute of the second level session list is hidden Hiding;
It is described according to the second session entry of each first session entry and each group, update in the client for session exhibition The session list shown, comprising:
For each group of the second session entry, every one second session entry being utilized respectively in second session entry of group generates one A second level session, and according to each second level session of generation, generate a second level session list;For second level session list generation One is associated for the polymerization session as level-one session, and by polymerization session with the second level session list;
For every one first session entry, the corresponding meeting to be utilized for as level-one session of first session entry is generated Words;
Respectively using each polymerization session as a level-one session and respectively using each session to be utilized as a level-one session, Generate the level-one session list.
4. according to the method described in claim 3, it is characterized in that, described respectively using each polymerization session as a level-one meeting It talks about and respectively using each session to be utilized as a level-one session, generates the level-one session list, comprising:
For each polymerization session, determine in each second level session of second level session list associated by the polymerization session, it is newest The generation time of one conversation message, using identified generation time as the active time of the polymerization session;
For each session to be utilized, by a conversation message newest in the first session entry corresponding to the session to be utilized Generation time, the active time as the session to be utilized;
With it is each polymerization session active time and each session to be utilized active time, to each polymerization session and it is each to It is ranked up using session, obtains the first collating sequence, using first collating sequence as the level-one session list.
5. according to the method described in claim 3, it is characterized in that, each second level session according to generation, generates one Second level session list, comprising:
For each second level session generated, determine in the second session entry for generating the second level session, a newest session The generation time of message, using the identified generation time as the active time of the second level session;
Each second level session generated is ranked up according to active time, obtains the second collating sequence, and by described second Collating sequence is as a second level session list.
6. a kind of session updates device, which is characterized in that be applied to client, described device includes:
Module is obtained, is configured as obtaining the session data of each session to be updated, the session data of each session includes: Session identification, class indication and conversation message, the class indication is for characterizing: session is non-polymeric session or to be polymerized Session, and when session be session to be polymerized when belonging to class categories;
First update module is configured as updating the conversation database of the client local according to session data obtained, The content of each session entry in the conversation database is the session data for having generated session;
Grouping module is configured as being grouped each session entry in the conversation database according to class indication, obtain To one group of first session entry and at least one set of second session entry;Wherein, the class indication of first session entry is to use In the mark that characterization session is non-polymeric session, it is to poly- that the class indication of second session entry, which is for characterizing session, The mark of the session of conjunction, and the session data of any group of the second session entry includes the same class indication;
Second update module is configured as updating the visitor according to the second session entry of each first session entry and each group The session list shown for session in the end of family;Wherein, every group of second session entry uniquely corresponds in the session list One level-one session, each first session entry uniquely correspond to a level-one session in the session list.
7. device according to claim 6, which is characterized in that first update module is specifically configured to:
For obtained each session data, in the conversation database for judging the client local, if exist with the meeting The session entry of session identification included by data is talked about, if it does not, creating a session entry in the conversation database, newly The session entry built has session identification and class indication included by the session data;
Conversation message included by the session data is added to the session data for each session data obtained In library in the corresponding session entry of the session data, the corresponding session entry of the session data is with included by the session data The session entry of session identification.
8. device according to claim 6, which is characterized in that the session list includes level-one session list and second level meeting List is talked about, when the displaying opportunity about the second level session list is not detected, the attribute of the second level session list is hidden Hiding;
Second update module, comprising: polymerization session generates submodule, session to be utilized generates submodule and session list Generate submodule;
The polymerization session generates submodule, is configured as being utilized respectively second meeting of group for each group of the second session entry It talks about every one second session entry in entry and generates a second level session, and according to each second level session of generation, generate one Second level session list;One is generated for the polymerization session as level-one session for the second level session list, and will polymerize session It is associated with the second level session list;
The session to be utilized generates submodule, is configured as generating first session entry for every one first session entry The corresponding session to be utilized for as level-one session;
The session list generates submodule, be configured to using each polymerization session as a level-one session and respectively with Each session to be utilized generates the level-one session list as a level-one session.
9. a kind of client device, which is characterized in that including processor, communication interface, memory and communication bus, wherein place Device, communication interface are managed, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes session described in any one of claims 1 to 5 Update method.
10. a kind of storage medium, which is characterized in that when the instruction in the storage medium is executed by the processor of client device When, so that the client device is able to carry out the session updates method as described in any one of claims 1 to 5.
CN201910423181.1A 2019-05-21 2019-05-21 Session updating method and device and client device Active CN110138652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910423181.1A CN110138652B (en) 2019-05-21 2019-05-21 Session updating method and device and client device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910423181.1A CN110138652B (en) 2019-05-21 2019-05-21 Session updating method and device and client device

Publications (2)

Publication Number Publication Date
CN110138652A true CN110138652A (en) 2019-08-16
CN110138652B CN110138652B (en) 2022-03-25

Family

ID=67571799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910423181.1A Active CN110138652B (en) 2019-05-21 2019-05-21 Session updating method and device and client device

Country Status (1)

Country Link
CN (1) CN110138652B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598143A (en) * 2019-09-25 2019-12-20 腾讯科技(深圳)有限公司 Method, related device and system for displaying instant communication content
CN111585774A (en) * 2020-03-24 2020-08-25 福建天泉教育科技有限公司 Session updating method and storage medium
CN112134784A (en) * 2020-09-03 2020-12-25 北京达佳互联信息技术有限公司 Message display method, device, terminal, server, system and storage medium
CN112769677A (en) * 2020-12-30 2021-05-07 北京达佳互联信息技术有限公司 Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN113098781A (en) * 2021-03-19 2021-07-09 北京达佳互联信息技术有限公司 Session list processing method, device, server and storage medium
CN114461314A (en) * 2021-06-25 2022-05-10 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020034281A1 (en) * 2000-02-22 2002-03-21 Ellen Isaacs System and method for communicating via instant messaging
CN104598476A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Message aggregation display method and information display method and relevant device
US20150186494A1 (en) * 2013-12-31 2015-07-02 Google Inc. Systems and methods for message categorization management
CN106202095A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 Group message display packing and device
CN106503584A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of session content methods of exhibiting and system
CN106888236A (en) * 2015-12-15 2017-06-23 腾讯科技(深圳)有限公司 Conversation managing method and session management device
CN107465802A (en) * 2016-06-03 2017-12-12 北京融聚世界网络科技有限公司 A kind of methods, devices and systems for showing communication message
CN108491135A (en) * 2018-03-14 2018-09-04 北京达佳互联信息技术有限公司 Information displaying method, device, computer equipment and storage medium
CN108667899A (en) * 2018-03-29 2018-10-16 挂号网(杭州)科技有限公司 Multiple terminals message synchronization and isolation instant communication method and system
CN108809815A (en) * 2018-06-29 2018-11-13 上海哔哩哔哩科技有限公司 Item number update method, conversation processing method, device and system are not read in session
CN109688051A (en) * 2018-12-29 2019-04-26 天津字节跳动科技有限公司 Session list display methods, device and electronic equipment
CN109710370A (en) * 2018-12-29 2019-05-03 天津字节跳动科技有限公司 Session list display methods, device and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020034281A1 (en) * 2000-02-22 2002-03-21 Ellen Isaacs System and method for communicating via instant messaging
CN104598476A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Message aggregation display method and information display method and relevant device
US20150186494A1 (en) * 2013-12-31 2015-07-02 Google Inc. Systems and methods for message categorization management
CN106202095A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 Group message display packing and device
CN106888236A (en) * 2015-12-15 2017-06-23 腾讯科技(深圳)有限公司 Conversation managing method and session management device
CN107465802A (en) * 2016-06-03 2017-12-12 北京融聚世界网络科技有限公司 A kind of methods, devices and systems for showing communication message
CN106503584A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of session content methods of exhibiting and system
CN108491135A (en) * 2018-03-14 2018-09-04 北京达佳互联信息技术有限公司 Information displaying method, device, computer equipment and storage medium
CN108667899A (en) * 2018-03-29 2018-10-16 挂号网(杭州)科技有限公司 Multiple terminals message synchronization and isolation instant communication method and system
CN108809815A (en) * 2018-06-29 2018-11-13 上海哔哩哔哩科技有限公司 Item number update method, conversation processing method, device and system are not read in session
CN109688051A (en) * 2018-12-29 2019-04-26 天津字节跳动科技有限公司 Session list display methods, device and electronic equipment
CN109710370A (en) * 2018-12-29 2019-05-03 天津字节跳动科技有限公司 Session list display methods, device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SAMI S. ALWAKEEL,等: ""A Bayesian based energy aware routing algorithm for mobile WSNs"", 《2015 5TH NATIONAL SYMPOSIUM ON INFORMATION TECHNOLOGY: TOWARDS NEW SMART WORLD (NSITNSW)》 *
徐航: ""基于XMPP的P2P即时通信系统的研究及实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598143A (en) * 2019-09-25 2019-12-20 腾讯科技(深圳)有限公司 Method, related device and system for displaying instant communication content
CN111585774A (en) * 2020-03-24 2020-08-25 福建天泉教育科技有限公司 Session updating method and storage medium
CN112134784A (en) * 2020-09-03 2020-12-25 北京达佳互联信息技术有限公司 Message display method, device, terminal, server, system and storage medium
CN112769677A (en) * 2020-12-30 2021-05-07 北京达佳互联信息技术有限公司 Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN113098781A (en) * 2021-03-19 2021-07-09 北京达佳互联信息技术有限公司 Session list processing method, device, server and storage medium
CN113098781B (en) * 2021-03-19 2023-01-20 北京达佳互联信息技术有限公司 Session list processing method, device, server and storage medium
CN114461314A (en) * 2021-06-25 2022-05-10 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Also Published As

Publication number Publication date
CN110138652B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN110138652A (en) A kind of session updates method, apparatus and client device
KR101475682B1 (en) Method, system and server for managing friends' feed in network
CN106796682B (en) Fill user contact's entry
CN108243086B (en) Message processing method and system
US20080300944A1 (en) Relevant invitee list for conference system
CN105450705B (en) Business data processing method and equipment
CN104572125B (en) Method for drafting, storage method, drawing apparatus and the storage device of entity relationship diagram
CN104935563B (en) Method and apparatus for managing meeting
CN105162875B (en) Big data group method for allocating tasks and device
CN110020086A (en) A kind of user draws a portrait querying method and device
US12111862B2 (en) Determining object geolocations based on heterogeneous data sources
CN114448922B (en) Message hierarchical processing method, device, equipment and storage medium
CN105915442B (en) It is a kind of to reuse the EIM conversation managing methods and system for having group
CN110336681A (en) A kind of matching process, device, electronic equipment and storage medium
US20240211505A1 (en) Determining geolocations of composite entities based on heterogeneous data sources
CN110401709A (en) Processing method, device and the storage medium of session in a kind of instant messaging application
CN110892427B (en) Method and apparatus for retrieving data packets
CN115865528A (en) Multi-device based user profile operation method, system and readable storage medium
CN113313196B (en) Labeling data processing method, related device and computer program product
CN109299388A (en) A kind of system and method for searching high quality social activity user
CN112507100B (en) Update processing method and device of question-answering system
CN108959584A (en) A kind of method and device of the processing diagram data based on community structure
CN112115318A (en) Computer room wiring resource management method and device
CN108521367B (en) Contact information display method and device, storage medium and electronic equipment
CN107566240B (en) Method for realizing instant messaging group room

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant