CN106230908A - Pay close attention to state synchronization method and terminal unit - Google Patents

Pay close attention to state synchronization method and terminal unit Download PDF

Info

Publication number
CN106230908A
CN106230908A CN201610587471.6A CN201610587471A CN106230908A CN 106230908 A CN106230908 A CN 106230908A CN 201610587471 A CN201610587471 A CN 201610587471A CN 106230908 A CN106230908 A CN 106230908A
Authority
CN
China
Prior art keywords
state
terminal unit
local record
attention
concern
Prior art date
Application number
CN201610587471.6A
Other languages
Chinese (zh)
Inventor
曹科技
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
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 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to CN201610587471.6A priority Critical patent/CN106230908A/en
Publication of CN106230908A publication Critical patent/CN106230908A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
    • H04L67/1095Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network for supporting replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes or user terminals or syncML
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/24Presence management

Abstract

The present embodiments relate to data communication technology field, disclose a kind of concern state synchronization method and terminal unit.In the embodiment of the present invention, pay close attention to state synchronization method and include: terminal unit receives the confirmation signal paying close attention to operation of the described concerned item that server returns;Terminal unit obtains the local record state of described concerned item from local data base;It is the most identical that terminal unit judges that local record state operates state corresponding after execution with concern;If differing, then local record status modifier is to pay close attention to state corresponding after operation performs by terminal unit.The embodiment of the present invention also provides for a kind of terminal unit.The concern state synchronization method of embodiment of the present invention offer and terminal unit, avoid the terminal unit caused due to ambiguity factors such as network delay or transmission errors and the local record state of concerned item is repeated the situation of amendment, thus avoid and repeat to process the resource consumption that data are brought.

Description

Pay close attention to state synchronization method and terminal unit

Technical field

The present embodiments relate to data communication technology field, pay close attention to state synchronization method particularly to one and terminal sets Standby.

Background technology

From strength to strength, the application surely belonging to have various function performed meritorious deeds never to be obliterated among these is soft for current terminal function Continuing to bring out of part so that the various activities such as user can carry out the most easily entertaining, concludes the business, inquiry.

Most of application softwaries are the most all to need application individual's account with unique designation user.And reality application In, it may be possible to for the expense of saving (application software having needs to pay according to account) or for the facility in terms of some (such as one family may simply use a payment accounts, to facilitate overall statistics and to refund), it is possible to occur two Or the user of more than two shares the situation of an account.When different user uses the different same accounts of terminal device logs also After operating, operation data are only saved in the terminal unit of this locality;In this case, other terminal unit is actually It is intended to synchronize local data by network.

Such as, two users have logged in calendar function module with same account respectively in two terminals;And wherein In one terminal, a certain race is paid attention in.The confirmation signal that server can return simultaneously pays attention in request to transmission Terminal and another terminal not sending request.After two terminal units receive confirmation signal, can be respectively by its internal reservoir The local record status modifier of this race is for having focused on.Another terminal i.e. not sending request is also to receive server The confirmation signal paying close attention to operation returned, and can be according to the confirmation signal the received local record shape to this race State is modified, to realize synchronizing.

Inventor, during realizing the present invention, finds that prior art has following defects that owing to not sending request Another terminal self does not carry out paying close attention to operation, therefore the most merely receives and pays close attention to the confirmation signal of operation and directly revise The local record state of concerned item.And actual, it is delayed or transmits the uncertain factors such as error due to network, possibly cannot Timely receive the confirmation signal paying close attention to operation each time;The confirmation letter repeatedly paying close attention to operation may also be continuously received Number (and actually this repeatedly pay close attention to operation do not recur) or omit certain pay close attention to operation confirmation signal, the most just Terminal inner can be made to duplicate the local record state (it is unnecessary that some amendment is probably) of amendment concerned item, cause not Necessary resource consumption.

Summary of the invention

The purpose of the embodiment of the present invention is to provide a kind of and pays close attention to state synchronization method and terminal unit, it is to avoid due to net Network postpone or the transmission ambiguity factor such as error and the local record state of concerned item is repeated amendment by the terminal unit that causes Situation, thus avoid and repeat to process the resource consumption that data are brought.

For solving above-mentioned technical problem, embodiments provide a kind of concern state synchronization method, be applied to one Terminal unit, terminal unit can operate concerned item described in synchronized update according to paying close attention to of the concerned item on another terminal unit Local record state;Concern state synchronization method includes: terminal unit receives the concern behaviour of the described concerned item that server returns The confirmation signal made;Terminal unit obtains the local record state of described concerned item from local data base;Terminal unit judges this The state that ground recording status is corresponding after performing with concern operation is the most identical;If differing, then terminal unit will locally record shape State is revised as paying close attention to state corresponding after operation performs.

The embodiment of the present invention additionally provides a kind of terminal unit, and terminal unit can be according to the concern on another terminal unit The local record state of concerned item described in the concern operation synchronized update of item;Terminal unit includes: confirmation signal receives unit, basis Ground data base, state acquiring unit, condition adjudgement unit and status modifier unit;Confirmation signal receives unit and receives server The confirmation signal paying close attention to operation of the described concerned item returned;State acquiring unit is for obtaining described concern from local data base The local record state of item;The state that condition adjudgement unit is corresponding after judging local record state and concern operation execution is No identical;When state corresponding after local record state performs with described concern operation differs, status modifier unit is used for It is to pay close attention to state corresponding after operation performs by local record status modifier.

