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 in terminal.In order to strengthen terminal use's information browse experience, dynamic content distribution service is through the mode of cycle download or propelling movement, and 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 through 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, like news channel, sports channel, entertainment channel etc. with the form of channel for different classes of content.The user can order or countermand different frequency 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 through 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 and the news content of new terminal this locality more.
The terminal through 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 is as shown in Figure 1, concrete processing procedure may further comprise the steps:
Step 101: the 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 to the terminal should request, purpose be make the terminal news can with server sync.
Step 102: the terminal obtains 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 the terminal, but report the timestamp of local news channel by the terminal through synchronization request message earlier, server judges whether this timestamp is up-to-date then; If up-to-date, then do not transmit news to the terminal; If not up-to-date, whole news item under channel is transmitted news at the terminal then.
In the present dynamic content distribution business data management mode; The terminal reports the information of relevant terminal local data to server through 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 to 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, give the correct time on carrying out in the terminal, 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 said synchronization request message to server.
Said 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 said three grades of labels of local channel.
The form of said 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.
Saidly 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.
Said 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.
Said 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, said timestamp acquiring unit is used to obtain the timestamp of local channel; Said operating position acquiring unit is used to obtain the operating position of local data; Said message construction unit is used to make up the timestamp that comprises said 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; Said message sending unit is used to send said synchronization request message.
Said 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 said 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.
Said 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, and then promote the Experience Degree of user, help popularizing of dynamic content distribution service dynamic content distribution service according to the information of terminal to report.
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 sketch mapes of situation for the news item that comprises news channel among the present invention;
The terminal structure sketch map 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 on the terminal user to the information of the operating position of local data, be the operating position of user to the data of dynamic content distribution service, whether read like the concrete news item of next bar of news channel; Specifically can be through reading or do not read mark; Therefore, among the present invention, give the correct time on carrying out in the terminal; 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, sends the synchronization request message that makes up to server.
The expression mode of the form of said three grades of labels and tag attributes is predefined; Therefore; The 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 terminal to report flow chart in the dynamic content distribution service of the embodiment of the invention, and is as shown in Figure 2, and concrete processing procedure may further comprise the steps:
Step 201: the 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 and should ask to the terminal, can make terminal local data and server sync.
Step 202: the terminal obtains the timestamp of local channel.
Step 203: the terminal obtains 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: the 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.Said 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 concrete realization of said three grades of labels is described; As shown in Figure 3; The form of three grades of labels setting is: first order label < Feed>is represented news channel, and the quantity of label < Feed>is corresponding with the quantity of news channel, promptly has what news channel what labels < Feed>are just arranged; Second level label < Entry>is represented the news item under first order label < Feed>news channel; The quantity of news item is corresponding under the quantity of label < Entry>and this news channel; How many bar news are promptly arranged under this news channel, what labels < 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 practical application, 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, like < 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 the 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, and for example, 0 expression is not read; 1 expression is read; The user has read the news 1 under the news channel 1, and the tag attributes that corresponding reported data label then is set is 1, the 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 at terminal, obtain timestamp and three grades of labels of the terminal channel that comprises in the synchronization request message; Because the form of three grades of labels and the expression mode of tag attributes are predefined, are known for server, 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; The clicking rate of statistics of user's, 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 understand, be convenient to server and have more targetedly and handle; For example; Timestamp in conjunction with the terminal channel 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 sketch map 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 through the XML file, also can realize through 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 merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.