WO2017140098A1 - Author following method, terminal, server and system - Google Patents

Author following method, terminal, server and system Download PDF

Info

Publication number
WO2017140098A1
WO2017140098A1 PCT/CN2016/097005 CN2016097005W WO2017140098A1 WO 2017140098 A1 WO2017140098 A1 WO 2017140098A1 CN 2016097005 W CN2016097005 W CN 2016097005W WO 2017140098 A1 WO2017140098 A1 WO 2017140098A1
Authority
WO
WIPO (PCT)
Prior art keywords
attention
identifier
author
status
terminal
Prior art date
Application number
PCT/CN2016/097005
Other languages
French (fr)
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 乐视控股(北京)有限公司
Publication of WO2017140098A1 publication Critical patent/WO2017140098A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • Embodiments of the present invention relate to the field of network communication related technologies, and in particular, to an author attention method, terminal, server, and system.
  • the social application has multiple attention interfaces, and the attention status of one or more authors is displayed on different attention interfaces.
  • the inventor has found that at least the following problems exist in the prior art: in the prior art, on the different attention interfaces, the attention state of the same author is not synchronized, so that the user updates the author on a attention interface. After the attention state, the other attention interfaces failed to be displayed simultaneously.
  • An embodiment of the present invention provides a method for authors to focus on, including:
  • the status monitor creation step includes: creating a attention status monitor in the attention status
  • the monitor registers a plurality of attention interfaces, each of the attention interfaces including at least one state of interest regarding the author identification;
  • the attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication
  • the attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
  • the response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
  • Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  • the method further includes: a user registration step and a relationship relationship push receiving step;
  • the user registration sending step includes: acquiring a terminal identifier for identifying the terminal, and transmitting, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier, The registration information is used by the server to register the user identifier and the terminal identifier;
  • the attention relationship push receiving step includes: receiving, by the server, the attention relationship uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and sending the pushed attention relationship to the Focus on the status monitor and perform the attention interface update step.
  • the attention interface updates the corresponding attention state, and specifically includes:
  • the attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
  • the author identifier included in the notification attention relationship is used as a notification author identifier, and the Knowing the status of the update concern included in the relationship of concern as the notification attention status;
  • Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
  • An embodiment of the present invention provides a method for authors to focus on, including:
  • Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
  • the step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
  • the author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the method further includes: a user registration receiving step and a attention relationship pushing step;
  • the user registration receiving step includes: receiving registration information including a registered user identifier and a terminal identifier, registering the user identifier and the terminal identifier, where the registration information is that the terminal responds to the concern including the registered user identifier. Sending a registration request, and obtaining a terminal identifier for identifying the terminal, and sending;
  • the attention relationship pushing step includes: pushing, to the terminal indicated by the registered terminal identifier, a attention relationship uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Focusing on the status monitor, the attention status monitor notifies each of the registered interfaces that have been registered to update the corresponding status of interest.
  • An embodiment of the present invention provides a terminal for an author's attention, including:
  • a status monitor creating module configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
  • the attention relationship obtaining module is configured to: in response to the clicked event of the attention button associated with the author identifier, acquire the user identifier, the attention status indicated by the attention button, and the author identifier associated with the attention button, and the attention button And indicating the attention status as the update attention status, and sending the interest relationship including the user identifier, the update attention status, and the author identifier to the server;
  • a response result obtaining module configured to: obtain a success response that is returned after the server updates the server attention status that is associated with the user identifier and the author identifier to the update attention status, and sends the attention relationship To the attention status monitor, the server attention status is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention status;
  • the attention interface update module is configured to: notify the attention status monitor to notify each of the registered attention interfaces to update the corresponding attention status.
  • the method further includes: a user registration module and a relationship relationship push receiving module;
  • the user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier
  • the registration information is used by the server to register the user identifier and the terminal identifier;
  • the attention relationship push receiving module is configured to: receive, by the server, a relationship of interest uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and send the pushed attention relationship to the
  • the attention state monitor executes a attention interface update module.
  • the attention interface updates the corresponding attention state, and specifically includes:
  • the attention relationship including the current user identifier of the attention interface is used as the notification attention relationship
  • the author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
  • Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
  • An embodiment of the present invention provides a server for author's attention, including:
  • the attention relationship receiving module is configured to: receive a attention relationship from the terminal, including a user identifier, an update attention status, and an author identifier, where the user identifier, the update attention status, and the author identifier are responded to by the terminal in association with the author identifier. Obtaining, by the click event of the attention button, the attention state indicated by the attention button as the update attention state;
  • the relationship result sending module is configured to: after updating the server attention status that is associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response is Sending, by the terminal, the attention relationship to a pre-created attention state monitor, and the attention status monitor notifies that the plurality of attention interfaces that have been registered in the attention state monitor update corresponding attention states, each The attention interface includes at least one state of interest regarding an author identification;
  • the author dynamic pushing module is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the method further includes: a user registration receiving module and a relationship relationship pushing module;
  • the user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier, where the registration information is that the terminal responds to include a registered user identifier. Pay attention to the push registration request, obtain the terminal identifier used to identify the terminal, and send it;
  • the attention relationship pushing module is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Concern status monitor, the attention status monitor notification
  • Each of the registered interfaces that have been registered updates the corresponding state of interest.
  • An embodiment of the present invention provides an author attention system, including: a terminal and a server;
  • the terminal includes:
  • a terminal status monitor creating module configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
  • the terminal attention relationship obtaining module is configured to: obtain a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and focus on The attention status indicated by the button is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
  • the terminal response result obtaining module is configured to: acquire a attention success response, and send the attention relationship to the attention state monitor;
  • the terminal attention interface update module is configured to: notify, by the attention state monitor, that each of the registered attention interfaces is updated with a corresponding attention state;
  • the server includes:
  • the server attention relationship receiving module is configured to: receive a attention relationship from the terminal including the user identifier, the update attention status, and the author identifier;
  • the server attention relationship result sending module is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal;
  • the server author dynamic push module is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the terminal further includes: an end user registration module and a terminal attention relationship push receiving module;
  • the terminal user registration sending module is configured to: respond to the concern including the registered user identifier Sending a registration request, acquiring a terminal identifier for identifying the terminal, and sending registration information including the registered user identifier and the terminal identifier to the server;
  • the terminal attention relationship push receiving module is configured to: receive the attention relationship pushed by the server, and send the pushed attention relationship to the attention state monitor, and execute the terminal attention interface update module;
  • the server further includes: a server user registration receiving module and a server attention relationship pushing module;
  • the server user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier;
  • the server is concerned with the relationship pushing module, and is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier.
  • An embodiment of the present invention further provides an author attention device, including:
  • the processor, the memory, and the communication interface complete communication with each other through the bus;
  • the communication interface is used for information transmission between a server and a terminal;
  • the processor is configured to invoke logic instructions in the memory to perform the following method
  • the status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
  • the attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication
  • the attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
  • the response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focus on the status monitor, the server is off
  • the note state is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention state;
  • Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  • the embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
  • the status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
  • the attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication
  • the attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
  • the response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
  • Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  • the embodiment of the invention further provides a storage medium for storing the above computer program.
  • An embodiment of the present invention further provides an author attention device, including:
  • the processor, the memory, and the communication interface complete communication with each other through the bus;
  • the communication interface is used for information transmission between a server and a terminal;
  • the processor is configured to invoke logic instructions in the memory to perform the following method
  • Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
  • the step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
  • the author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
  • Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
  • the step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
  • the author dynamically pushes the step of: controlling to push or stop pushing to the user identifier according to the server attention status associated with the user identifier and the author identifier
  • the author identifies the author dynamics of the association.
  • the embodiment of the invention further provides a storage medium for storing the above computer program.
  • FIG. 1 is a flowchart of a work of an author's attention method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of one of the attention interfaces according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of another attention interface according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another method for following the author's attention according to an embodiment of the present invention.
  • Figure 5 is a flow chart showing the operation of the preferred embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a terminal for an author's attention according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a terminal according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram of a server for authors' attention according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a server according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of an author's attention system according to an embodiment of the invention.
  • FIG. 11 is a logical structural diagram of an apparatus of interest of an author according to an embodiment of the present invention.
  • FIG. 12 is a logic structural diagram of an author's attention device according to an embodiment of the present invention.
  • FIG. 1 is a flow chart showing the working method of the author of the present invention, including:
  • Step S101 comprising: creating a attention state monitor, registering a plurality of attention interfaces in the attention state monitor, each of the attention interfaces including at least one attention state about an author identifier;
  • Step S102 comprising: acquiring a user identifier, a attention status indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and paying attention to the attention indicated by the button
  • the status is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
  • Step S103 comprising: acquiring a success response of the server returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to the attention status a monitor, the server attention status is used by the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
  • Step S104 comprising: the attention state monitor notifying each registered interface that has been registered to update a corresponding attention state.
  • the attention interface is an interface for paying attention to the author in the social function application, as shown in FIG. 2 is a schematic diagram of one of the attention interfaces, which is used to display the author dynamic of the author of interest on the screen 20, as shown in FIG.
  • the author's dynamic 23 is a text or picture published by the author of interest, where the author is identified as the author's network name 21 and the attention button 22 is displayed as being of interest or not.
  • FIG. 3 it is a schematic diagram of another attention interface.
  • the attention interface displays the author identifier 31 of the user's attention on the screen 30 in a list manner, and each author identifier 31 has a corresponding attention button 32 to display the attention state.
  • step S102 is triggered in response to the clicked event of the attention button.
  • the attention button as shown in FIGS. 2 and 3 is not in the initial state.
  • the user identifier of the current operation attention button, the attention state indicated by the attention button, and the author identifier associated with the attention button are acquired as the attention relationship and sent to the server, wherein the attention relationship refers to the attention status of the user identifier to the author identifier, and the user
  • the identifier can be a username
  • the author identifier can be the author's network name or the author's username.
  • the server returns a attention success response after updating the server attention status associated with the user identifier and the author identifier on the server to update the attention status, thereby triggering step S103, in step S103, sending the attention relationship to the attention status monitor, and in step In S104, the registered attention interface is updated.
  • the invention adopts the attention state monitor to monitor the state of interest, thereby realizing the synchronous update of the same author among multiple attention interfaces.
  • the method further includes: a user registration step and a relationship relationship push receiving step;
  • the user registration sending step includes: acquiring a terminal identifier for identifying the terminal, and transmitting, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier, The registration information is used by the server to register the user identifier and the terminal identifier;
  • the attention relationship push receiving step includes: receiving, by the server, the attention relationship uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and sending the pushed attention relationship to the Referring to the status monitor, step S104 is performed.
  • the user identifier and the terminal identifier are registered on the server, and when the other terminal uploads the attention relationship including the registered user identifier, the server pushes the attention relationship to the registered terminal identifier, and the terminal sends the notification to the attention state monitor, and the terminal completes Updates to the attention interface.
  • the same user updates the attention state on one terminal, and the attention state synchronization can be obtained on other terminals.
  • the terminal that is registered with the terminal of the server is preferably a mobile terminal, such as a smart phone or a tablet computer, and the other terminal may be a personal computer (PC) or a mobile terminal.
  • a mobile terminal such as a smart phone or a tablet computer
  • the other terminal may be a personal computer (PC) or a mobile terminal.
  • PC personal computer
  • the attention interface updates the corresponding attention state, and specifically includes:
  • the attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
  • the author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
  • Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
  • the attention frame of the embodiment only updates the attention relationship about the current user identification to avoid the update confusion.
  • FIG. 4 is a flow chart showing the working method of the author of the present invention, including:
  • Step S401 comprising: receiving, from the terminal, a relationship of interest including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention button associated with the author identifier. Obtained by the click event, the attention state indicated by the attention button is used as the update attention state;
  • Step S402 After updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response is used for the terminal. Transmitting the concern relationship to a pre-created attention state monitor, and the attention status monitor notifies that a plurality of attention interfaces registered in the attention state monitor update corresponding attention states, each of the attention interfaces Include at least one state of interest regarding the author's identity;
  • Step S403 comprising: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • step S401 When the server receives the attention relationship, the step S401 is triggered, and in step S402, the server attention status associated with the user identifier and the author identifier is updated. If the server attention status is already concerned, step S403 pushes the author dynamic, and if the server attention status is not attention, step S403 stops pushing the author dynamic.
  • the method further includes: a user registration receiving step and a attention relationship pushing step suddenly
  • the user registration receiving step includes: receiving registration information including a registered user identifier and a terminal identifier, registering the user identifier and the terminal identifier, where the registration information is that the terminal responds to the concern including the registered user identifier. Sending a registration request, and obtaining a terminal identifier for identifying the terminal, and sending;
  • the attention relationship pushing step includes: pushing, to the terminal indicated by the registered terminal identifier, a attention relationship uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Focusing on the status monitor, the attention status monitor notifies each of the registered interfaces that have been registered to update the corresponding status of interest.
  • the user identifier and the terminal identifier are registered on the server, and when the other terminal uploads the attention relationship including the registered user identifier, the server pushes the attention relationship to the registered terminal identifier, and the terminal sends the notification to the attention state monitor, and the terminal completes Updates to the attention interface.
  • the same user updates the attention state on one terminal, and the attention state synchronization can be obtained on other terminals.
  • FIG. 5 is a flow chart showing the operation of the preferred embodiment of the present invention, wherein the application is a wallpaper application, including:
  • Step S501 when the user clicks a certain attention button in the wallpaper application, the ID of the person who wants to pay attention, that is, the author identifier, together with the attention state and the user identifier that have been paid attention to, is sent to the server when receiving the server. After paying attention to the successful response, notify FollowStateMonitor of the result of the attention;
  • Step S502 when the user clicks a certain cancel button in the wallpaper application, the ID of the attention, that is, the author identifier, is sent to the server together with the attention status and the user identifier that are not concerned at this time, and the server is successfully cancelled. After the response, the result of the cancellation is notified to FollowStateMonitor;
  • Step S503 when the state of interest changes, the FollowStateMonitor notifies each of the attention states of the interface state of interest to display the attention state listener.onFollowStateChange(id, state);
  • Step S504 when the wallpaper is started, register the push service to receive the push from the server.
  • the information coming in when the user's attention status is changed in the non-currently held terminal, the server notifies the current terminal of the change information, currently holds the terminal parsing change message, parses which author the user pays attention to or cancels, and notifies the change information to FollowStateMonitor ;
  • Step S505 when the user enters an interface displaying the attention state, the attention state is monitored on the interface, so that when the user attention state changes, the interface is updated, and the latest attention state is displayed, when the FollowStateMonitor receives a new attention state change.
  • the push listener is registered when the mobile phone system is started.
  • the server knows that some network request is made when another terminal requests attention or cancels attention to an author.
  • the author's state of interest has changed, and the server pushes the change information to the user's current handheld phone via push.
  • the application receives the changed information through the onMessage method of PushMessageProcessService, and then resolves the changed author and the latest attention state through ThemeStateParser, and calls the onFollowStateChanged method of FollowStateMonitor to notify followStateMonitor that the user's attention status changes.
  • the focus state change listener OnFollowStateChangedListener is registered by the addListener method of FollowStateMonitor.
  • the followStateMonitor notifies the attention state of each interface that has the attention state. listener.onFollowStateChange (id, state).
  • FIG. 6 is a structural block diagram of a terminal for an author's attention according to the present invention, including:
  • the status monitor creating module 601 is configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
  • the attention relationship obtaining module 602 is configured to: in response to the clicked event of the attention button associated with the author identifier, acquire the user identifier, the attention status indicated by the attention button, and the author identifier associated with the attention button, and The attention status indicated by the button is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
  • the response result obtaining module 603 is configured to: obtain a success response that is returned after the server updates the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, and the attention relationship is Sending to the attention status monitor, the server attention status is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention status;
  • the attention interface update module 604 is configured to: notify the attention status monitor to notify each of the registered attention interfaces to update the corresponding attention status.
  • the method further includes: a user registration module and a relationship relationship push receiving module;
  • the user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier
  • the registration information is used by the server to register the user identifier and the terminal identifier;
  • the attention relationship push receiving module is configured to: receive, by the server, a relationship of interest uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and send the pushed attention relationship to the
  • the attention state monitor executes a attention interface update module.
  • the attention interface updates the corresponding attention state, and specifically includes:
  • the attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
  • the author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
  • Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
  • FIG. 7 is a structural block diagram of a terminal according to the present invention, which mainly includes a processor 701, a memory 702, a communication component 703, and the like.
  • the terminal of the present invention is preferably a mobile terminal such as a smartphone.
  • the specific code in which the foregoing method is stored in the memory 702 is specifically executed by the processor 701, and the communication component 703 communicates with the server.
  • FIG. 8 is a structural block diagram of a server for authors of the present invention, including:
  • the attention relationship receiving module 801 is configured to: receive a attention relationship from the terminal, including a user identifier, an update attention status, and an author identifier, where the user identifier, the update attention status, and the author identifier are associated with the author identifier by the terminal. Obtained by the click event of the attention button, the attention state indicated by the attention button as the update attention state;
  • the relationship result sending module 802 is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response Sending, by the terminal, the attention relationship to a pre-created attention state monitor, and the attention status monitor notifies that the plurality of attention interfaces that have been registered in the attention state monitor update corresponding attention states, each The attention interface includes at least one state of interest regarding the author identification;
  • the author dynamic push module 803 is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the method further includes: a user registration receiving module and a relationship relationship pushing module;
  • the user registration receiving module is configured to: receive the registered user identifier and the terminal identifier
  • the registration information is registered for the user identifier and the terminal identifier, and the registration information is sent by the terminal in response to the attention push registration request including the registered user identifier, and the terminal identifier for identifying the terminal is sent;
  • the attention relationship pushing module is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal.
  • the attention status monitor notifies that each of the registered interfaces that have been registered updates the corresponding attention status.
  • FIG. 9 is a structural block diagram of a server according to the present invention, which mainly includes a processor 901, a memory 902, a communication component 903, and the like.
  • the specific code of the foregoing method is stored in the memory 902, and is specifically executed by the processor 901, and the communication component 903 communicates with the terminal.
  • FIG. 10 is a structural block diagram of an author's attention system according to the present invention, including: a terminal 1010 and a server 1020;
  • the terminal 1010 includes:
  • the terminal status monitor creating module 1011 is configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
  • the terminal attention relationship obtaining module 1012 is configured to: obtain a user identifier, a attention status indicated by the attention button, and an author identifier associated with the attention button, in response to the clicked event of the attention button associated with the author identifier, Focusing on the attention status indicated by the button as an update attention status, and transmitting the attention relationship including the user identifier, the update attention status, and the author identifier to the server;
  • the terminal response result obtaining module 1013 is configured to: obtain a attention success response, and send the attention relationship to the attention state monitor;
  • the terminal attention interface update module 1014 is configured to: notify the attention state monitor to notify each of the registered attention interfaces to update the corresponding attention state;
  • the server 1020 includes:
  • the server attention relationship receiving module 1021 is configured to: receive the user identifier from the terminal, Update the state of interest and the concerns of the author's identity;
  • the server attention relationship result sending module 1022 is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal;
  • the server author dynamic pushing module 1023 is configured to: according to the server attention status associated with the user identifier and the author identifier, control to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the terminal further includes: an end user registration module and a terminal attention relationship push receiving module;
  • the terminal user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send a registration including the registered user identifier and the terminal identifier to the server, in response to the attention push registration request including the registered user identifier information;
  • the terminal attention relationship push receiving module is configured to: receive the attention relationship pushed by the server, and send the pushed attention relationship to the attention state monitor, and execute the terminal attention interface update module;
  • the server further includes: a server user registration receiving module and a server attention relationship pushing module;
  • the server user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier;
  • the server is concerned with the relationship pushing module, and is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier.
  • FIG. 11 shows an embodiment of the present invention further provides an author attention device, including:
  • processor 1101 a processor 1101, a memory 1102, a communication interface 1103, and a bus 1104;
  • the processor 1101, the memory 1102, and the communication interface 1103 complete communication with each other through the bus 1104;
  • the communication interface 1103 is used for information transmission between a server and a terminal;
  • the processor 1101 is configured to invoke logic instructions in the memory to perform the following method;
  • the status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
  • the attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication
  • the attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
  • the response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
  • Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  • the embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
  • the status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
  • the attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication
  • the attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
  • the response result obtaining step includes: obtaining the server to be identified with the user and the The author identifies a common concern server update status update to the attention success response returned after the update attention status, and sends the attention relationship to the attention status monitor, the server attention status is used by the server according to the server attention
  • the status pushes or stops pushing the author dynamic associated with the author identification to the user identification;
  • Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  • the embodiment of the invention further provides a storage medium for storing the above computer program.
  • FIG. 12 shows an embodiment of the present invention further provides an author attention device, including:
  • processor 1201 a processor 1201, a memory 1202, a communication interface 1203, and a bus 1204;
  • the processor 1201, the memory 1202, and the communication interface 1203 complete communication with each other through the bus 1204;
  • the communication interface 1203 is used for information transmission between a server and a terminal;
  • the processor 1201 is configured to invoke logic instructions in the memory to perform the following method
  • Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
  • the step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
  • the author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
  • Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
  • the step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
  • the author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  • the embodiment of the invention further provides a storage medium for storing the above computer program.
  • the embodiments of the vehicle platform and the intelligent transportation system described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be Physical units can be located in one place or distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • a computer readable storage medium such as a ROM/RAM, a magnetic disk, an optical disk, etc.
  • a computer device which may be a personal computer, server, or network device, etc.