The embodiment of the present invention is in terms of existing technologies, after receiving the confirmation signal paying close attention to operation of concerned item, whole The local record state of concerned item can be compared by end equipment with paying close attention to corresponding state after operation performs, only when both not The local record state of concerned item just can be revised time identical.It can thus be avoided owing to network delay or transmission error etc. are indefinite Sexual factor and inside the terminal unit that causes local record state to concerned item repeat the situation of amendment, thus avoid repetition Process the resource consumption (processor utilization reduction, unnecessary energy consumption) that data are brought.

Optionally, before local record status modifier is to pay close attention to the state that operation is corresponding by terminal unit, also include: eventually End equipment obtains, from server, the high in the clouds recording status that described concerned item is corresponding;Terminal unit judges that high in the clouds recording status is with local Recording status is the most identical;If differing, then local record status modifier is to pay close attention to correspondence after operation performs by terminal unit State.Thus, by the inquiry of the high in the clouds recording status to concerned item, avoid further due to network delay or transmission error etc. The local record state of concerned item is repeated the situation of amendment by the terminal unit that ambiguity factor may cause.

Optionally, before terminal unit receives the confirmation signal paying close attention to operation of the described concerned item that server returns, Also include: terminal unit provides pays close attention to interface;Pay close attention to interface and include described concerned item and attention key corresponding to described concerned item; After local record status modifier is to pay close attention to state corresponding after operation performs by terminal unit, also include: terminal unit root Display format according to the local record status modifier attention key of described concerned item;Wherein, attention key is with different display format tables Levy the local record state of described concerned item.That is, the concerned item in terminal correspondence can have attention key to characterize its state, attention key General to present different colours to characterize different conditions;When terminal inner duplicates the local record state of amendment concerned item During situation, attention key is also due to toggle color and present flicker state.The embodiment of the present invention can avoid concerned item Local record state repeat amendment, cause attention key to toggle and present the situation of flicker state, thus save further Energy consumption.

Accompanying drawing explanation

In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to root Other accompanying drawing is obtained according to these accompanying drawings.

Fig. 1 is the flow chart paying close attention to state synchronization method according to first embodiment of the invention;

Fig. 2 a is the flow chart paying close attention to state synchronization method according to second embodiment of the invention;

Fig. 2 b is the schematic diagram paying close attention to interface according to second embodiment of the invention;

Fig. 3 is the flow chart paying close attention to state synchronization method according to third embodiment of the invention;

Fig. 4 is the function structure chart of the terminal unit according to four embodiment of the invention;

Fig. 5 is the function structure chart of the terminal unit according to fifth embodiment of the invention;

Fig. 6 is the function structure chart of the terminal unit according to sixth embodiment of the invention.

Detailed description of the invention

For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing to the present invention Each embodiment be explained in detail.But, it will be understood by those skilled in the art that each embodiment party of the present invention In formula, in order to make reader be more fully understood that, the application proposes many ins and outs.But, even if there is no these ins and outs With many variations based on following embodiment and amendment, it is also possible to realize the application each claim skill required for protection Art scheme.

First embodiment of the present invention relates to a kind of concern state synchronization method, is applied to such as mobile phone, panel computer Deng terminal unit.Illustrating as a example by the pass pouring functions of calendar applications in present embodiment, the method can be by paying close attention to State synchronizing apparatus performs, and wherein this device can be realized by software and/or hardware;So present embodiment is not limited in day Going through application program, present embodiment is applicable to have any application program closing pouring functions.

It is the flow chart paying close attention to state synchronization method according to first embodiment of the invention as shown in Figure 1.

Step 101: terminal unit receives the confirmation signal paying close attention to operation of the concerned item that server returns.

It should be noted that the operation of paying close attention to of this concerned item is that another terminal unit based on same account is carried out, Specifically, this concern operation is to log in another terminal unit transmission of same account to server with terminal unit.Lift For example, another terminal unit and this terminal unit have logged in calendar applications with same account;Further, user is at this The concern operation of concerned item has been carried out on another terminal unit;The concern of concerned item is operated (real by this another terminal unit It is a request in matter) send to server;After server process success, return the confirmation letter paying close attention to operation of this concerned item Number.

Specifically, another terminal unit and this terminal unit have logged in calendar applications with same account;And And, user has carried out the concern operation of concerned item on this another terminal unit;This another terminal unit is by concerned item Pay close attention to operation (being essentially a request) to send to server;After server process success, return the concern behaviour of this concerned item The confirmation signal made.

Owing to this terminal unit and another terminal unit are used in conjunction with an account, therefore, this terminal unit can be searched for And receive the confirmation signal paying close attention to operation of this concerned item.Wherein, paying close attention to operation can be to pay attention in or cancel concern;Add pass The state of correspondence after performing of noting, for having focused on state, cancels state corresponding after paying close attention to execution for not pay close attention to state.

The present embodiment is specifically described as a example by paying attention in;The most now, terminal unit receives being somebody's turn to do of server return The confirmation signal paid attention in of concerned item.

