发明名称 Method and apparatus for implementing microblog message pages
摘要 Various embodiments provide methods and apparatus for implementing a microblog message page. An exemplary method can include encapsulating common logics of a plurality of message pages into a message page control base, pulling content data of a message page control of one message page of the plurality of message pages; and enabling the message page control of the one message page to inherit from the common logics encapsulated in the message page control base. The exemplary method can also include executing the common logics based on the pulled content data, to load the message page control of the one message page and to display the message page control on the one message page. The disclosed methods and apparatus can simplify the sorting algorithm with improved efficiency for the message pages to sort and manage layout of various types of controls.
申请公布号 US9361277(B2) 申请公布日期 2016.06.07
申请号 US201313745758 申请日期 2013.01.19
申请人 TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED 发明人 Qu Lei;Du Xiuxing
分类号 G06F17/00;G06F17/21;G06Q10/10 主分类号 G06F17/00
代理机构 Anova Law Group, PLLC 代理人 Anova Law Group, PLLC
主权项 1. A method for implementing a microblog message page comprising: encapsulating a common logic of a plurality of types of message pages in a message page control base for a microblog, wherein the plurality of types of message pages include a home page, a guest page, and an @ message page of the microblog, each type of message pages being able to reuse the same common logic; pulling content data of a message page control of one of the plurality of types of message pages, wherein the message page control is a container to contain a plurality of types of controls; enabling the message page control of the one of the plurality of types of message pages to inherit from the common logic encapsulated in the message page control base; and executing the common logic, based on the pulled content data of the message page control containing the plurality of types of controls of one of the plurality of types of message pages, to load the message page control of the one of the plurality of types of message pages and to display the plurality of types of controls contained in the message page control on the one of the plurality of types of message pages; wherein the plurality of types of controls contained in the message page control of the one of the plurality of types of message pages includes one or more of: at least one message item control, at least one loading item control, at least one fault item control, and a more item control; the method further including: encapsulating other logics of the one of the plurality of types of message pages into an other item control of the one of the plurality of types of message pages, according to the other logics, to load the other item control of the one of the plurality of types of message pages and to display the other item control on the one of the plurality of types of message pages, wherein executing the common logic further includes: acquiring timestamp and size information of the one or more of the at least one message item control, the at least one loading item control, the at least one fault item control, the more item control, and the other item control by a public interface of the message page control; and sorting and managing layout of the one or more of the at least one message item control, the at least one loading item control, the at least one fault item control, the more item control, and the other item control, based on the timestamp and the size information; wherein the one of the plurality of types of message pages is the guest page and the other item control includes a guest info control, wherein the acquiring of the timestamp and the size information of the other item control by the public interface of the message page control includes: acquiring timestamp and size information of the guest info control by using an interface of the guest info control that inherits from the public interface of the message page control; wherein the sorting and managing layout of the other item control according to the acquired timestamp and size information includes: arranging the guest info control at top of the guest page according to the acquired timestamp and size information of the guest info control; wherein the at least one loading item control includes at least one guest page loading item control, and the at least one message item control includes at least one guest page message item control; wherein the pulling of the content data of the message page control of the one of the plurality of types of message pages includes pulling guest page message data; and wherein the loading and displaying of the message page control of the one of the plurality of types of message pages includes: displaying a corresponding guest page loading item control, before the guest page message data is returned; and after the guest page message data is returned, according to the returned guest page message data, loading the at least one guest page message item control and displaying the at least one guest page message item control by an order of timestamp, and hiding a corresponding guest page loading item control; and wherein the at least one fault item control is at least one guest page fault item control, the method further including: when a newly posted guest page message needs to be added to the guest page, repeat executing loading and displaying the message page control of the one of the plurality of types of message pages, and if there is no posting time overlapping between the loaded newly posted guest page message and an already displayed guest page message, displaying a corresponding guest page fault item control, wherein a timestamp of the corresponding guest page fault item control equals to a timestamp of an above-posted guest page message item control subtracted by one.
地址 Shenzhen CN