Abstract

An author following method, terminal, server and system. The method comprises: creating a following state monitor, and registering a plurality of following interfaces at the following state monitor (S101); in response to a clicked event of a follow button associated with an author identifier, acquiring a user identifier, a following state indicated by the follow button and the author identifier associated with the follow button as a following relationship to be sent to a server (S102); acquiring a following success response returned by the server, and sending the following relationship to the following state monitor (S103); and the following state monitor notifying each of the registered following interfaces to update the corresponding following state (S104). By providing a following state monitor in a terminal, and registering a plurality of following interfaces at the following state monitor, when any following state is changed, a synchronous update could be performed in all the registered following interfaces, thereby realizing synchronous updating of the plurality of following interfaces for the same author.

Description

一种作者关注方法、终端、服务器和系统An author focuses on methods, terminals, servers, and systems
交叉引用cross reference
本申请引用于2016年2月19日提交的专利名称为“一种行作者关注方法、终端、服务器和系统”的第2016100949186号中国专利申请,其通过引用被全部并入本申请。The present application is hereby incorporated by reference in its entirety in its entirety in its entirety in its entirety in the the the the the the the the the the the the
技术领域Technical field
本发明实施例涉及网络通信相关技术领域,特别是一种作者关注方法、终端、服务器和系统。Embodiments of the present invention relate to the field of network communication related technologies, and in particular, to an author attention method, terminal, server, and system.
背景技术Background technique
现有的社交应用,均设有作者关注功能,用户如果对某个作者感兴趣,则可以点击该作者的关注按钮,对其进行关注。用户如果对该作者不再感兴趣,则可以再次点击该作者的关注按钮,对其取消关注。Existing social applications have author attention functions. If users are interested in an author, they can click on the author's attention button to pay attention to them. If the user is no longer interested in the author, he can click on the author's attention button again to unfollow it.
当开始对作者进行关注时,该作者的所有作者动态,均会向用户推送,使得用户能够时刻关注该作者的动态。When the author begins to pay attention, all the author's author dynamics will be pushed to the user, so that the user can always pay attention to the author's dynamics.
然而,社交应用存在多个关注界面,在不同的关注界面上均会显示关于一个或多个作者的关注状态。在实现本申请过程中,发明人发现现有技术至少存在如下问题:现有技术在不同的关注界面上,对相同作者的关注状态没有实现同步显示,使得用户在一个关注界面更新了对某作者的关注状态后,在其他关注界面未能同步显示。However, the social application has multiple attention interfaces, and the attention status of one or more authors is displayed on different attention interfaces. In the process of implementing the present application, the inventor has found that at least the following problems exist in the prior art: in the prior art, on the different attention interfaces, the attention state of the same author is not synchronized, so that the user updates the author on a attention interface. After the attention state, the other attention interfaces failed to be displayed simultaneously.
发明内容Summary of the invention
基于此,有必要针对现有技术未能实现相同作者在多个关注界面间的同步显示,提供一种作者关注方法、终端、服务器和系统。Based on this, it is necessary to provide an author attention method, terminal, server and system for the prior art to fail to realize the synchronous display of the same author among multiple attention interfaces.
本发明实施例提供一种作者关注方法,包括:An embodiment of the present invention provides a method for authors to focus on, including:
状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态 监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor in the attention status The monitor registers a plurality of attention interfaces, each of the attention interfaces including at least one state of interest regarding the author identification;
关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
进一步的,还包括:用户注册步骤和关注关系推送接收步骤;Further, the method further includes: a user registration step and a relationship relationship push receiving step;
所述用户注册发送步骤,包括:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息,所述注册信息用于所述服务器为所述用户标识和所述终端标识注册;The user registration sending step includes: acquiring a terminal identifier for identifying the terminal, and transmitting, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier, The registration information is used by the server to register the user identifier and the terminal identifier;
所述关注关系推送接收步骤,包括:接收所述服务器根据已注册的所述终端标识所推送的由其他终端上传且包括所述注册用户标识的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行关注界面更新步骤。The attention relationship push receiving step includes: receiving, by the server, the attention relationship uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and sending the pushed attention relationship to the Focus on the status monitor and perform the attention interface update step.
更进一步的,所述关注界面更新相应的关注状态,具体包括:Further, the attention interface updates the corresponding attention state, and specifically includes:
接收到包括所述关注关系的通知;Receiving a notification including the attention relationship;
将所述通知中包括关注界面当前用户标识的关注关系作为通知关注关系;The attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
将所述通知关注关系所包括的作者标识作为通知作者标识,将所述通 知关注关系所包括的更新关注状态作为通知关注状态;The author identifier included in the notification attention relationship is used as a notification author identifier, and the Knowing the status of the update concern included in the relationship of concern as the notification attention status;
在所述关注界面中更新关于所述通知作者标识的关注状态为所述通知关注状态。Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
本发明实施例提供一种作者关注方法,包括:An embodiment of the present invention provides a method for authors to focus on, including:
关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
进一步的,还包括:用户注册接收步骤和关注关系推送步骤;Further, the method further includes: a user registration receiving step and a attention relationship pushing step;
所述用户注册接收步骤,包括:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册,所述注册信息为所述终端响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识后发送;The user registration receiving step includes: receiving registration information including a registered user identifier and a terminal identifier, registering the user identifier and the terminal identifier, where the registration information is that the terminal responds to the concern including the registered user identifier. Sending a registration request, and obtaining a terminal identifier for identifying the terminal, and sending;
所述关注关系推送步骤,包括:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系,所推送的关注关系用于所述终端发送到所述关注状态监控器,所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。 The attention relationship pushing step includes: pushing, to the terminal indicated by the registered terminal identifier, a attention relationship uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Focusing on the status monitor, the attention status monitor notifies each of the registered interfaces that have been registered to update the corresponding status of interest.
本发明实施例提供一种用于作者关注的终端,包括:An embodiment of the present invention provides a terminal for an author's attention, including:
状态监控器创建模块,用于:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;a status monitor creating module, configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
关注关系获取模块,用于:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining module is configured to: in response to the clicked event of the attention button associated with the author identifier, acquire the user identifier, the attention status indicated by the attention button, and the author identifier associated with the attention button, and the attention button And indicating the attention status as the update attention status, and sending the interest relationship including the user identifier, the update attention status, and the author identifier to the server;
响应结果获取模块,用于:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;a response result obtaining module, configured to: obtain a success response that is returned after the server updates the server attention status that is associated with the user identifier and the author identifier to the update attention status, and sends the attention relationship To the attention status monitor, the server attention status is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention status;
关注界面更新模块,用于:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention interface update module is configured to: notify the attention status monitor to notify each of the registered attention interfaces to update the corresponding attention status.
进一步的,还包括:用户注册模块和关注关系推送接收模块;Further, the method further includes: a user registration module and a relationship relationship push receiving module;
所述用户注册发送模块,用于:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息,所述注册信息用于所述服务器为所述用户标识和所述终端标识注册;The user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier The registration information is used by the server to register the user identifier and the terminal identifier;
所述关注关系推送接收模块,用于:接收所述服务器根据已注册的所述终端标识所推送的由其他终端上传且包括所述注册用户标识的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行关注界面更新模块。The attention relationship push receiving module is configured to: receive, by the server, a relationship of interest uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and send the pushed attention relationship to the The attention state monitor executes a attention interface update module.
更进一步的,所述关注界面更新相应的关注状态,具体包括:Further, the attention interface updates the corresponding attention state, and specifically includes:
接收到包括所述关注关系的通知;Receiving a notification including the attention relationship;
将所述通知中包括关注界面当前用户标识的关注关系作为通知关注 关系;The attention relationship including the current user identifier of the attention interface is used as the notification attention relationship;
将所述通知关注关系所包括的作者标识作为通知作者标识,将所述通知关注关系所包括的更新关注状态作为通知关注状态;The author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
在所述关注界面中更新关于所述通知作者标识的关注状态为所述通知关注状态。Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
本发明实施例提供一种用于作者关注的服务器,包括:An embodiment of the present invention provides a server for author's attention, including:
关注关系接收模块,用于:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;The attention relationship receiving module is configured to: receive a attention relationship from the terminal, including a user identifier, an update attention status, and an author identifier, where the user identifier, the update attention status, and the author identifier are responded to by the terminal in association with the author identifier. Obtaining, by the click event of the attention button, the attention state indicated by the attention button as the update attention state;
关注关系结果发送模块,用于:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The relationship result sending module is configured to: after updating the server attention status that is associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response is Sending, by the terminal, the attention relationship to a pre-created attention state monitor, and the attention status monitor notifies that the plurality of attention interfaces that have been registered in the attention state monitor update corresponding attention states, each The attention interface includes at least one state of interest regarding an author identification;
作者动态推送模块,用于:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamic pushing module is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
进一步的,还包括:用户注册接收模块和关注关系推送模块;Further, the method further includes: a user registration receiving module and a relationship relationship pushing module;
所述用户注册接收模块,用于:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册,所述注册信息为所述终端响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识后发送;The user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier, where the registration information is that the terminal responds to include a registered user identifier. Pay attention to the push registration request, obtain the terminal identifier used to identify the terminal, and send it;
所述关注关系推送模块,用于:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系,所推送的关注关系用于所述终端发送到所述关注状态监控器,所述关注状态监控器通知 已注册的每个所述关注界面更新相应的关注状态。The attention relationship pushing module is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Concern status monitor, the attention status monitor notification Each of the registered interfaces that have been registered updates the corresponding state of interest.
本发明实施例提供一种作者关注系统,包括:终端和服务器;An embodiment of the present invention provides an author attention system, including: a terminal and a server;
所述终端,包括:The terminal includes:
终端状态监控器创建模块,用于:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;a terminal status monitor creating module, configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
终端关注关系获取模块,用于:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The terminal attention relationship obtaining module is configured to: obtain a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and focus on The attention status indicated by the button is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
终端响应结果获取模块,用于:获取关注成功响应,将所述关注关系发送到关注状态监控器;The terminal response result obtaining module is configured to: acquire a attention success response, and send the attention relationship to the attention state monitor;
终端关注界面更新模块,用于:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态;The terminal attention interface update module is configured to: notify, by the attention state monitor, that each of the registered attention interfaces is updated with a corresponding attention state;
所述服务器,包括:The server includes:
服务器关注关系接收模块,用于:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系;The server attention relationship receiving module is configured to: receive a attention relationship from the terminal including the user identifier, the update attention status, and the author identifier;
服务器关注关系结果发送模块,用于:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应;The server attention relationship result sending module is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal;
服务器作者动态推送模块,用于:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The server author dynamic push module is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
进一步的:further:
所述终端还包括:终端用户注册模块和终端关注关系推送接收模块;The terminal further includes: an end user registration module and a terminal attention relationship push receiving module;
所述终端用户注册发送模块,用于:响应于包括注册用户标识的关注 推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息;The terminal user registration sending module is configured to: respond to the concern including the registered user identifier Sending a registration request, acquiring a terminal identifier for identifying the terminal, and sending registration information including the registered user identifier and the terminal identifier to the server;
所述终端关注关系推送接收模块,用于:接收所述服务器所推送的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行终端关注界面更新模块;The terminal attention relationship push receiving module is configured to: receive the attention relationship pushed by the server, and send the pushed attention relationship to the attention state monitor, and execute the terminal attention interface update module;
所述服务器还包括:服务器用户注册接收模块和服务器关注关系推送模块;The server further includes: a server user registration receiving module and a server attention relationship pushing module;
所述服务器用户注册接收模块,用于:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册;The server user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier;
所述服务器关注关系推送模块,用于:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系。The server is concerned with the relationship pushing module, and is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier.
本发明实施例还提供一种作者关注装置,包括:An embodiment of the present invention further provides an author attention device, including:
处理器、存储器、通信接口和总线;其中,a processor, a memory, a communication interface, and a bus; wherein
所述处理器、存储器、通信接口通过所述总线完成相互间的通信;The processor, the memory, and the communication interface complete communication with each other through the bus;
所述通信接口用于服务器和终端之间的信息传输;The communication interface is used for information transmission between a server and a terminal;
所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;The processor is configured to invoke logic instructions in the memory to perform the following method;
状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关 注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focus on the status monitor, the server is off The note state is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention state;
关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
本发明实施例还提供一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:The embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
本发明实施例还提供一种存储介质,用于存储上述的计算机程序。The embodiment of the invention further provides a storage medium for storing the above computer program.
本发明实施例还提供一种作者关注装置,包括:An embodiment of the present invention further provides an author attention device, including:
处理器、存储器、通信接口和总线;其中,a processor, a memory, a communication interface, and a bus; wherein
所述处理器、存储器、通信接口通过所述总线完成相互间的通信;The processor, the memory, and the communication interface complete communication with each other through the bus;
所述通信接口用于服务器和终端之间的信息传输; The communication interface is used for information transmission between a server and a terminal;
所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;The processor is configured to invoke logic instructions in the memory to perform the following method;
关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
本发明实施例还提供一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:The embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述 作者标识关联的作者动态。The author dynamically pushes the step of: controlling to push or stop pushing to the user identifier according to the server attention status associated with the user identifier and the author identifier The author identifies the author dynamics of the association.
本发明实施例还提供一种存储介质,用于存储上述的计算机程序。The embodiment of the invention further provides a storage medium for storing the above computer program.
本发明通过在终端设置关注状态监控器,并将多个关注界面在关注状态监控器注册,则当任意的关注状态发生变化时,会在所有已注册的关注界面中进行同步更新,实现相同作者在多个关注界面间的同步更新。By setting the attention state monitor in the terminal and registering the plurality of attention interfaces in the attention state monitor, when any of the attention states changes, the synchronous update is performed in all the registered attention interfaces, and the same author is realized. Synchronous updates between multiple attention interfaces.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明一实施例所述一种作者关注方法的工作流程图;1 is a flowchart of a work of an author's attention method according to an embodiment of the present invention;
图2为本发明一实施例其中一个关注界面的示意图;2 is a schematic diagram of one of the attention interfaces according to an embodiment of the present invention;
图3为本发明一实施例另一个关注界面的示意图;3 is a schematic diagram of another attention interface according to an embodiment of the present invention;
图4为本发明一实施例另一种作者关注方法的工作流程图;FIG. 4 is a flowchart of another method for following the author's attention according to an embodiment of the present invention; FIG.
图5为本发明最佳实施例的工作流程图;Figure 5 is a flow chart showing the operation of the preferred embodiment of the present invention;
图6为本发明一实施例所述一种用于作者关注的终端的结构模块图;FIG. 6 is a structural block diagram of a terminal for an author's attention according to an embodiment of the present invention; FIG.
图7为本发明一实施例所述终端的结构框图;FIG. 7 is a structural block diagram of a terminal according to an embodiment of the present invention;
图8为本发明一实施例所述一种用于作者关注的服务器的结构模块图;FIG. 8 is a structural block diagram of a server for authors' attention according to an embodiment of the present invention; FIG.
图9为本发明一实施例所述服务器的结构框图;FIG. 9 is a structural block diagram of a server according to an embodiment of the present invention; FIG.
图10为本发明一实施例所述一种作者关注系统的结构模块图。FIG. 10 is a structural block diagram of an author's attention system according to an embodiment of the invention.
图11为本发明一实施例所述一种作者关注装置的逻辑结构图;FIG. 11 is a logical structural diagram of an apparatus of interest of an author according to an embodiment of the present invention; FIG.
图12为本发明一实施例所述一种作者关注装置的逻辑结构图。FIG. 12 is a logic structural diagram of an author's attention device according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明实 施例中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objects, technical solutions and advantages of the present invention more clear, the following will be combined with the present invention. The technical solutions in the present invention are clearly and completely described in the accompanying drawings, and it is obvious that the described embodiments are a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图1所示为本发明一种作者关注方法的工作流程图,包括:FIG. 1 is a flow chart showing the working method of the author of the present invention, including:
步骤S101,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;Step S101, comprising: creating a attention state monitor, registering a plurality of attention interfaces in the attention state monitor, each of the attention interfaces including at least one attention state about an author identifier;
步骤S102,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;Step S102, comprising: acquiring a user identifier, a attention status indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and paying attention to the attention indicated by the button The status is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
步骤S103,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;Step S103, comprising: acquiring a success response of the server returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to the attention status a monitor, the server attention status is used by the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
步骤S104,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Step S104, comprising: the attention state monitor notifying each registered interface that has been registered to update a corresponding attention state.
关注界面是具有社交功能的应用中用于关注作者的界面,如图2所示为其中一个关注界面的示意图,该关注界面用于在屏幕20显示所关注作者的作者动态,如图2所示的作者动态23为所关注作者所发表的文字或图片,其中作者标识为该作者的网络名字21,而关注按钮22则显示关注状态为已关注或者未关注。如图3所述为另一个关注界面的示意图,该关注界面在屏幕30采用列表方式显示用户所关注的作者标识31,每个作者标识31后有一个对应的关注按钮32以显示关注状态。The attention interface is an interface for paying attention to the author in the social function application, as shown in FIG. 2 is a schematic diagram of one of the attention interfaces, which is used to display the author dynamic of the author of interest on the screen 20, as shown in FIG. The author's dynamic 23 is a text or picture published by the author of interest, where the author is identified as the author's network name 21 and the attention button 22 is displayed as being of interest or not. As shown in FIG. 3, it is a schematic diagram of another attention interface. The attention interface displays the author identifier 31 of the user's attention on the screen 30 in a list manner, and each author identifier 31 has a corresponding attention button 32 to display the attention state.
当用户点击关注按钮,则步骤S102响应于关注按钮的被点击事件而触发,一般来说,如图2和图3所示的关注按钮在初始状态时为未关注, 点击一次的时候其关注状态为已关注,再次点击则为未关注。此时获取当前操作关注按钮的用户标识、关注按钮指示的关注状态以及关注按钮所关联的作者标识作为关注关系并发送到服务器,其中,关注关系指的是用户标识对作者标识的关注状态,用户标识可以为用户名,作者标识可以为作者的网络名或者作者的用户名。服务器对保存在服务器上与用户标识和作者标识共同关联的服务器关注状态更新为更新关注状态后返回关注成功响应,从而触发步骤S103,步骤S103中将关注关系发送到关注状态监控器,并在步骤S104中通知注册的关注界面进行更新。When the user clicks the attention button, step S102 is triggered in response to the clicked event of the attention button. Generally, the attention button as shown in FIGS. 2 and 3 is not in the initial state. When you click once, the attention status is already concerned, and clicking again is not paying attention. At this time, the user identifier of the current operation attention button, the attention state indicated by the attention button, and the author identifier associated with the attention button are acquired as the attention relationship and sent to the server, wherein the attention relationship refers to the attention status of the user identifier to the author identifier, and the user The identifier can be a username, and the author identifier can be the author's network name or the author's username. The server returns a attention success response after updating the server attention status associated with the user identifier and the author identifier on the server to update the attention status, thereby triggering step S103, in step S103, sending the attention relationship to the attention status monitor, and in step In S104, the registered attention interface is updated.
本发明由于采用了关注状态监控器对关注状态进行监控,从而实现相同作者在多个关注界面间的同步更新。The invention adopts the attention state monitor to monitor the state of interest, thereby realizing the synchronous update of the same author among multiple attention interfaces.
在其中一个实施例中,还包括:用户注册步骤和关注关系推送接收步骤;In one embodiment, the method further includes: a user registration step and a relationship relationship push receiving step;
所述用户注册发送步骤,包括:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息,所述注册信息用于所述服务器为所述用户标识和所述终端标识注册;The user registration sending step includes: acquiring a terminal identifier for identifying the terminal, and transmitting, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier, The registration information is used by the server to register the user identifier and the terminal identifier;
所述关注关系推送接收步骤,包括:接收所述服务器根据已注册的所述终端标识所推送的由其他终端上传且包括所述注册用户标识的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行步骤S104。The attention relationship push receiving step includes: receiving, by the server, the attention relationship uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and sending the pushed attention relationship to the Referring to the status monitor, step S104 is performed.
本实施例在服务器上注册用户标识以及终端标识,则当其他终端上传包括所述注册用户标识的关注关系时,服务器向注册的终端标识推送关注关系,终端接收后发送到关注状态监控器,完成对关注界面的更新。In this embodiment, the user identifier and the terminal identifier are registered on the server, and when the other terminal uploads the attention relationship including the registered user identifier, the server pushes the attention relationship to the registered terminal identifier, and the terminal sends the notification to the attention state monitor, and the terminal completes Updates to the attention interface.
本实施例使得同一用户在一个终端上更新关注状态,能够在其他终端上得到关注状态同步。In this embodiment, the same user updates the attention state on one terminal, and the attention state synchronization can be obtained on other terminals.
本实施例中,在服务器注册终端标识的终端优选为移动终端,例如智能手机或平板电脑等,其他终端可以为个人电脑(Personal Computer,PC)或者移动终端。In this embodiment, the terminal that is registered with the terminal of the server is preferably a mobile terminal, such as a smart phone or a tablet computer, and the other terminal may be a personal computer (PC) or a mobile terminal.
在其中一个实施例中,所述关注界面更新相应的关注状态,具体包括: In one embodiment, the attention interface updates the corresponding attention state, and specifically includes:
接收到包括所述关注关系的通知;Receiving a notification including the attention relationship;
将所述通知中包括关注界面当前用户标识的关注关系作为通知关注关系;The attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
将所述通知关注关系所包括的作者标识作为通知作者标识,将所述通知关注关系所包括的更新关注状态作为通知关注状态;The author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
在所述关注界面中更新关于所述通知作者标识的关注状态为所述通知关注状态。Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
由于关注状态监控器会通知所有的关注关系,因此本实施例关注界面仅更新关于当前用户标识的关注关系,避免更新混乱。Since the attention status monitor notifies all the attention relationships, the attention frame of the embodiment only updates the attention relationship about the current user identification to avoid the update confusion.
如图4所示为本发明一种作者关注方法的工作流程图,包括:FIG. 4 is a flow chart showing the working method of the author of the present invention, including:
步骤S401,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Step S401, comprising: receiving, from the terminal, a relationship of interest including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention button associated with the author identifier. Obtained by the click event, the attention state indicated by the attention button is used as the update attention state;
步骤S402,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;Step S402: After updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response is used for the terminal. Transmitting the concern relationship to a pre-created attention state monitor, and the attention status monitor notifies that a plurality of attention interfaces registered in the attention state monitor update corresponding attention states, each of the attention interfaces Include at least one state of interest regarding the author's identity;
步骤S403,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。Step S403, comprising: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
本实施例主要用于服务器,服务器接收到关注关系则触发步骤S401,并在步骤S402更新与用户标识和作者标识共同关联的服务器关注状态。如果服务器关注状态为已关注,则步骤S403推送作者动态,如果服务器关注状态为未关注,则步骤S403停止推送作者动态。This embodiment is mainly used for the server. When the server receives the attention relationship, the step S401 is triggered, and in step S402, the server attention status associated with the user identifier and the author identifier is updated. If the server attention status is already concerned, step S403 pushes the author dynamic, and if the server attention status is not attention, step S403 stops pushing the author dynamic.
在其中一个实施例中,还包括:用户注册接收步骤和关注关系推送步 骤;In one embodiment, the method further includes: a user registration receiving step and a attention relationship pushing step Suddenly
所述用户注册接收步骤,包括:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册,所述注册信息为所述终端响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识后发送;The user registration receiving step includes: receiving registration information including a registered user identifier and a terminal identifier, registering the user identifier and the terminal identifier, where the registration information is that the terminal responds to the concern including the registered user identifier. Sending a registration request, and obtaining a terminal identifier for identifying the terminal, and sending;
所述关注关系推送步骤,包括:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系,所推送的关注关系用于所述终端发送到所述关注状态监控器,所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention relationship pushing step includes: pushing, to the terminal indicated by the registered terminal identifier, a attention relationship uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Focusing on the status monitor, the attention status monitor notifies each of the registered interfaces that have been registered to update the corresponding status of interest.
本实施例在服务器上注册用户标识以及终端标识,则当其他终端上传包括所述注册用户标识的关注关系时,服务器向注册的终端标识推送关注关系,终端接收后发送到关注状态监控器,完成对关注界面的更新。In this embodiment, the user identifier and the terminal identifier are registered on the server, and when the other terminal uploads the attention relationship including the registered user identifier, the server pushes the attention relationship to the registered terminal identifier, and the terminal sends the notification to the attention state monitor, and the terminal completes Updates to the attention interface.
本实施例使得同一用户在一个终端上更新关注状态,能够在其他终端上得到关注状态同步。In this embodiment, the same user updates the attention state on one terminal, and the attention state synchronization can be obtained on other terminals.
如图5所示为本发明最佳实施例的工作流程图,其中应用为壁纸应用,包括:FIG. 5 is a flow chart showing the operation of the preferred embodiment of the present invention, wherein the application is a wallpaper application, including:
步骤S501,当用户在壁纸应用中点击某个关注按钮时,将想要关注的人的ID,即作者标识,连同此时为已关注的关注状态和用户标识发送到服务器,当收到服务器的关注成功响应后,将关注的结果通知FollowStateMonitor;Step S501, when the user clicks a certain attention button in the wallpaper application, the ID of the person who wants to pay attention, that is, the author identifier, together with the attention state and the user identifier that have been paid attention to, is sent to the server when receiving the server. After paying attention to the successful response, notify FollowStateMonitor of the result of the attention;
步骤S502,当用户在壁纸应用中点击某个取消关注按钮时,将取消关注的ID,即作者标识,连同此时为未关注的关注状态和用户标识发送到服务器,当收到服务器取消成功的响应后,将取消的结果通知FollowStateMonitor;Step S502, when the user clicks a certain cancel button in the wallpaper application, the ID of the attention, that is, the author identifier, is sent to the server together with the attention status and the user identifier that are not concerned at this time, and the server is successfully cancelled. After the response, the result of the cancellation is notified to FollowStateMonitor;
步骤S503,当关注状态发生变化时,FollowStateMonitor通知各个具有关注状态的界面更新显示的关注状态listener.onFollowStateChange(id,state);Step S503, when the state of interest changes, the FollowStateMonitor notifies each of the attention states of the interface state of interest to display the attention state listener.onFollowStateChange(id, state);
步骤S504,当壁纸启动时,注册push服务,以便收到从服务器推送 过来的信息,当用户的关注状态在非当前持有终端被改变时,服务器将变化信息通知当前终端,当前持有终端解析变化消息,解析出用户关注或者取消了哪个作者,将变化信息通知FollowStateMonitor;Step S504, when the wallpaper is started, register the push service to receive the push from the server. The information coming in, when the user's attention status is changed in the non-currently held terminal, the server notifies the current terminal of the change information, currently holds the terminal parsing change message, parses which author the user pays attention to or cancels, and notifies the change information to FollowStateMonitor ;
步骤S505,当用户进入某个显示关注状态的界面时,在这个界面监听关注状态,以便在用户关注状态发生变化时,更新界面,显示最新的关注状态,当FollowStateMonitor收到新的关注状态变化时,首先检查用户监听了哪些作者,当关注状态发生变化的作者,处在用户监听的作者范围内时,那么则检查新的状态,当变化的状态,不等于当前监听界面的状态时,则更新当前界面作者的关注状态。Step S505, when the user enters an interface displaying the attention state, the attention state is monitored on the interface, so that when the user attention state changes, the interface is updated, and the latest attention state is displayed, when the FollowStateMonitor receives a new attention state change. First, check which authors the user listens to. When the author who is concerned about the state changes is within the scope of the author of the user's monitoring, then the new state is checked. When the state of the change is not equal to the state of the current listening interface, it is updated. The current state of the interface author's attention.
具体来说,引起关注状态变化有两种方式:Specifically, there are two ways to cause a change in state of interest:
1应用内部用户点击关注按钮,即:1 The application internal user clicks the attention button, ie:
当应用内部状态发生变化时,也就是说当请求关注或取消关注返回成功结果时,调用系统的全局单例FollowStateMonitor的onFollowStateChanged方法;When the internal state of the application changes, that is, when the request attention or unfollow returns a successful result, the system's global singleton FollowStateMonitor's onFollowStateChanged method is called;
2其它终端改变关注状态,即:2 Other terminals change the state of interest, namely:
当通过其它终端改变关注状态时,在手机系统启动的时候注册push监听器,当关注状态发生变化时,由于另一个终端请求关注或者取消关注某个作者时会做网络请求,因此服务器知晓某个作者的关注状态发生了变化,服务器把变化信息通过push推送到用户当前手持手机。When the attention state is changed by other terminals, the push listener is registered when the mobile phone system is started. When the attention state changes, the server knows that some network request is made when another terminal requests attention or cancels attention to an author. The author's state of interest has changed, and the server pushes the change information to the user's current handheld phone via push.
应用通过PushMessageProcessService的onMessage方法收到变化的信息,然后通过ThemeStateParser解析出变化的作者及最新关注状态,调用FollowStateMonitor的onFollowStateChanged方法,通知FollowStateMonitor该用户关于该作者的关注状态发生变化。The application receives the changed information through the onMessage method of PushMessageProcessService, and then resolves the changed author and the latest attention state through ThemeStateParser, and calls the onFollowStateChanged method of FollowStateMonitor to notify FollowStateMonitor that the user's attention status changes.
所有具有关注状态的界面,由于需要同步关注状态,因此通过FollowStateMonitor的addListener方法注册关注状态变化监听器OnFollowStateChangedListener,当关注状态发生变化时,FollowStateMonitor通知各个具有关注状态的界面更新显示的关注状态listener.onFollowStateChange(id,state)。 All interfaces with a state of interest need to synchronize the state of interest. Therefore, the focus state change listener OnFollowStateChangedListener is registered by the addListener method of FollowStateMonitor. When the state of interest changes, the FollowStateMonitor notifies the attention state of each interface that has the attention state. listener.onFollowStateChange (id, state).
如图6所示为本发明一种用于作者关注的终端的结构模块图,包括:FIG. 6 is a structural block diagram of a terminal for an author's attention according to the present invention, including:
状态监控器创建模块601,用于:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creating module 601 is configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
关注关系获取模块602,用于:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining module 602 is configured to: in response to the clicked event of the attention button associated with the author identifier, acquire the user identifier, the attention status indicated by the attention button, and the author identifier associated with the attention button, and The attention status indicated by the button is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
响应结果获取模块603,用于:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining module 603 is configured to: obtain a success response that is returned after the server updates the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, and the attention relationship is Sending to the attention status monitor, the server attention status is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention status;
关注界面更新模块604,用于:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention interface update module 604 is configured to: notify the attention status monitor to notify each of the registered attention interfaces to update the corresponding attention status.
在其中一个实施例中,还包括:用户注册模块和关注关系推送接收模块;In one embodiment, the method further includes: a user registration module and a relationship relationship push receiving module;
所述用户注册发送模块,用于:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息,所述注册信息用于所述服务器为所述用户标识和所述终端标识注册;The user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier The registration information is used by the server to register the user identifier and the terminal identifier;
所述关注关系推送接收模块,用于:接收所述服务器根据已注册的所述终端标识所推送的由其他终端上传且包括所述注册用户标识的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行关注界面更新模块。The attention relationship push receiving module is configured to: receive, by the server, a relationship of interest uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and send the pushed attention relationship to the The attention state monitor executes a attention interface update module.
在其中一个实施例中,所述关注界面更新相应的关注状态,具体包括:In one embodiment, the attention interface updates the corresponding attention state, and specifically includes:
接收到包括所述关注关系的通知; Receiving a notification including the attention relationship;
将所述通知中包括关注界面当前用户标识的关注关系作为通知关注关系;The attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
将所述通知关注关系所包括的作者标识作为通知作者标识,将所述通知关注关系所包括的更新关注状态作为通知关注状态;The author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
在所述关注界面中更新关于所述通知作者标识的关注状态为所述通知关注状态。Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
如图7所示为本发明终端的结构框图,其主要包括:处理器701、存储器702及通信组件703等。一般来说,本发明的终端优选为智能手机等移动终端。FIG. 7 is a structural block diagram of a terminal according to the present invention, which mainly includes a processor 701, a memory 702, a communication component 703, and the like. Generally, the terminal of the present invention is preferably a mobile terminal such as a smartphone.
其中存储器702中存储前述方法的具体代码,由处理器701具体执行,通信组件703与服务器进行通信。The specific code in which the foregoing method is stored in the memory 702 is specifically executed by the processor 701, and the communication component 703 communicates with the server.
如图8所示为本发明一种用于作者关注的服务器的结构模块图,包括:FIG. 8 is a structural block diagram of a server for authors of the present invention, including:
关注关系接收模块801,用于:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;The attention relationship receiving module 801 is configured to: receive a attention relationship from the terminal, including a user identifier, an update attention status, and an author identifier, where the user identifier, the update attention status, and the author identifier are associated with the author identifier by the terminal. Obtained by the click event of the attention button, the attention state indicated by the attention button as the update attention state;
关注关系结果发送模块802,用于:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The relationship result sending module 802 is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response Sending, by the terminal, the attention relationship to a pre-created attention state monitor, and the attention status monitor notifies that the plurality of attention interfaces that have been registered in the attention state monitor update corresponding attention states, each The attention interface includes at least one state of interest regarding the author identification;
作者动态推送模块803,用于:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamic push module 803 is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
在其中一个实施例中,还包括:用户注册接收模块和关注关系推送模块;In one embodiment, the method further includes: a user registration receiving module and a relationship relationship pushing module;
所述用户注册接收模块,用于:接收到包括注册用户标识和终端标识 的注册信息,为所述用户标识和所述终端标识注册,所述注册信息为所述终端响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识后发送;The user registration receiving module is configured to: receive the registered user identifier and the terminal identifier The registration information is registered for the user identifier and the terminal identifier, and the registration information is sent by the terminal in response to the attention push registration request including the registered user identifier, and the terminal identifier for identifying the terminal is sent;
所述关注关系推送模块,用于:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系,所推送的关注关系用于所述终端发送到所述关注状态监控器,所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention relationship pushing module is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal The attention status monitor notifies that each of the registered interfaces that have been registered updates the corresponding attention status.
如图9所示为本发明服务器的结构框图,其主要包括:处理器901、存储器902及通信组件903等。FIG. 9 is a structural block diagram of a server according to the present invention, which mainly includes a processor 901, a memory 902, a communication component 903, and the like.
其中存储器902中存储前述方法的具体代码,由处理器901具体执行,通信组件903与终端进行通信。The specific code of the foregoing method is stored in the memory 902, and is specifically executed by the processor 901, and the communication component 903 communicates with the terminal.
如图10所示为本发明一种作者关注系统的结构模块图,包括:终端1010和服务器1020;FIG. 10 is a structural block diagram of an author's attention system according to the present invention, including: a terminal 1010 and a server 1020;
所述终端1010,包括:The terminal 1010 includes:
终端状态监控器创建模块1011,用于:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The terminal status monitor creating module 1011 is configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
终端关注关系获取模块1012,用于:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The terminal attention relationship obtaining module 1012 is configured to: obtain a user identifier, a attention status indicated by the attention button, and an author identifier associated with the attention button, in response to the clicked event of the attention button associated with the author identifier, Focusing on the attention status indicated by the button as an update attention status, and transmitting the attention relationship including the user identifier, the update attention status, and the author identifier to the server;
终端响应结果获取模块1013,用于:获取关注成功响应,将所述关注关系发送到关注状态监控器;The terminal response result obtaining module 1013 is configured to: obtain a attention success response, and send the attention relationship to the attention state monitor;
终端关注界面更新模块1014,用于:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态;The terminal attention interface update module 1014 is configured to: notify the attention state monitor to notify each of the registered attention interfaces to update the corresponding attention state;
所述服务器1020,包括:The server 1020 includes:
服务器关注关系接收模块1021,用于:接收来自终端的包括用户标识、 更新关注状态以及作者标识的关注关系;The server attention relationship receiving module 1021 is configured to: receive the user identifier from the terminal, Update the state of interest and the concerns of the author's identity;
服务器关注关系结果发送模块1022,用于:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应;The server attention relationship result sending module 1022 is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal;
服务器作者动态推送模块1023,用于:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The server author dynamic pushing module 1023 is configured to: according to the server attention status associated with the user identifier and the author identifier, control to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
在其中一个实施例中:In one of the embodiments:
所述终端还包括:终端用户注册模块和终端关注关系推送接收模块;The terminal further includes: an end user registration module and a terminal attention relationship push receiving module;
所述终端用户注册发送模块,用于:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息;The terminal user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send a registration including the registered user identifier and the terminal identifier to the server, in response to the attention push registration request including the registered user identifier information;
所述终端关注关系推送接收模块,用于:接收所述服务器所推送的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行终端关注界面更新模块;The terminal attention relationship push receiving module is configured to: receive the attention relationship pushed by the server, and send the pushed attention relationship to the attention state monitor, and execute the terminal attention interface update module;
所述服务器还包括:服务器用户注册接收模块和服务器关注关系推送模块;The server further includes: a server user registration receiving module and a server attention relationship pushing module;
所述服务器用户注册接收模块,用于:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册;The server user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier;
所述服务器关注关系推送模块,用于:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系。The server is concerned with the relationship pushing module, and is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier.
图11示出了本发明实施例还提供一种作者关注装置,包括:FIG. 11 shows an embodiment of the present invention further provides an author attention device, including:
处理器1101、存储器1102、通信接口1103和总线1104;其中,a processor 1101, a memory 1102, a communication interface 1103, and a bus 1104;
所述处理器1101、存储器1102、通信接口1103通过所述总线1104完成相互间的通信;The processor 1101, the memory 1102, and the communication interface 1103 complete communication with each other through the bus 1104;
所述通信接口1103用于服务器和终端之间的信息传输; The communication interface 1103 is used for information transmission between a server and a terminal;
所述处理器1101用于调用所述存储器中的逻辑指令,以执行如下方法;The processor 1101 is configured to invoke logic instructions in the memory to perform the following method;
状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
本发明实施例还提供一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:The embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述 作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: obtaining the server to be identified with the user and the The author identifies a common concern server update status update to the attention success response returned after the update attention status, and sends the attention relationship to the attention status monitor, the server attention status is used by the server according to the server attention The status pushes or stops pushing the author dynamic associated with the author identification to the user identification;
关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
本发明实施例还提供一种存储介质,用于存储上述的计算机程序。The embodiment of the invention further provides a storage medium for storing the above computer program.
图12示出了本发明实施例还提供一种作者关注装置,包括:FIG. 12 shows an embodiment of the present invention further provides an author attention device, including:
处理器1201、存储器1202、通信接口1203和总线1204;其中,a processor 1201, a memory 1202, a communication interface 1203, and a bus 1204; wherein
所述处理器1201、存储器1202、通信接口1203通过所述总线1204完成相互间的通信;The processor 1201, the memory 1202, and the communication interface 1203 complete communication with each other through the bus 1204;
所述通信接口1203用于服务器和终端之间的信息传输;The communication interface 1203 is used for information transmission between a server and a terminal;
所述处理器1201用于调用所述存储器中的逻辑指令,以执行如下方法;The processor 1201 is configured to invoke logic instructions in the memory to perform the following method;
关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。 The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
本发明实施例还提供一种计算机程序,包括程序代码,所述程序代码用于执行如下操作:The embodiment of the invention further provides a computer program, comprising program code, wherein the program code is used to perform the following operations:
关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
本发明实施例还提供一种存储介质,用于存储上述的计算机程序。The embodiment of the invention further provides a storage medium for storing the above computer program.
以上所描述的车载平台以及智能交通系统等实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The embodiments of the vehicle platform and the intelligent transportation system described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be Physical units can be located in one place or distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在 计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or in the form of software products, which can be stored in the software product. In a computer readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform various embodiments or embodiments. The methods described in these sections.
最后应说明的是:以上实施例仅用以说明本发明的实施例的技术方案,而非对其限制;尽管参照前述实施例对本发明的实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to explain the technical solutions of the embodiments of the present invention, and are not limited thereto; although the embodiments of the present invention are described in detail with reference to the foregoing embodiments, those skilled in the art It should be understood that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. The spirit and scope of the programme.