Step 102: terminal unit obtains the described local record state of described concerned item from local data base.

Wherein, the local data base of this terminal unit stores the local record state of each concerned item.

Step 103: terminal unit judges that described local record state is paid close attention to corresponding state after operation performs with described be No identical.The most then terminate;If it is not, then enter step 104.

Concern in the present embodiment operates as paying attention in, and the state after paying attention in is for having focused on state.If local record shape State with pay attention in after state differ, when i.e. local record state is not for paying close attention to state, represent this concerned item at present the most not yet by Pay close attention to;Hence into step 105.When local record state with pay attention in after state identical, i.e. local record state for close During note state, represent that this concerned item has been concerned, therefore without resetting this local record state again.

It should be noted that network delay or transmission error situation under, it is possible that local record state with Pay close attention to the situation that state corresponding after operation performs is identical.Such as, in another terminal unit, carry out three times successively pay close attention to behaviour Make, be respectively as follows: and pay attention in, cancel concern, pay attention in;Server receives this another terminal unit and sends is to pay close attention to behaviour these three times After work, three confirmation signals can be returned successively, respectively: the confirmation signal that pays attention in, cancel pay close attention to confirmation signal, pay attention in Confirmation signal.Now, if network delay or transmission error, it is likely to result in this terminal unit and continuously receives for the first time With the confirmation signal of third time, i.e. continuously receive the confirmation signal (confirmation letter that secondary cancellation is paid close attention to paid attention in twice Number also do not receive or lose).So, after receiving the primary confirmation signal paid attention in, this terminal unit is Through by the local record status modifier of this concerned item for having focused on state, and receiving third time the confirmation signal paid attention in Time, i.e. there will be the local record state of concerned item with pay close attention to operation and perform after the identical situation of corresponding state, now without Amendment local record state.

Or, a time cycle can be preset inside terminal unit, to receive for the last time in each time cycle To concern operation as effectively paying close attention to operation, and judge that local record state is effectively paid close attention to this and operate corresponding state The most identical.This mode, processor only needs the comparison performing once to pay close attention to operation within a time cycle, and without docking The each concern operation received processes, such that it is able to alleviate the processing load of processor, further avoid and repeats to process The resource consumption that data are brought.

Step 104: local record status modifier is to pay close attention to state corresponding after operation performs by terminal unit.

In the present embodiment, pay close attention to operation for paying attention in, therefore, terminal unit by local record status modifier for having focused on shape State.

In the embodiment of the present invention, after receiving the confirmation signal paying close attention to operation of concerned item, terminal unit can be by concerned item Local record state compare with paying close attention to corresponding state after operation performs, only just can revise pass when both differ The local record state of note item.It can thus be avoided the end caused due to ambiguity factors such as network delay or transmission errors The local record state of concerned item is repeated the situation of amendment by end device interior, thus avoids and repeat to process the money that data are brought Source consumes (processor utilization reduction, unnecessary energy consumption).

Second embodiment of the present invention relates to a kind of concern state synchronization method.Second embodiment is to implement first Improvement on the basis of mode, mainly thes improvement is that: terminal unit can provide concern interface.

It is the flow chart paying close attention to state synchronization method according to second embodiment of the invention as shown in Figure 2 a.

Step 201: terminal unit provides pays close attention to interface.

When logging in calendar applications with certain account and click through concern interface on this terminal unit, this terminal Equipment can provide one to pay close attention to interface for users operation.As shown in Figure 2 b, this concern interface includes multiple concerned item, such as, scheme 2b shows concerned item 1~concerned item 5, the most a certain star of concerned item, a certain competitive sports etc.;And each concerned item is corresponding In an attention key, shown in label 1-1~1-5 five attention keys in Fig. 2 b correspond respectively to concerned item 1~concerned item 5, Each attention key for characterizing the local record state of each concerned item with different display formats, and optionally, attention key can also be made For triggering the button paying close attention to operation for user.Attention key can also be paid close attention to present different sign the such as color and/or position The state of item;Such as, if the local record state of concerned item is not for pay close attention to state, then the color of attention key is Lycoperdon polymorphum Vitt;If paying close attention to The local record state of item is for having focused on state, then the color of attention key is revised as green.Present embodiment is to each concern circle The specific number of the concerned item that face includes and the color of each attention key represent and are not intended to be limited in any.

Step 202: terminal unit receives the confirmation signal paying close attention to operation of the concerned item that server returns.

It should be noted that the operation of paying close attention to of this concerned item is that another terminal unit based on same account is carried out, Specifically, this concern operation is to log in another terminal unit transmission of same account to server with terminal unit.That is, Another terminal unit and this terminal unit have logged in calendar applications with same account;Further, user is this another The concern operation of concerned item has been carried out on terminal unit;The concern of concerned item is operated and (is essentially by this another terminal unit One request) send to server;After server process success, return the confirmation signal paying close attention to operation of this concerned item.

Owing to this terminal unit and another terminal unit are used in conjunction with an account, therefore, this terminal unit can be searched for And receive the confirmation signal paying close attention to operation of this concerned item.Wherein, paying close attention to operation can be to pay attention in or cancel concern;Add pass The state of correspondence after performing of noting, for having focused on state, cancels state corresponding after paying close attention to execution for not pay close attention to state.

