Report method in a kind of dynamic content distribution service and terminal
Technical field
The present invention relates to the communications field, be meant report method and terminal in a kind of dynamic content dispensing (DCD) business especially.
Background technology
Dynamic content distribution service is the data service of a kind of network to the dynamic distributing contents of terminal.For the information browse that strengthens the terminal use is experienced, the mode that dynamic content distribution service was downloaded or pushed by the cycle, the content update that user individual is customized arrives user's terminal.The content real-time update of dynamic content dispensing is controlled content by server, and promptly server is by the entry contents of each channel demonstration of the dynamic control terminal of data sync.Dynamic content distribution service has greatly been simplified the mode that content is found and content obtains, and has reduced user's use difficulty, makes things convenient for the user to obtain the content of wanting most.
In the dynamic content distribution service, classify with the form of channel, and distribute to the user, as news channel, sports channel, entertainment channel etc. with the form of channel for different classes of content.The user can order or countermand different channels, the channel content that the content that the user receives has been ordered for this user.Content in each channel is organized with the form of clauses and subclauses, promptly comprises some clauses and subclauses that particular content is arranged in each channel.Server identifies its timeliness to the channel of terminal distribution by timestamp.
The news of dynamic content distribution service issue is carried out data management according to news channel → news item, that is to say that every news must belong to some news channel, can have many news in each news channel.
The news of dynamic content distribution service is regularly upgraded on server, therefore, needs terminal and server to carry out synchronously also the more news content of new terminal this locality.
Terminal by the timestamp that reports the local news channel to server realize with server synchronously, the flow process of the timestamp of terminal to report local news channel as shown in Figure 1, concrete processing procedure may further comprise the steps:
Step 101: terminal receive need with the request of server sync, need report.Need be sent by server with the request of server sync, when the news in the server changed, server can send this request to terminal, purpose be make terminal this locality news can with server sync.
Step 102: terminal is obtained the timestamp of local news channel, and makes up the synchronization request message that comprises this timestamp.
Step 103: terminal to server sends the synchronization request message that makes up.
In the present dynamic content distribution service, after news in the server is upgraded, be not directly to send to terminal, but elder generation is reported the timestamp of local news channel by synchronization request message by terminal, server judges whether this timestamp is up-to-date then, if up-to-date, then do not transmit news to terminal; If not up-to-date, whole news item under terminal is transmitted news channel then.
In the present dynamic content distribution business data management mode, terminal reports the information of relevant terminal local data to server by the synchronization request message that makes up, and present terminal to report only is the timestamp of local channel, the information that reports is very limited, can't make server obtain more information, and then can't make server understand the operating position of user the data of dynamic content distribution service.
Summary of the invention
In view of this, main purpose of the present invention is to provide report method and the terminal in a kind of dynamic content distribution service, makes the information of terminal to report more detailed.
For achieving the above object, technical scheme of the present invention is achieved in that
Report method in a kind of dynamic content distribution service, terminal is given the correct time on carrying out, and this method comprises: obtain the timestamp of local channel, and obtain the operating position of local data; Structure comprises the synchronization request message of timestamp and three grades of labels of local channel, comprises the operating position of local data in these three grades of labels; Send described synchronization request message to server.
Described structure comprises the synchronization request message of timestamp and three grades of labels of local channel, comprise: according to the form of three grades of labels setting and the expression mode of tag attributes and the operating position of local data tag attributes is set, obtains comprising three grades of labels of the operating position of local data; Structure comprises the synchronization request message of timestamp and described three grades of labels of local channel.
The form of described three grades of labels is: first order label is a channel tag, is used to represent channel; Second level label is an entry tags, is used to represent the concrete clauses and subclauses under the represented channel of channel tag; Third level label is the reported data label, is used to identify the operating position of concrete clauses and subclauses.
Describedly tag attributes is set according to the form of three grades of labels setting and the expression mode of tag attributes and the operating position of local data, specifically comprise:, the tag attributes of reported data label is set according to the expression mode of the tag attributes of the reported data label of setting, the operating position of local data.
Described operating position according to local data is provided with before the tag attributes of reported data label, further comprises: according to the ID of channel the tag attributes of channel tag is set, the tag attributes of entry tags is set according to the ID of clauses and subclauses.
Described three grades of labels pass through: the expandable mark language XML file is realized; Or radio binary extend markup language WBXML file is realized.
Reporting terminal in a kind of dynamic content distribution service, this terminal comprises: timestamp acquiring unit, operating position acquiring unit, message construction unit and message sending unit, wherein, described timestamp acquiring unit is used to obtain the timestamp of local channel; Described operating position acquiring unit is used to obtain the operating position of local data; Described message construction unit is used to make up the timestamp that comprises described local channel and the synchronization request message of described three grades of labels, comprises the operating position of local data in these three grades of labels; Described message sending unit is used to send described synchronization request message.
Described message construction comprises in the unit: the label generation unit, be used for tag attributes being set according to the form of three grades of labels setting and the expression mode of tag attributes and the operating position of local data, and obtain comprising three grades of labels of the operating position of local data.
The form of described three grades of labels is: first order label is a channel tag, is used to represent channel; Second level label is an entry tags, is used to represent the concrete clauses and subclauses under the represented channel of channel tag; Third level label is the reported data label, is used to identify the operating position of concrete clauses and subclauses.
Described three grades of labels pass through: the expandable mark language XML file is realized; Or radio binary extend markup language WBXML file is realized.
According to scheme provided by the invention, owing to comprise the operating position of local data in the synchronization request message that terminal to server sends, therefore, make that the information of terminal to report is more detailed, clearly embodied the operating position of user the data of dynamic content distribution service; Thereby can make server understand the operating position of user more fully to the data of dynamic content distribution service, be convenient to the subsequent treatment of server, and, can further make server have more processing targetedly according to the information of terminal to report, and then promote the Experience Degree of user to dynamic content distribution service, help popularizing of dynamic content distribution service.
Description of drawings
Fig. 1 is terminal to report flow chart in the existing dynamic content distribution service;
Fig. 2 is a terminal to report flow chart in the dynamic content distribution service of the embodiment of the invention;
Fig. 3 has read three grades of label schematic diagrames of situation for the news item that comprises news channel among the present invention;
The terminal structure schematic diagram of Fig. 4 for realizing in the dynamic content distribution service of the embodiment of the invention reporting.
Embodiment
Because in the present dynamic content dispensing, record the information of user on the terminal to the operating position of local data, be the operating position of user to the data of dynamic content distribution service, whether read as the concrete news item of next bar of news channel, specifically can be by reading or do not read mark, therefore, among the present invention, terminal is given the correct time on carrying out, obtain the timestamp of local channel and obtain the operating position of local data, structure comprises the synchronization request message of timestamp and three grades of labels of local channel, the operating position that comprises local data in these three grades of labels sends the synchronization request message that makes up to server.
The expression mode of the form of described three grades of labels and tag attributes is predefined, therefore, terminal is provided with tag attributes according to the form of three grades of labels setting and the expression mode of tag attributes and the operating position of local data, obtains comprising three grades of labels of the operating position of local data.
Fig. 2 is a terminal to report flow chart in the dynamic content distribution service of the embodiment of the invention, and as shown in Figure 2, concrete processing procedure may further comprise the steps:
Step 201: terminal receive need with the request of server sync, need report.Need be sent by server with the request of server sync, when the data in the server changed, server can send this request to terminal, can make terminal local data and server sync.
Step 202: terminal is obtained the timestamp of local channel.
Step 203: terminal is obtained the operating position of local data.
Step 202 and step 203 do not have tangible time sequencing on carrying out, can carry out simultaneously, can one in front and one in back carry out yet.
Step 204: terminal makes up the synchronization request message of the timestamp and the three grades of labels that comprise local channel, comprises the operating position of local data in these three grades of labels.Described three grades of labels can pass through extend markup language (XML, Extensible Markup Language) file to be realized, also can pass through radio binary XML (WBXML, WAP Binary XML) file and realize.
Operating position with the news item of news channel is an example below, the specific implementation of described three grades of labels is described, as shown in Figure 3, the form of three grades of labels setting is: first order label<Feed〉represent news channel, label<Feed〉quantity corresponding with the quantity of news channel, promptly have what news channel what label<Feed are just arranged 〉; Second level label<Entry〉represent first order label<Feed〉news item under the news channel, label<Entry〉quantity and this news channel under the quantity of news item corresponding, how many bar news are promptly arranged under this news channel, what label<Entry are just arranged 〉; Third level label is the reported data label, is used to identify the situation of reading of concrete news item, for example, 0 expression user of unread, 1 expression user reads.
In actual applications, the particular content of the operating position of expression terminal local data can be expanded according to actual conditions in third level label-reported data label, for example, reported data tag identifier user's the situation of reading is set; Reported data tag identifier user's frequency of reading and for example, is set.In addition, can comprise the information that one or more show the operating position of terminal local data in the reported data label, as above whether count off opened corresponding link according to the situation of reading that comprises the user in the label simultaneously, user's frequency of reading, user, or the like.
If all having one, each news channel and each news item be used for ID that it is identified, so, in news channel label and the news item label, the tag attributes of corresponding label can be set to corresponding ID, as<Feed ID=" F01 " 〉,<Entry ID=" F01E01 " 〉.
For the reported data label, being provided with of the expression mode of tag attributes is varied, and for example, the reported data label is used for the situation of reading of identifying user, tag attributes 0 can be set represent that user of unread, tag attributes 1 expression user read; And for example, the reported data label is used for the frequency of reading of identifying user, and the value that tag attributes can be set is represented user's frequency of reading, or the like.
When terminal makes up synchronization request message, to tag attributes be set according to the form of three grades of labels setting and the expression mode of tag attributes and the operating position of local data earlier, obtain comprising three grades of labels of the operating position of local data.Be specially: according to the expression mode of the tag attributes of third level label-reported data label of setting and the operating position of local data, the tag attributes of reported data label is set, for example, 0 expression is not read, 1 expression is read, the user has read the news 1 under the news channel 1, the tag attributes that corresponding reported data label then is set is 1, news 2 under the user of unread news channel 1, the tag attributes that corresponding reported data label then is set is 0, obtains three grades of labels of the operating position that comprises local data as shown in Figure 3; Before this, the tag attributes of channel tag can also be set according to the ID of channel, the tag attributes of entry tags is set according to the ID of clauses and subclauses.After obtaining comprising three grades of labels of operating position of local data, make up the synchronization request message of the timestamp and the three grades of labels that comprise local channel.
Step 205: terminal to server sends the synchronization request message that makes up.
After server is received the synchronization request message of terminal, obtain timestamp and three grades of labels of the local channel of terminal that comprises in the synchronization request message; Because the form of three grades of labels and the expression mode of tag attributes are predefined, for server is known, therefore, server is resolved three grades of labels receiving according to the form of three grades of labels setting and the expression mode of tag attributes, obtain the operating position of terminal local data, carry out analyzing and processing according to the operating position of terminal local data then, for example, statistics user's clicking rate, or collect user's interest-degree.
In addition, because terminal to server has reported the operating position of local data, server is had more fully the operating position of the data of dynamic content distribution service the user to be understood, be convenient to server and have more processing targetedly, for example, timestamp in conjunction with the local channel of terminal only upgrades the user's interest content, has promoted the Experience Degree of user to dynamic content distribution service, helps popularizing of dynamic content distribution service.
The terminal structure schematic diagram of Fig. 4 for realizing in the dynamic content distribution service of the embodiment of the invention reporting, as shown in Figure 4, this terminal comprises: timestamp acquiring unit, operating position acquiring unit, message construction unit and message sending unit, wherein, the timestamp acquiring unit is used to obtain the timestamp of local channel, and offers the message construction unit; The operating position acquiring unit is used to obtain the operating position of local data, and offers the message construction unit; The message construction unit is used to make up the timestamp that comprises local channel and the synchronization request message of three grades of labels, comprises the operating position of local data in these three grades of labels; Message sending unit is used to send the synchronization request message of structure.
The expression mode of the form of three grades of labels and tag attributes is predefined.Three grades of labels can be realized by the XML file, also can realize by the WBXML file.The form of three grades of labels setting is: first order label is a channel tag, is used to represent channel, and the quantity of channel tag is corresponding with the quantity of channel; Second level label is an entry tags, is used to represent the concrete clauses and subclauses under the represented channel of channel tag, and the quantity of clauses and subclauses is corresponding under the quantity of entry tags and this channel; Third level label is the reported data label, is used to identify the operating position of concrete clauses and subclauses.
Message construction comprises in the unit: the label generation unit, be used for tag attributes being set according to the form of three grades of labels setting and the expression mode of tag attributes and the operating position of local data, and obtain comprising three grades of labels of the operating position of local data.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.