Claims (18)

  1. 一种作者关注方法,其特征在于,包括:An author's method of attention, characterized in that it comprises:
    状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
    关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
    响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
    关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  2. 根据权利要求1所述的作者关注方法,其特征在于,还包括:用户注册步骤和关注关系推送接收步骤;The author attention method according to claim 1, further comprising: a user registration step and a attention relationship push receiving step;
    所述用户注册发送步骤,包括:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息,所述注册信息用于所述服务器为所述用户标识和所述终端标识注册;The user registration sending step includes: acquiring a terminal identifier for identifying the terminal, and transmitting, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier, The registration information is used by the server to register the user identifier and the terminal identifier;
    所述关注关系推送接收步骤,包括:接收所述服务器根据已注册的所述终端标识所推送的由其他终端上传且包括所述注册用户标识的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行关注界面更新步骤。 The attention relationship push receiving step includes: receiving, by the server, the attention relationship uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and sending the pushed attention relationship to the Focus on the status monitor and perform the attention interface update step.
  3. 根据权利要求1-2任一项所述的作者关注方法,其特征在于,所述关注界面更新相应的关注状态,具体包括:The author attention method according to any one of claims 1-2, wherein the attention interface updates a corresponding attention state, and specifically includes:
    接收到包括所述关注关系的通知;Receiving a notification including the attention relationship;
    将所述通知中包括关注界面当前用户标识的关注关系作为通知关注关系;The attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
    将所述通知关注关系所包括的作者标识作为通知作者标识,将所述通知关注关系所包括的更新关注状态作为通知关注状态;The author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
    在所述关注界面中更新关于所述通知作者标识的关注状态为所述通知关注状态。Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
  4. 一种作者关注方法,其特征在于,包括:An author's method of attention, characterized in that it comprises:
    关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
    关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
    作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  5. 根据权利要求4所述的作者关注方法,其特征在于,还包括:用户注册接收步骤和关注关系推送步骤;The author attention method according to claim 4, further comprising: a user registration receiving step and a attention relationship pushing step;
    所述用户注册接收步骤,包括:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册,所述注册信息为所述 终端响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识后发送;The user registration receiving step includes: receiving registration information including a registered user identifier and a terminal identifier, registering the user identifier and the terminal identifier, and the registration information is the The terminal sends the terminal identifier for identifying the terminal, and then sends the response to the terminal, including the registered user identifier;
    所述关注关系推送步骤,包括:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系,所推送的关注关系用于所述终端发送到所述关注状态监控器,所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention relationship pushing step includes: pushing, to the terminal indicated by the registered terminal identifier, a attention relationship uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal Focusing on the status monitor, the attention status monitor notifies each of the registered interfaces that have been registered to update the corresponding status of interest.
  6. 一种用于作者关注的终端,其特征在于,包括:A terminal for author's attention, characterized in that it comprises:
    状态监控器创建模块,用于:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;a status monitor creating module, configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
    关注关系获取模块,用于:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining module is configured to: in response to the clicked event of the attention button associated with the author identifier, acquire the user identifier, the attention status indicated by the attention button, and the author identifier associated with the attention button, and the attention button And indicating the attention status as the update attention status, and sending the interest relationship including the user identifier, the update attention status, and the author identifier to the server;
    响应结果获取模块,用于:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;a response result obtaining module, configured to: obtain a success response that is returned after the server updates the server attention status that is associated with the user identifier and the author identifier to the update attention status, and sends the attention relationship To the attention status monitor, the server attention status is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention status;
    关注界面更新模块,用于:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention interface update module is configured to: notify the attention status monitor to notify each of the registered attention interfaces to update the corresponding attention status.
  7. 根据权利要求6所述的用于作者关注的终端,其特征在于,还包括:用户注册模块和关注关系推送接收模块;The terminal for author's attention according to claim 6, further comprising: a user registration module and a attention relationship push receiving module;
    所述用户注册发送模块,用于:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息,所述注册信息用于所述服务器为 所述用户标识和所述终端标识注册;The user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send, to the server, registration information including the registered user identifier and the terminal identifier, in response to the attention push registration request including the registered user identifier The registration information is used by the server Registering the user identifier and the terminal identifier;
    所述关注关系推送接收模块,用于:接收所述服务器根据已注册的所述终端标识所推送的由其他终端上传且包括所述注册用户标识的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行关注界面更新模块。The attention relationship push receiving module is configured to: receive, by the server, a relationship of interest uploaded by another terminal and including the registered user identifier, according to the registered terminal identifier, and send the pushed attention relationship to the The attention state monitor executes a attention interface update module.
  8. 根据权利要求6-7任一项所述的用于作者关注的终端,其特征在于,所述关注界面更新相应的关注状态,具体包括:The terminal for the author's attention according to any one of claims 6 to 7, wherein the attention interface updates the corresponding attention state, and specifically includes:
    接收到包括所述关注关系的通知;Receiving a notification including the attention relationship;
    将所述通知中包括关注界面当前用户标识的关注关系作为通知关注关系;The attention relationship including the current user identifier of the attention interface is included in the notification as a notification attention relationship;
    将所述通知关注关系所包括的作者标识作为通知作者标识,将所述通知关注关系所包括的更新关注状态作为通知关注状态;The author identifier included in the notification attention relationship is used as a notification author identifier, and the update attention state included in the notification attention relationship is used as a notification attention state;
    在所述关注界面中更新关于所述通知作者标识的关注状态为所述通知关注状态。Updating the attention status regarding the notification author identifier in the attention interface is the notification attention status.
  9. 一种用于作者关注的服务器,其特征在于,包括:A server for author's attention, characterized in that it comprises:
    关注关系接收模块,用于:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;The attention relationship receiving module is configured to: receive a attention relationship from the terminal, including a user identifier, an update attention status, and an author identifier, where the user identifier, the update attention status, and the author identifier are responded to by the terminal in association with the author identifier. Obtaining, by the click event of the attention button, the attention state indicated by the attention button as the update attention state;
    关注关系结果发送模块,用于:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The relationship result sending module is configured to: after updating the server attention status that is associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal, and the attention success response is Sending, by the terminal, the attention relationship to a pre-created attention state monitor, and the attention status monitor notifies that the plurality of attention interfaces that have been registered in the attention state monitor update corresponding attention states, each The attention interface includes at least one state of interest regarding an author identification;
    作者动态推送模块,用于:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述 作者标识关联的作者动态。An author dynamic pushing module, configured to: control push or stop pushing to the user identifier according to the server attention state commonly associated with the user identifier and the author identifier The author identifies the author dynamics of the association.
  10. 根据权利要求9所述的用于作者关注的服务器,其特征在于,还包括:用户注册接收模块和关注关系推送模块;The server for author's attention according to claim 9, further comprising: a user registration receiving module and a relationship relationship pushing module;
    所述用户注册接收模块,用于:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册,所述注册信息为所述终端响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识后发送;The user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier, where the registration information is that the terminal responds to include a registered user identifier. Pay attention to the push registration request, obtain the terminal identifier used to identify the terminal, and send it;
    所述关注关系推送模块,用于:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系,所推送的关注关系用于所述终端发送到所述关注状态监控器,所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。The attention relationship pushing module is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier, where the pushed attention relationship is used by the terminal to send to the terminal The attention status monitor notifies that each of the registered interfaces that have been registered updates the corresponding attention status.
  11. 一种作者关注系统,其特征在于,包括:终端和服务器;An author attention system, characterized in that it comprises: a terminal and a server;
    所述终端,包括:The terminal includes:
    终端状态监控器创建模块,用于:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;a terminal status monitor creating module, configured to: create a attention status monitor, register a plurality of attention interfaces in the attention status monitor, and each of the attention interfaces includes at least one attention status about an author identifier;
    终端关注关系获取模块,用于:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The terminal attention relationship obtaining module is configured to: obtain a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and focus on The attention status indicated by the button is used as an update attention status, and the attention relationship including the user identifier, the update attention status, and the author identifier is sent to the server;
    终端响应结果获取模块,用于:获取关注成功响应,将所述关注关系发送到关注状态监控器;The terminal response result obtaining module is configured to: acquire a attention success response, and send the attention relationship to the attention state monitor;
    终端关注界面更新模块,用于:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态;The terminal attention interface update module is configured to: notify, by the attention state monitor, that each of the registered attention interfaces is updated with a corresponding attention state;
    所述服务器,包括: The server includes:
    服务器关注关系接收模块,用于:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系;The server attention relationship receiving module is configured to: receive a attention relationship from the terminal including the user identifier, the update attention status, and the author identifier;
    服务器关注关系结果发送模块,用于:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应;The server attention relationship result sending module is configured to: after updating the server attention status that is commonly associated with the user identifier and the author identifier to the update attention status, return a attention success response to the terminal;
    服务器作者动态推送模块,用于:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The server author dynamic push module is configured to: control, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  12. 根据权利要求11所述的作者关注系统,其特征在于:The author's attention system according to claim 11, wherein:
    所述终端还包括:终端用户注册模块和终端关注关系推送接收模块;The terminal further includes: an end user registration module and a terminal attention relationship push receiving module;
    所述终端用户注册发送模块,用于:响应于包括注册用户标识的关注推送注册请求,获取用于标识终端的终端标识,向所述服务器发送包括所述注册用户标识和所述终端标识的注册信息;The terminal user registration sending module is configured to: obtain a terminal identifier for identifying the terminal, and send a registration including the registered user identifier and the terminal identifier to the server, in response to the attention push registration request including the registered user identifier information;
    所述终端关注关系推送接收模块,用于:接收所述服务器所推送的关注关系,并将所推送的关注关系发送到所述关注状态监控器,执行终端关注界面更新模块;The terminal attention relationship push receiving module is configured to: receive the attention relationship pushed by the server, and send the pushed attention relationship to the attention state monitor, and execute the terminal attention interface update module;
    所述服务器还包括:服务器用户注册接收模块和服务器关注关系推送模块;The server further includes: a server user registration receiving module and a server attention relationship pushing module;
    所述服务器用户注册接收模块,用于:接收到包括注册用户标识和终端标识的注册信息,为所述用户标识和所述终端标识注册;The server user registration receiving module is configured to: receive registration information including a registered user identifier and a terminal identifier, and register the user identifier and the terminal identifier;
    所述服务器关注关系推送模块,用于:向已注册的所述终端标识所指示的终端推送其他终端上传且包括所述注册用户标识的关注关系。The server is concerned with the relationship pushing module, and is configured to: push, to the terminal indicated by the registered terminal identifier, a relationship of interest uploaded by another terminal and including the registered user identifier.
  13. 一种作者关注装置,其特征在于,包括:An author attention device, comprising:
    处理器、存储器、通信接口和总线;其中,a processor, a memory, a communication interface, and a bus; wherein
    所述处理器、存储器、通信接口通过所述总线完成相互间的通信;The processor, the memory, and the communication interface complete communication with each other through the bus;
    所述通信接口用于服务器和终端之间的信息传输; The communication interface is used for information transmission between a server and a terminal;
    所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;The processor is configured to invoke logic instructions in the memory to perform the following method;
    状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
    关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
    响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focusing on a status monitor for the server to push or stop pushing an author dynamic associated with the author identifier to the user identifier according to the server attention status;
    关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  14. 一种计算机程序,其特征在于,包括程序代码,所述程序代码用于执行如下操作:A computer program comprising program code for performing the following operations:
    状态监控器创建步骤,包括:创建关注状态监控器,在所述关注状态监控器注册多个关注界面,每个所述关注界面包括至少一个关于作者标识的关注状态;The status monitor creation step includes: creating a attention status monitor, registering a plurality of attention interfaces at the attention status monitor, each of the attention interfaces including at least one attention status regarding the author identification;
    关注关系获取步骤,包括:响应于与所述作者标识关联的关注按钮的被点击事件,获取用户标识、所述关注按钮指示的关注状态以及所述关注按钮所关联的作者标识,将关注按钮指示的关注状态作为更新关注状态,将包括所述用户标识、所述更新关注状态以及所述作者标识的关注关系发送到服务器;The attention relationship obtaining step includes: acquiring a user identifier, a attention state indicated by the attention button, and an author identifier associated with the attention button in response to the clicked event of the attention button associated with the author identifier, and the attention button indication The attention status is sent to the server as an update attention status, including the user identifier, the update attention status, and the attention relationship of the author identifier;
    响应结果获取步骤,包括:获取所述服务器将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后所返回的关注成功响应,将所述关注关系发送到关注状态监控器,所述服务器关 注状态用于所述服务器根据所述服务器关注状态向所述用户标识推送或停止推送与所述作者标识关联的作者动态;The response result obtaining step includes: acquiring a attention success response returned by the server after the server attention status associated with the user identifier and the author identifier is updated to the update attention status, and sending the attention relationship to Focus on the status monitor, the server is off The note state is used by the server to push or stop pushing the author dynamic associated with the author identifier to the user identifier according to the server attention state;
    关注界面更新步骤,包括:所述关注状态监控器通知已注册的每个所述关注界面更新相应的关注状态。Paying attention to the interface update step includes: the attention state monitor notifying each registered interface that has been registered to update the corresponding attention state.
  15. 一种存储介质,其特征在于,用于存储上述权利要求14所述的计算机程序。A storage medium characterized by storing the computer program of claim 14.
  16. 一种作者关注装置,其特征在于,包括:An author attention device, comprising:
    处理器、存储器、通信接口和总线;其中,a processor, a memory, a communication interface, and a bus; wherein
    所述处理器、存储器、通信接口通过所述总线完成相互间的通信;The processor, the memory, and the communication interface complete communication with each other through the bus;
    所述通信接口用于服务器和终端之间的信息传输;The communication interface is used for information transmission between a server and a terminal;
    所述处理器用于调用所述存储器中的逻辑指令,以执行如下方法;The processor is configured to invoke logic instructions in the memory to perform the following method;
    关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including a user identifier, an update attention status, and an author identifier, wherein the user identifier, the update attention status, and the author identifier are responded by the terminal to the attention associated with the author identifier Obtained by the click event of the button, and the attention state indicated by the attention button is used as the update attention state;
    关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
    作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  17. 一种计算机程序,其特征在于,包括程序代码,所述程序代码用于执行如下操作:A computer program comprising program code for performing the following operations:
    关注关系接收步骤,包括:接收来自终端的包括用户标识、更新关注状态以及作者标识的关注关系,所述用户标识、更新关注状态以及作者标 识由所述终端响应于与所述作者标识关联的关注按钮的被点击事件所获取,所述关注按钮指示的关注状态作为所述更新关注状态;Paying attention to the relationship receiving step includes: receiving a attention relationship from the terminal including the user identifier, the update attention status, and the author identifier, the user identifier, the update attention status, and the author identifier Knowing that the terminal is acquired in response to a clicked event of a focus button associated with the author identifier, the attention state indicated by the attention button is the updated attention state;
    关注关系结果发送步骤,包括:将与所述用户标识和所述作者标识共同关联的服务器关注状态更新为所述更新关注状态后,向所述终端返回关注成功响应,所述关注成功响应用于所述终端将所述关注关系发送到预先创建的关注状态监控器,由所述关注状态监控器通知已经在所述关注状态监控器中注册的多个关注界面更新相应的关注状态,每个所述关注界面包括至少一个关于作者标识的关注状态;The step of transmitting the relationship result includes: after updating the server attention status jointly associated with the user identifier and the author identifier to the update attention status, returning a focus success response to the terminal, where the attention success response is used for Transmitting, by the terminal, the attention relationship to a pre-created attention status monitor, wherein the attention status monitor notifies that a plurality of attention interfaces that have been registered in the attention status monitor update a corresponding attention status, where each The attention interface includes at least one state of interest regarding the author identification;
    作者动态推送步骤,包括:根据与所述用户标识和所述作者标识共同关联的所述服务器关注状态,控制向所述用户标识推送或停止推送与所述作者标识关联的作者动态。The author dynamically pushes the step of: controlling, according to the server attention status associated with the user identifier and the author identifier, to push or stop pushing the author dynamic associated with the author identifier to the user identifier.
  18. 一种存储介质,其特征在于,用于存储上述权利要求17所述的计算机程序。 A storage medium characterized by storing the computer program of claim 17 above.