The present embodiment is specifically described as a example by paying attention in;The most now, terminal unit receives being somebody's turn to do of server return The confirmation signal paid attention in of concerned item.

Step 203: terminal unit obtains the local record state of concerned item from local data base.

Wherein, the local data base of this terminal unit stores the local record state of each concerned item.

Step 204: it is the most identical that terminal unit judges that local record state operates state corresponding after execution with concern.If It is then to terminate;If it is not, then enter step 205.

Concern in the present embodiment operates as paying attention in, and the state after paying attention in is for having focused on state.If local record shape State with pay attention in after state differ, when i.e. local record state is not for paying close attention to state, represent this concerned item at present the most not yet by Pay close attention to;Hence into step 205.When local record state with pay attention in after state identical, i.e. local record state for close During note state, represent that this concerned item has been concerned, therefore without resetting this local record state again.

It should be noted that network delay or transmission error situation under, it is possible that local record state with Pay close attention to the situation that state corresponding after operation performs is identical.Such as, in another terminal unit, carry out three times successively pay close attention to behaviour Make, be respectively as follows: and pay attention in, cancel concern, pay attention in;Server receives this another terminal unit and sends is to pay close attention to behaviour these three times After work, three confirmation signals can be returned successively, respectively: the confirmation signal that pays attention in, cancel pay close attention to confirmation signal, pay attention in Confirmation signal.Now, if network delay or transmission error, it is likely to result in this terminal unit and continuously receives for the first time With the confirmation signal of third time, i.e. continuously receive the confirmation signal (confirmation letter that secondary cancellation is paid close attention to paid attention in twice Number also do not receive or lose).So, after receiving the primary confirmation signal paid attention in, this terminal unit is Through by the local record status modifier of this concerned item for having focused on state, and receiving third time the confirmation signal paid attention in Time, i.e. there will be the local record state of concerned item with pay close attention to operation and perform after the identical situation of corresponding state, now without Amendment local record state.

Or, a time cycle can be preset inside terminal unit, to receive for the last time in each time cycle To concern operation as effectively paying close attention to operation, and judge that local record state is effectively paid close attention to this and operate corresponding state The most identical.This mode, processor only needs the comparison performing once to pay close attention to operation within a time cycle, and without docking The each concern operation received processes, such that it is able to alleviate the processing load of processor, further avoid and repeats to process The resource consumption that data are brought.

Step 205: local record status modifier is to pay close attention to state corresponding after operation performs by terminal unit.

In the present embodiment, pay close attention to operation for paying attention in, therefore, terminal unit by local record status modifier for having focused on shape State.

Step 206: terminal unit is according to the display format of the local record status modifier attention key of concerned item.

Such as, attention key characterizes with Lycoperdon polymorphum Vitt and does not pays close attention to state, characterizes concern state with green;Then, terminal unit is by this locality After recording status is revised as having focused on state, the attention key of this concerned item is revised as green by Lycoperdon polymorphum Vitt.

For the first embodiment, terminal unit provides pays close attention to interface;Pay close attention to interface include described concerned item with And the attention key that described concerned item is corresponding.That is, the concerned item in terminal correspondence can have attention key to characterize its state, attention key one As to present different colours to characterize different conditions;When terminal inner duplicates the feelings of the local record state of amendment concerned item During condition, attention key is also due to toggle color and present flicker state.The embodiment of the present invention can avoid the basis of concerned item Ground recording status repeat amendment, cause attention key to toggle and present the situation of flicker state, thus save energy further Consumption.

The step of the most various methods divides, and is intended merely to describe clear, it is achieved time can merge into a step or Some step is split, is decomposed into multiple step, as long as including identical logical relation, all at the protection domain of this patent In;To adding inessential amendment in algorithm or in flow process or introducing inessential design, but do not change its algorithm With the core design of flow process all in the protection domain of this patent.

Third embodiment of the present invention relates to a kind of concern state synchronization method.3rd embodiment is to implement second Improvement on the basis of mode, mainly thes improvement is that: terminal unit also can come by inquiring about the high in the clouds recording status of concerned item The local record state to concerned item caused because of network delay or transmission error is avoided to repeat the situation of amendment further, thus Avoid repeating to process the resource consumption that data are brought.

The flow chart paying close attention to state synchronization method of third embodiment of the invention as shown in Figure 3.

Step 301: terminal unit provides pays close attention to interface.

When logging in calendar applications with certain account and click through concern interface on this terminal unit, this terminal Equipment can provide one to pay close attention to interface common user operation.This concern interface includes multiple concerned item, and concerned item is the most a certain Star, a certain competitive sports etc.;And each concerned item is corresponding to an attention key, this attention key is for different display format tables Levying the local record state of concerned item, optionally, attention key is also used as triggering the button paying close attention to operation for user.Attention key Can also be to present the different state characterizing concerned item such as color and/or position;Such as, if the local record shape of concerned item State is not for pay close attention to state, then the color of attention key is Lycoperdon polymorphum Vitt;If the local record state of concerned item is for having focused on state, then pay close attention to The color of key is revised as green.

Step 302: terminal unit receives the confirmation signal paying close attention to operation of the concerned item that server returns.

