Summary of the invention
In view of this, the application provides a kind of instant communicating method and device.
Particularly, the application is achieved by the following technical solution:
A kind of instant communicating method, be applied in service end, described method comprises:
Receive the conversation message of the client transmission sending member;
Judge whether the target members of described conversation message had read described conversation message;
If the target members of described conversation message had read described conversation message, in described conversation message, then add the client being transmitted to described target members after reading mark, the client for described target members does not read prompting for described conversation message adds according to described mark of having read.
Further, described method also comprises:
After the conversation message receiving the client transmission sending member, it is described conversation message generating content mark;
Described content identification is added in described conversation message;
What the client of receiving target member sent after target members read described conversation message reads notice, described read to notify in carry the content identification of described conversation message;
Described content identification is kept at buffer area corresponding to described target members.
Further, describedly judge whether the target members of described conversation message had read described conversation message and comprised:
Judge the content identification whether being cached with described conversation message in the buffer area that described target members is corresponding;
If be cached with the content identification of described conversation message in the buffer area that described target members is corresponding, then confirm that the target members of described conversation message had read described conversation message.
Further, described method also comprises:
After described content identification being kept at buffer area corresponding to described target members, start the timer that target members presets;
When described timer expiry, in the buffer area that described target members is corresponding, delete described content identification.
Further, described is that described conversation message generating content mark comprises:
By hash algorithm be described conversation message generating content mark.
Further, described is that described conversation message generating content mark comprises:
When in described conversation message, the size of chat content exceedes default thresholding, it is described conversation message generating content mark.
A kind of instant communicating method, on the client, described method comprises in application:
Receive the conversation message that service end forwards;
Judge whether to carry in described conversation message and read mark;
Read mark if carried in described conversation message, then do not read prompting for described conversation message adds.
Further, read mark if do not carried in described conversation message, then do not read prompting for described conversation message adds, read to point out user;
After user reads described conversation message, send and read to inform service end, described read to notify in carry the content identification of described conversation message, preserve described content identification for service end.
Further, described method also comprises:
After user reads described conversation message, that removes described conversation message does not read prompting;
Check with do not read point out conversation message in whether have the conversation message identical with described conversation message;
If have the conversation message identical with described conversation message content with in the conversation message not reading to point out, then remove the conversation message identical with described conversation message do not read point out.
A kind of immediate communication device, be applied in service end, described device comprises:
First receiving element, receives the conversation message of the client transmission sending member;
First judging unit, judges whether the target members of described conversation message had read described conversation message;
First adding device, when the target members of described conversation message had read described conversation message, in described conversation message, add the client being transmitted to described target members after having read mark, the client for described target members does not read prompting for described conversation message adds according to described mark of having read.
Further, described device also comprises:
Identification generation unit, after the conversation message receiving the client transmission sending member, is described conversation message generating content mark;
Second adding device, is added on described content identification in described conversation message;
Notice receiving element, what the client of receiving target member sent after target members read described conversation message reads notice, described read to notify in carry the content identification of described conversation message;
Mark buffer unit, is kept at buffer area corresponding to described target members by described content identification.
Further, described first judging unit, specifically judges the content identification whether being cached with described conversation message in the buffer area that described target members is corresponding; If be cached with the content identification of described conversation message in the buffer area that described target members is corresponding, then confirm that the target members of described conversation message had read described conversation message.
Further, described device also comprises:
Start by set date unit, after described content identification being kept at buffer area corresponding to described target members, starts the timer that target members presets;
Buffer memory delete cells, when described timer expiry, deletes described content identification in the buffer area that described target members is corresponding.
Further, described identification generation unit is described conversation message generating content mark especially by hash algorithm.
Further, described identification generation unit, when specifically in described conversation message, the size of chat content exceedes default thresholding, is described conversation message generating content mark.
A kind of immediate communication device, on the client, described device comprises in application:
Second receiving element, receives the conversation message that service end forwards;
Whether the second judging unit, judge to carry in described conversation message and read mark;
Prompting adding device, carries when having read mark, does not read prompting for described conversation message adds in described conversation message.
Further, described prompting adding device, does not carry when having read mark, does not read prompting, read to point out user for described conversation message adds in described conversation message;
Described device also comprises:
Read notification unit, after user reads described conversation message, send and read to inform service end, described read to notify in carry the content identification of described conversation message, preserve described content identification for service end.
Further, described device also comprises:
Prompting clearing cell, after user reads described conversation message, that removes described conversation message does not read prompting;
Prompting check unit, check with do not read point out conversation message in whether have the conversation message identical with described conversation message;
Described prompting clearing cell, with do not read point out conversation message in have the conversation message identical with described conversation message content time, remove the conversation message identical with described conversation message do not read point out.
Described as can be seen from above, the application's service end is when the transmission member for instant messaging forwards conversation message, judge whether the target members of described conversation message had read described conversation message, when described target members had read described conversation message, the client of mark for target members is read after having read mark described in identifying for prompting is not read in described conversation message interpolation by adding in described conversation message, with avoid target members receive repetition conversation message do not read prompting, greatly promote the experience of user.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the application.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that some aspects of the application are consistent.
Only for describing the object of specific embodiment at term used in this application, and not intended to be limiting the application." one ", " described " and " being somebody's turn to do " of the singulative used in the application and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the application, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from the application's scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
For the problems referred to above, the application provides a kind of instant messaging scheme.
Please refer to Fig. 1, the application provides a kind of instant communicating method, is applied in service end, said method comprising the steps of:
Step 101, receives the conversation message of the client transmission sending member.
Step 102, judges whether the target members of described conversation message had read described conversation message.
Step 103, if the target members of described conversation message had read described conversation message, in described conversation message, then add the client being transmitted to described target members after reading mark, the client for described target members does not read prompting for described conversation message adds according to described mark of having read.
Please refer to Fig. 2, the application provides a kind of instant communicating method, and application on the client, said method comprising the steps of:
Step 201, receives the conversation message that service end forwards.
Whether step 202, judge to carry in described conversation message and read mark.
Step 203, reads mark if carried in described conversation message, then do not read prompting for described conversation message adds.
Described as can be seen from above, the application's service end is when the transmission member for instant messaging forwards conversation message, judge whether the target members of described conversation message had read described conversation message, when described target members had read described conversation message, the client of mark for target members is read after having read mark described in identifying for prompting is not read in described conversation message interpolation by adding in described conversation message, with avoid target members receive repetition conversation message do not read prompting, greatly promote the experience of user.
The specific implementation of the application is described in detail below in conjunction with embodiment.
Please refer to Fig. 3, the schematic flow sheet of instant communicating method in a kind of embodiment of the application, said method comprising the steps of:
Step 301, service end, after the conversation message receiving the client transmission sending member, is described conversation message generating content mark.
In the process of instant messaging, the client of instant messaging two ends member is conversated by service end the forwarding of message.Generally, send the information such as identify label, chat content that can carry in the conversation message of member's transmission and send member and target members, described conversation message, according to the identify label of described target members, is transmitted to the client of target members by service end.For group chatting, send in the conversation message that member sends and also carry group identification, search the member of this group for service end according to described group identification and carry out the forwarding of described conversation message.The process of this part can with reference to prior art with realization, and the application describes in detail no longer one by one at this.
In this application, service end, after the conversation message receiving the client transmission sending member, is described conversation message generating content mark.Described content identification is the unique identification of chat content in described conversation message, and the content identification of identical chat content is identical.In this step, described content identification is added in described conversation message by service end, such as: described content identification is added in the field that communication message presets, to make client and service end is follow-up can distinguish identical chat content according to described content identification.
Particularly, service end is after receiving conversation message, and the communication protocol according to itself and client can parse the chat content sending member and send from described conversation message, can be then that described chat content generates described content identification by hash algorithm.Such as: service end can be the cryptographic Hash that described chat content generates 16 by two hash algorithm, and using described cryptographic Hash as described content identification.Certainly, those skilled in the art also can generate described content identification by other means, and the application does not limit this.
In a kind of preferred embodiment of the application, service end, after receiving conversation message, first judges the size of chat content in described conversation message, and when the size of described chat content exceedes default thresholding, is described chat content generating content mark.The size of described chat content can the number of words of secondary indication text chat content, and in the present embodiment, service end is only the text chat content exceeding folio and generates described content identification, such as: more than 40 words.This is because, in instant messaging, the text chat content exceeding folio be notice, advertisement probability comparatively large, the attention rate of user is lower, and for this chat content, the probability that identical or different transmission members repeats to send is higher.In addition, the application's service end also can be specific chat content generating content mark, such as: hypertext link, picture, video etc., the application does not limit this.
Step 302, service end judges whether the target members of described conversation message had read described conversation message, if so, then performs step 303.
In this step, service end judges whether described target members had read described conversation message and referred to and judge whether described target members had read the chat content of described conversation message.Described service end can judge by the content identification judging whether to be cached with in the buffer area that described target members is corresponding described conversation message whether described target members had read described conversation message.
Particularly, in service end, a corresponding buffer area can be set for each target members, the content identification of the described conversation message that the client being used for storing target members reported after target members read conversation message.Service end is after receiving the conversation message sending member's transmission, for described conversation message generating content mark, then judge whether preserve described content identification in the buffer zone of the target members of described conversation message, if preserve described content identification, then can confirm that described target members had read described conversation message, perform step 303.If do not preserve described content identification, then can confirm that described target members did not also read described conversation message, then the described conversation message carrying content identification is directly transmitted to the client of target members by service end.
Step 303, service end add in described conversation message read to identify after be transmitted to the client of described target members.
In this step, preset a field in the conversation message that can communicate with service end in client to have read to identify described in carrying.Such as: can preset a flag bit in described conversation message, described flag bit is defaulted as not to be read, and for example, described flag bit is defaulted as 0, expression is not read.After service end judges that target members had read described conversation message, can be 1 by described mark position, described in representing with 1, read mark.Certainly, those skilled in the art also can take other mode add described in read mark, the application contrast do not limit.
Step 304, whether client, after the conversation message receiving service end forwarding, judges to carry in described conversation message and has read mark.If not, then step 305 is performed.If so, then step 309 is performed.
Step 305, client is that prompting is not read in the interpolation of described conversation message, reads to point out user.
In instant communication process, generally, after client receives the conversation message of service end forwarding, capital is that prompting is not read in the interpolation of described conversation message, such as: the group belonging to described conversation message or send member session hurdle on mark red point, to point out user the current unread message had from this group or this transmission member.
Step 306, client is after user reads described conversation message, and that removes described conversation message does not read prompting, and transmission has read to inform service end.
User can read by clicking the session hurdle opened with not reading to point out the conversation message do not read, and after user clicks the described session hurdle of unlatching, client will remove the red point on described session hurdle.The process of this part can with reference to prior art with realization, and the application describes in detail no longer one by one at this.
In this step, client is after user reads described conversation message, and send and read to inform service end, notification service end subscriber had read described conversation message.Particularly, client obtains the content identification of described conversation message, has read to send to service end in notice described in then described content identification being carried at, and described content identification is kept in buffer area corresponding to described user for service end.
Further, client remove the described conversation message read of user do not read prompting after, check in the current conversation message with not reading to point out whether also have the conversation message identical with described conversation message.Particularly, client checks that whether the current content identification with not reading the conversation message of pointing out is consistent with the content identification of the conversation message that user read one by one, if consistent, then illustrate that the chat content of conversation message that current agent is not read to point out is consistent with the chat content of the conversation message that user read, that removes the described current conversation message with not reading to point out does not read prompting, to avoid user's repeat reading.
For example, service end receives the conversation message 1 sending to target members A, by calculating the content identification B of described conversation message, then check in the buffer area that described target members A is corresponding there is no content identification B described in buffer memory, so send to target members A after described conversation message 1 is added content identification B, the client of target members A is that described conversation message 1 generates and do not read prompting.Service end and then receive again the conversation message 2 sending to target members A, by calculating the content identification B of described conversation message, then check in the buffer area that described target members A is corresponding there is no content identification B described in buffer memory, so described conversation message 2 is added content identification B send to target members A, the client of target members A is that described conversation message 2 generates and do not read prompting.If target members has read conversation message 2, client remove described conversation message 2 do not read prompting after, generate the notice of reading carrying content identification B and send to service end, content identification B is kept at buffer area corresponding to target members A by service end.And now, through checking, client can find that the content identification of conversation message 1 with not reading to point out is consistent with the content identification of described conversation message 2, then client remove described conversation message 1 do not read point out.Follow-up, service end receive again content identification be B send to the conversation message of target members A time, will add in described conversation message and read prompting, not read prompting to point out the client of target members A for described conversation message adds.
Step 307, what the client of service end receiving target member sent after target members read described conversation message reads notice, described read to notify in carry the content identification of described conversation message.
Step 308, described content identification is kept at buffer area corresponding to described target members by service end.
In this step, described content identification is kept in buffer area corresponding to described target members by service end, so that the conversation message read for target members adds read mark.
Further, the application supports that user arranges the duration conversation message repeated not being read to prompting voluntarily.Particularly, the option that user can be provided by client is arranged described duration.Such as: user can arrange within 24 hours and not read prompting to the conversation message repeated.In actual applications, described duration can be sent to service end by client, service end is after the content identification of reading in notice client sent is kept at corresponding buffer area, the process of timing can be realized by starting timer, to be described as example above, during the duration of described timer 24 hours, when described timer expiry, service end deleted described content identification in described buffer area.Like this, when service end receives the identical session information of content identification again, be no through abovementioned steps 302 judged result, do not add in described session information and read mark, and then make client be that described session information adds and do not read prompting.
Step 309, client does not read prompting for described conversation message adds.
Based on abovementioned steps 304, client judge to carry in described conversation message read mark after, do not read prompting for described conversation message adds, namely not the group belonging to described conversation message or send member session hurdle on mark red point, to avoid user's repeat reading.It should be noted that, the chat content of carrying in described conversation message still can be presented in corresponding chat record by client, if user clicks check this chat record, still can see described chat content.
Described as can be seen from above, the application's service end is when the transmission member for instant messaging forwards conversation message, judge whether the target members of described conversation message had read described conversation message, when described target members had read described conversation message, the client of mark for target members is read after having read mark described in identifying for prompting is not read in described conversation message interpolation by adding in described conversation message, with avoid target members receive repetition conversation message do not read prompting, greatly promote the experience of user.
It should be noted that, the application does not distinguish the identity sending member, and also not distinguishing the conversation message sending member's transmission is cluster conversation message or single chat conversation message.In this application, only with the content identification of conversation message for identify object, if send to the content identification of the conversation message of same target members identical, just can according to above-mentioned implementation procedure, avoid target members receive repetition conversation message do not read prompting, promote experience.
Corresponding with the embodiment of the application's instant communicating method, present invention also provides a kind of immediate communication device, be applied in respectively in service end and client.Device described in the application can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, the application's calibration equipment, as the device on a logical meaning, is by the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.
Please refer to Fig. 4 and Fig. 5, a kind of immediate communication device 400 that the application provides, be applied in service end, described device 400 includes: the first receiving element 401, first judging unit 402, first adding device 403, identification generation unit 404, second adding device 405, notice receiving element 406, mark buffer unit 407, start by set date unit 408 and buffer memory delete cells 409.
Described first receiving element 401, receives the conversation message of the client transmission sending member.
Described first judging unit 402, judges whether the target members of described conversation message had read described conversation message.
Described first adding device 403, when the target members of described conversation message had read described conversation message, in described conversation message, add the client being transmitted to described target members after having read mark, the client for described target members does not read prompting for described conversation message adds according to described mark of having read.
Described identification generation unit 404, after the conversation message receiving the client transmission sending member, is described conversation message generating content mark.
Described second adding device 405, is added on described content identification in described conversation message.
Described notice receiving element 406, what the client of receiving target member sent after target members read described conversation message reads notice, described read to notify in carry the content identification of described conversation message.
Described mark buffer unit 407, is kept at buffer area corresponding to described target members by described content identification.
Described first judging unit 401, specifically judges the content identification whether being cached with described conversation message in the buffer area that described target members is corresponding; If be cached with the content identification of described conversation message in the buffer area that described target members is corresponding, then confirm that the target members of described conversation message had read described conversation message.
Described start by set date unit 408, after described content identification being kept at buffer area corresponding to described target members, starts the timer that target members presets;
Described buffer memory delete cells 409, when described timer expiry, deletes described content identification in the buffer area that described target members is corresponding.
Further, described identification generation unit 404 is described conversation message generating content mark especially by hash algorithm.
Further, described identification generation unit 404, when specifically in described conversation message, the size of chat content exceedes default thresholding, is described conversation message generating content mark.
Please refer to Fig. 6 and Fig. 7, a kind of immediate communication device 600 that the application provides, application on the client, described device 600 includes: the second receiving element 601, second judging unit 602, prompting adding device 603, read notification unit 604, prompting clearing cell 605 and prompting check unit 606.
Described second receiving element 601, receives the conversation message that service end forwards.
Whether described second judging unit 602, judge to carry in described conversation message and read mark.
Described prompting adding device 603, carries when having read mark, does not read prompting for described conversation message adds in described conversation message.
Described prompting adding device 603, does not carry when having read mark, does not read prompting, read to point out user for described conversation message adds in described conversation message.
Describedly read notification unit 604, after user reads described conversation message, sent and read to inform service end, described read to notify in carry the content identification of described conversation message, preserve described content identification for service end.
Described prompting clearing cell 605, after user reads described conversation message, that removes described conversation message does not read prompting.
Unit 606 is checked in described prompting, check with do not read point out conversation message in whether have the conversation message identical with described conversation message.
Described prompting clearing cell 605, with do not read point out conversation message in have the conversation message identical with described conversation message content time, remove the conversation message identical with described conversation message do not read point out.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, within all spirit in the application and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.