PCT/CN2016/097005 2016-02-19 2016-08-26 Author following method, terminal, server and system WO2017140098A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610094918.6A CN105843465A (en) 2016-02-19 2016-02-19 Author following method, terminal, server and system
CN201610094918.6 2016-02-19

Publications (1)

Publication Number Publication Date
WO2017140098A1 true WO2017140098A1 (en) 2017-08-24

Family

ID=56586916

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097005 WO2017140098A1 (en) 2016-02-19 2016-08-26 Author following method, terminal, server and system

Country Status (2)

Country Link
CN (1) CN105843465A (en)
WO (1) WO2017140098A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843465A (en) * 2016-02-19 2016-08-10 乐视移动智能信息技术(北京)有限公司 Author following method, terminal, server and system
CN108243178B (en) * 2016-12-27 2021-05-28 武汉斗鱼网络科技有限公司 Method and system for acquiring anchor attention state
CN109542297B (en) * 2017-09-22 2022-04-26 阿里巴巴集团控股有限公司 Method and device for providing operation guide information and electronic equipment
CN108377273B (en) * 2018-05-15 2021-03-05 北京奇虎科技有限公司 Information pushing method, server and device
CN112751681B (en) * 2020-08-07 2023-10-13 腾讯科技(深圳)有限公司 Image processing method, device, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120290441A1 (en) * 2011-05-09 2012-11-15 Google Inc. Using Application Market Log Data To Identify Applications Of Interest
CN102902455A (en) * 2012-09-25 2013-01-30 鲁赤兵 Method for paying attention in social contact system
CN103095684A (en) * 2012-12-13 2013-05-08 微梦创科网络科技(中国)有限公司 Method obtaining attention user aggregate information, device and system
CN104852962A (en) * 2015-04-09 2015-08-19 乐视致新电子科技(天津)有限公司 Method, terminal device, server and system for processing focused information
CN105843465A (en) * 2016-02-19 2016-08-10 乐视移动智能信息技术(北京)有限公司 Author following method, terminal, server and system
CN105892866A (en) * 2016-04-01 2016-08-24 乐视控股(北京)有限公司 Method and device for synchronizing focusing states and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120290441A1 (en) * 2011-05-09 2012-11-15 Google Inc. Using Application Market Log Data To Identify Applications Of Interest
CN102902455A (en) * 2012-09-25 2013-01-30 鲁赤兵 Method for paying attention in social contact system
CN103095684A (en) * 2012-12-13 2013-05-08 微梦创科网络科技(中国)有限公司 Method obtaining attention user aggregate information, device and system
CN104852962A (en) * 2015-04-09 2015-08-19 乐视致新电子科技(天津)有限公司 Method, terminal device, server and system for processing focused information
CN105843465A (en) * 2016-02-19 2016-08-10 乐视移动智能信息技术(北京)有限公司 Author following method, terminal, server and system
CN105892866A (en) * 2016-04-01 2016-08-24 乐视控股(北京)有限公司 Method and device for synchronizing focusing states and mobile terminal