It should be noted that the operation of paying close attention to of this concerned item is that another terminal unit based on same account is carried out, Specifically, this concern operation is to log in another terminal unit transmission of same account to server with terminal unit.That is, Another terminal unit and this terminal unit have logged in calendar applications with same account;Further, user is this another The concern operation of concerned item has been carried out on terminal unit;The concern of concerned item is operated and (is essentially by this another terminal unit One request) send to server;After server process success, return the confirmation signal paying close attention to operation of this concerned item.

Owing to this terminal unit and another terminal unit are used in conjunction with an account, therefore, this terminal unit can be searched for And receive the confirmation signal paying close attention to operation of this concerned item.Wherein, paying close attention to operation can be to pay attention in or cancel concern;Add pass The state of correspondence after performing of noting, for having focused on state, cancels state corresponding after paying close attention to execution for not pay close attention to state.

The present embodiment is specifically described as a example by paying attention in;The most now, terminal unit receives being somebody's turn to do of server return The confirmation signal paid attention in of concerned item.

Step 303: terminal unit obtains the local record state of concerned item from local data base.

Wherein, the local data base of this terminal unit stores the local record state of each concerned item.

Step 304: it is the most identical that terminal unit judges that local record state operates state corresponding after execution with concern.If It is then to terminate;If it is not, then enter step 305.

Concern in the present embodiment operates as paying attention in, and the state after paying attention in is for having focused on state.If local record shape State with pay attention in after state differ, when i.e. local record state is not for paying close attention to state, represent this concerned item at present the most not yet by Pay close attention to;Hence into step 305.When local record state with pay attention in after state identical, i.e. local record state for close During note state, represent that this concerned item has been concerned, therefore without resetting this local record state again.

It should be noted that network delay or transmission error situation under, it is possible that local record state with Pay close attention to the situation that state corresponding after operation performs is identical.Such as, in another terminal unit, carry out three times successively pay close attention to behaviour Make, be respectively as follows: and pay attention in, cancel concern, pay attention in;Server receives this another terminal unit and sends is to pay close attention to behaviour these three times After work, three confirmation signals can be returned successively, respectively: the confirmation signal that pays attention in, cancel pay close attention to confirmation signal, pay attention in Confirmation signal.Now, if network delay or transmission error, it is likely to result in this terminal unit and continuously receives for the first time With the confirmation signal of third time, i.e. continuously receive the confirmation signal (confirmation letter that secondary cancellation is paid close attention to paid attention in twice Number also do not receive or lose).So, after receiving the primary confirmation signal paid attention in, this terminal unit is Through by the local record status modifier of this concerned item for having focused on state, and receiving third time the confirmation signal paid attention in Time, i.e. there will be the local record state of concerned item with pay close attention to operation and perform after the identical situation of corresponding state, now without Amendment local record state.

Or, a time cycle can be preset inside terminal unit, to receive for the last time in each time cycle To concern operation as effectively paying close attention to operation, and judge that local record state is effectively paid close attention to this and operate corresponding state The most identical.This mode, processor only needs the comparison performing once to pay close attention to operation within a time cycle, and without docking The each concern operation received processes, such that it is able to alleviate the processing load of processor, further avoid and repeats to process The resource consumption that data are brought.

Step 305: terminal unit obtains, from server, the high in the clouds recording status that concerned item is corresponding.

Wherein, server internal record has the high in the clouds recording status that concerned item is corresponding.Such as, server receives another eventually After end equipment sends the paying attention in of concerned item, this concerned item is paid attention in and processes;Will concerned item pair after processing successfully The high in the clouds recording status answered is revised as having focused on state;And return the confirmation signal paid attention in of this concerned item.

Step 306: terminal unit judges that high in the clouds recording status is the most identical with local record state;The most then terminate, no Then enter step 307.

If concerned item in high in the clouds recording status and this concerned item of server in the local record state not phase of terminal unit With, then the confirmation signal of operation is this time paid close attention in explanation is the up-to-date confirmation signal paying close attention to operation;Otherwise, illustrate to be likely to be due to net Network postpones or transmission error receives up-to-date concern operation signal the most in time.

In present embodiment, pay close attention to operation for paying attention in;If concerned item at the high in the clouds recording status of server for having focused on State (high in the clouds recording status must be revised as having focused on state before return pays attention in confirmation signal by server), and close The local record state of note item, for not pay close attention to state, illustrates that the confirmation signal this time paid attention in is that the last paying close attention to operates Confirmation signal.

Wherein, due to network delay or the delay of transmission error, it is possible to high in the clouds recording status and local record occur State same case, illustrated below.Such as, another terminal unit has carried out twice concern operation successively, has been respectively as follows: Pay attention in, cancel concern.Server receives this another terminal unit and sends is, after this twice concern operates, to return two successively Secondary confirmation signal, respectively: the confirmation signal that pays attention in, cancel the confirmation signal paid close attention to.Now, it is likely that due to network delay Or transmission error, this terminal unit receive only pay attention in confirmation signal (cancel pay close attention to confirmation signal be delayed for a long time or Person has lost);Now, the local record state that this terminal unit obtains is not for pay close attention to state, and server is this concerned item High in the clouds recording status also (pay close attention to, therefore by the cloud of this concerned item owing to server has been received by cancelling for not paying close attention to state End recording status is revised as not paying close attention to state).As above, in the case of, the most now local record state is without amendment.

Step 307: local record status modifier is to pay close attention to state corresponding after operation performs by terminal unit.

In the present embodiment, pay close attention to operation for paying attention in, therefore, terminal unit by local record status modifier for having focused on shape State.

Step 308: terminal unit is according to the display format of the local record status modifier attention key of concerned item.

Such as, attention key characterizes with Lycoperdon polymorphum Vitt and does not pays close attention to state, characterizes concern state with green;Then, terminal unit is by this locality After recording status is revised as having focused on state, the attention key of this concerned item is revised as green by Lycoperdon polymorphum Vitt.

In present embodiment, by the way of by the local record state of concerned item compared with the recording status of high in the clouds, can To avoid the local record state to concerned item caused because of network delay or transmission error to repeat the situation of amendment further, from And avoid repeating to process the resource consumption that data are brought;And then, it is also possible to avoid the local record shape due to concerned item further The repeating amendment of state and situation that the attention key that causes flashes continuously.

Four embodiment of the invention relates to a kind of terminal unit.As shown in Figure 4, terminal unit includes: confirmation signal connects Receive unit 11, local data base 12, state acquiring unit 13, condition adjudgement unit 14 and status modifier unit 15.

Confirmation signal receives unit 11 and receives the confirmation signal paying close attention to operation of the described concerned item that server returns.Its In, the concern operation of described concerned item is sent to server by another terminal unit.

State acquiring unit 13 for obtaining the local record state of described concerned item from local data base 12;Condition adjudgement The state that unit 14 is corresponding after judging local record state and concern operation execution is the most identical;When local record state with When after paying close attention to operation execution, corresponding state differs, it is to pay close attention to grasp that status modifier unit 15 is used for local record status modifier State corresponding after performing.

It is seen that, present embodiment is the virtual system embodiment corresponding with the first embodiment, present embodiment Can work in coordination enforcement with the first embodiment.The relevant technical details mentioned in first embodiment depends in the present embodiment The most effectively, in order to reduce repetition, repeat no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be answered With in the first embodiment.

Fifth embodiment of the invention relates to a kind of terminal unit.As it is shown in figure 5, terminal unit includes: confirmation signal connects Unit 11, local data base 12, state acquiring unit 13, condition adjudgement unit 14, status modifier unit 15, interface offer list are provided Unit 16 and display control unit 17.

Interface providing unit 16 is used for providing concern interface;Pay close attention to interface and include described concerned item and described concerned item pair The attention key answered.

Confirmation signal receives unit 11 and receives the confirmation signal paying close attention to operation of the described concerned item that server returns.Its In, the concern operation of described concerned item is sent to server by another terminal unit.

State acquiring unit 13 for obtaining the local record state of described concerned item from local data base 12;Condition adjudgement The state that unit 14 is corresponding after judging local record state and concern operation execution is the most identical;When local record state with When after paying close attention to operation execution, corresponding state differs, it is to pay close attention to grasp that status modifier unit 15 is used for local record status modifier State corresponding after performing.

Display control unit 17 is for the display format of the local record status modifier attention key according to described concerned item;Its In, attention key characterizes the local record state of described concerned item with different display formats.

Concern state synchronization method described in terminal unit as above and the second embodiment is corresponding.

On the basis of above-mentioned terminal unit, further, state acquiring unit 13 is additionally operable to from server acquisition described The high in the clouds recording status that concerned item is corresponding;Condition adjudgement unit 14 judges high in the clouds recording status and local record state whether phase With.When high in the clouds recording status differs with local record state, status modifier unit 15 is for by local record status modifier being Pay close attention to state corresponding after operation performs.

The processing method paying close attention to operation described in terminal unit as above and the 3rd embodiment is corresponding.

It is seen that, present embodiment is and second or the 3rd corresponding virtual system embodiment of embodiment, this reality The mode of executing can be worked in coordination enforcement with the first or second embodiment.Second or the 3rd correlation technique mentioned in embodiment is thin Joint is the most effective, in order to reduce repetition, repeats no more here.Correspondingly, present embodiment is mentioned Relevant technical details is also applicable in second or the 3rd in embodiment.

Sixth embodiment of the invention relates to a kind of terminal unit.As shown in Figure 6, terminal unit includes: processor 21, aobvious Show device 22, memorizer 23 and wireless transceiver 24;Processor 21 is connected to display 22, memorizer 23 and wireless transceiver 24。

Processor 21 is operated really for the concern being received the described concerned item that server returns by wireless transceiver 24 Recognize signal.Wherein, the concern operation of described concerned item is sent to server by another terminal unit.

Processor 21 for obtaining the described local record state of described concerned item from memorizer 23, and judges described this locality The state that recording status is corresponding after performing with described concern operation is the most identical.If described local record state pays close attention to behaviour with described State corresponding after performing is identical, and described local record status modifier is correspondence after described concern operation performs by processor 21 State.Wherein, memorizer 23 is for storing the local record state of concerned item.

Concern state synchronization method described in terminal unit as above and the first embodiment is corresponding.