Also Published As

Publication number Publication date
CN105843465A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
US10585562B2 (en) System, method, and apparatus for maintaining and updating a common message user interface in a group based communication system
WO2017140098A1 (en) Author following method, terminal, server and system
US9589454B2 (en) Method, apparatus and system for broadcasting an alarm for an alarm group
US20160105389A1 (en) Method, server and electronic devices of synchronizing notification messages for electronic devices
CN111970198A (en) Service routing method, device, electronic equipment and medium
US10397624B1 (en) Dynamic object update subscriptions based on user interactions with an interface
US20190363899A1 (en) Multiplexing message distribution within group-based communication system
US11477315B2 (en) Contact information exchanging and content system and method for networking and marketing
EP2759892A1 (en) Synchronization of Alarms between Devices
US11917103B2 (en) Cloud integration to desktop-based emergency service applications
US20230171217A1 (en) System and method for notification transmission and confirmation management
EP3171541A1 (en) Managing messaging services
US11704629B2 (en) Methods and devices for processing information card
EP3623937B1 (en) Dynamic object update subscriptions based on user interactions with an interface
US10659944B2 (en) Wireless device based auto check-in and information sourcing system for accountability management
US9577967B2 (en) Method and system for managing an informational site using a social networking application
EP4130979A1 (en) Dynamic object update subscriptions based on user interactions with an interface
US10440134B1 (en) Systems and methods for compliance enforcement in internet-based social networks
US20150334174A1 (en) Application coordination
US11582500B2 (en) Updating object subscriptions based on trigger events
US20230370405A1 (en) Method and apparatus for messaging service
KR20230159099A (en) Method and apparatus for messaging service
GB2528635A (en) Application coordination

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16890326

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16890326

Country of ref document: EP

Kind code of ref document: A1