On the basis of above-mentioned terminal unit, further, display 22 is used for showing concern interface, pays close attention to interface and includes Described concerned item and attention key corresponding to described concerned item.Processor 21 is additionally operable to the local record shape according to described concerned item The display format of state amendment attention key;Wherein, attention key characterizes the local record shape of described concerned item with different display formats State.

Concern state synchronization method described in terminal unit as above and the second embodiment is corresponding.

On the basis of above-mentioned terminal unit, further, processor 21 is additionally operable to by wireless transceiver 24 from service Device obtains the high in the clouds recording status that described concerned item is corresponding;And judge that high in the clouds recording status is the most identical with local record state. When high in the clouds recording status differs with local record state, processor 21 is for holding local record status modifier for paying close attention to operation State corresponding after row.

The processing method paying close attention to operation described in terminal unit as above and the 3rd embodiment is corresponding.

It is seen that, present embodiment is and first, second or the 3rd corresponding physical system embodiment of embodiment, Present embodiment can be worked in coordination enforcement with the first or second embodiment.First, second or the 3rd mentions in embodiment Relevant technical details is the most effective, in order to reduce repetition, repeats no more here.Correspondingly, this embodiment party The relevant technical details mentioned in formula is also applicable in first, second or the 3rd in embodiment.

It is noted that each module involved in present embodiment is logic module, in actual applications, one Individual logical block can be a physical location, it is also possible to be a part for a physical location, it is also possible to multiple physics lists The combination of unit realizes.Additionally, for the innovative part highlighting the embodiment of the present invention, will with solution not originally in present embodiment The closest unit of technical problem relation that inventive embodiments is proposed introduces, but this is not intended that in present embodiment and does not deposits Unit at other.

It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method can be by Program instructs relevant hardware and completes, and this program is stored in a storage medium, including some instructions with so that one Individual equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform method described in each embodiment of the application All or part of step.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.

It will be understood by those skilled in the art that the respective embodiments described above are the concrete realities realizing the embodiment of the present invention Execute example, and in actual applications, can to it, various changes can be made in the form and details, without departing from the embodiment of the present invention Spirit and scope.

Claims (8)

1. pay close attention to state synchronization method for one kind, it is characterised in that be applied to terminal unit, described concern state synchronization method bag Include:
Described terminal unit receives the confirmation signal paying close attention to operation of the concerned item that server returns;
Described terminal unit obtains the described local record state of described concerned item from local data base;
Described terminal unit judges described local record state and described to pay close attention to corresponding state after operation performs the most identical;
When differing, described local record status modifier is correspondence after described concern operation performs by the most described terminal unit State.
Concern state synchronization method the most according to claim 1, it is characterised in that at terminal unit by described local record Before status modifier is the described state paying close attention to operation correspondence, also include:
Described terminal unit obtains, from described server, the high in the clouds recording status that described concerned item is corresponding;
Described terminal unit judges that described high in the clouds recording status is the most identical with described local record state;
When differing, described local record status modifier is correspondence after described concern operation performs by the most described terminal unit State.
Concern state synchronization method the most according to claim 1, it is characterised in that described concern operation include paying attention in or Cancel and paying close attention to;Described pay attention in execution after corresponding state for having focused on state, the state of correspondence after performing is paid close attention in described cancellation For not paying close attention to state.
Concern state synchronization method the most according to claim 1, it is characterised in that receive server at terminal unit and return Concerned item pay close attention to operation confirmation signal before, also include:
Described terminal unit provides pays close attention to interface;Described concern interface includes described concerned item and pass corresponding to described concerned item Note key;
After described local record status modifier is state corresponding after described concern operation performs by terminal unit, also wrap Include:
Described terminal unit is according to the display format of attention key described in the described local record status modifier of described concerned item;
Wherein, described attention key characterizes the described local record state of described concerned item with different display formats.
5. a terminal unit, it is characterised in that described terminal unit can be according to the pass of the concerned item on another terminal unit The local record state of concerned item described in note operation synchronized update;Described terminal unit includes: confirmation signal receives unit, this locality Data base, state acquiring unit, condition adjudgement unit and status modifier unit;
Described confirmation signal receives unit and receives the confirmation signal paying close attention to operation of the concerned item that server returns;
Described state acquiring unit for obtaining the described local record state of described concerned item from described local data base;
The state that described condition adjudgement unit is corresponding after judging described local record state and described concern operation execution is No identical;
When state corresponding after described local record state performs with described concern operation differs, described status modifier unit For by described local record status modifier being state corresponding after described concern operation performs.
Terminal unit the most according to claim 5, it is characterised in that described state acquiring unit is additionally operable to from described service Device obtains the high in the clouds recording status that described concerned item is corresponding;
Described condition adjudgement unit is additionally operable to judge that described high in the clouds recording status is the most identical with described local record state;
When described high in the clouds recording status differs with described local record state, described status modifier unit is for by described this locality Recording status is revised as state corresponding after described concern operation performs.
Terminal unit the most according to claim 5, it is characterised in that described concern operation includes paying attention in or cancelling pass Note;Described pay attention in execution after corresponding state for having focused on state, described cancellation pays close attention to after performing the state of correspondence for not close Note state.
Terminal unit the most according to claim 5, it is characterised in that described terminal unit also include interface providing unit with Display control unit;
Described interface providing unit is used for providing concern interface;Described concern interface includes described concerned item and described concerned item Corresponding attention key;
Described display control unit is for the display according to attention key described in the described local record status modifier of described concerned item Form;
Wherein, described attention key characterizes the described local record state of described concerned item with different display formats.
CN201610587471.6A 2016-07-24 2016-07-24 Pay close attention to state synchronization method and terminal unit CN106230908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610587471.6A CN106230908A (en) 2016-07-24 2016-07-24 Pay close attention to state synchronization method and terminal unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610587471.6A CN106230908A (en) 2016-07-24 2016-07-24 Pay close attention to state synchronization method and terminal unit

Publications (1)

Publication Number Publication Date
CN106230908A true CN106230908A (en) 2016-12-14

Family

ID=57532651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610587471.6A CN106230908A (en) 2016-07-24 2016-07-24 Pay close attention to state synchronization method and terminal unit

Country Status (1)

Country Link
CN (1) CN106230908A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094265A (en) * 2017-03-29 2017-08-25 武汉斗鱼网络科技有限公司 A kind of method and system for optimizing live mobile end subscriber concern operation
CN108243178A (en) * 2016-12-27 2018-07-03 武汉斗鱼网络科技有限公司 A kind of method and system for obtaining main broadcaster and paying close attention to state

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143974A1 (en) * 2009-09-16 2012-06-07 Tencent Technology (Shenzhen) Company Limited Method And Server For Instant Messaging
CN102801656A (en) * 2012-08-29 2012-11-28 腾讯科技(深圳)有限公司 State control and modification method, equipment and system for implementing instant messaging application
CN103188127A (en) * 2011-12-28 2013-07-03 宇龙计算机通信科技(深圳)有限公司 Method and system for acquiring new events of multiple accounts
CN103491055A (en) * 2012-06-12 2014-01-01 中兴通讯股份有限公司 Method for synchronizing information among clients, clients and server
CN104092646A (en) * 2013-10-28 2014-10-08 腾讯科技(深圳)有限公司 Operation synchronization method and device
CN104836719A (en) * 2014-02-11 2015-08-12 阿里巴巴集团控股有限公司 Method and system for synchronizing instant communication unread messages

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143974A1 (en) * 2009-09-16 2012-06-07 Tencent Technology (Shenzhen) Company Limited Method And Server For Instant Messaging
CN103188127A (en) * 2011-12-28 2013-07-03 宇龙计算机通信科技(深圳)有限公司 Method and system for acquiring new events of multiple accounts
CN103491055A (en) * 2012-06-12 2014-01-01 中兴通讯股份有限公司 Method for synchronizing information among clients, clients and server
CN102801656A (en) * 2012-08-29 2012-11-28 腾讯科技(深圳)有限公司 State control and modification method, equipment and system for implementing instant messaging application
CN104092646A (en) * 2013-10-28 2014-10-08 腾讯科技(深圳)有限公司 Operation synchronization method and device
CN104836719A (en) * 2014-02-11 2015-08-12 阿里巴巴集团控股有限公司 Method and system for synchronizing instant communication unread messages

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243178A (en) * 2016-12-27 2018-07-03 武汉斗鱼网络科技有限公司 A kind of method and system for obtaining main broadcaster and paying close attention to state
CN107094265A (en) * 2017-03-29 2017-08-25 武汉斗鱼网络科技有限公司 A kind of method and system for optimizing live mobile end subscriber concern operation

Similar Documents

Publication Publication Date Title
CN104618226B (en) A kind of information processing method, client and server
CN103874992B (en) For integrated asset tracking, task manager and the virtual container of data center's management
CN103325060B (en) Method, the information processing system realized by information processing system
US20160300201A1 (en) Method, device and system for performing transactions
Davies et al. Beyond prototypes: Challenges in deploying ubiquitous systems
CN103299602B (en) Data syn-chronization
CN101356522B (en) Dynamically repositioning computer implementation system to workflow by end users
CN100478956C (en) Method and corresponding system for creating and obtaining report forms
CN204406058U (en) Child intelligence communication pays wrist-watch
US7450008B2 (en) Sending service data to an RFID tag while an attached computer system is powered off
CN102609813B (en) based on the master data management architecture of cloud
CN104751313A (en) Smart express item storing and taking method and system
CN105556497B (en) Find out that the order in flash memory is completed
CN101378581B (en) Auxiliary system and method for taxi operation
CN103164810A (en) Electronic invoice service system based on cloud computing technology and big data technology
CN106502769B (en) Distributed transaction processing method, apparatus and system
CN106254100A (en) A kind of data disaster tolerance methods, devices and systems
CN106233252A (en) For customizing the dynamic update contruction device of software
CN103312549B (en) A kind of office management method and device and system
US20150347305A1 (en) Method and apparatus for outputting log information
CN1832472B (en) Message exchange protocol extension negotiation
KR101735880B1 (en) Method and system for centralized reservation context management on multi-server reservation system
CN103827832B (en) System and method for persisting transaction records in a transactional middleware machine environment
CN104335521A (en) Data interface synchronization
CN103186466B (en) Information interactive testing device and method based on association automatic generating test case

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161214