CN107273112B - Method and device for displaying gift list information - Google Patents
Method and device for displaying gift list information Download PDFInfo
- Publication number
- CN107273112B CN107273112B CN201710309063.9A CN201710309063A CN107273112B CN 107273112 B CN107273112 B CN 107273112B CN 201710309063 A CN201710309063 A CN 201710309063A CN 107273112 B CN107273112 B CN 107273112B
- Authority
- CN
- China
- Prior art keywords
- gift
- list information
- list
- classification
- gift list
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 230000000875 corresponding Effects 0.000 claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 4
- 229920001276 Ammonium polyphosphate Polymers 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000005538 encapsulation Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000003287 optical Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 1
- 238000006011 modification reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Abstract
The invention provides a method and a device for displaying gift list information, wherein the method comprises the following steps: loading a gift model container, and if the classification number of the current live broadcast room is inquired from the gift model container, acquiring a gift list number corresponding to the classification number; acquiring first gift list information according to the serial number of the gift list; according to the obtained operation that the user clicks a gift panel, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information; and according to the obtained operation of clicking the gifts by the user, if the situation that the gifts clicked by the user participate in ranking is judged, obtaining and displaying third gift list information of the gifts clicked by the user from the second gift list information. According to the invention, the gift model container is loaded from the server, and the list information of the gift participating in ranking clicked by the user is acquired from the list information of the gift participating in ranking in the current live broadcast room, so that the user can know the ranking condition of the gift.
Description
Technical Field
The invention relates to the field of application development, in particular to a method and a device for displaying gift list information.
Background
With the development of the network interaction platform, more and more users can communicate by logging in the network interaction platform. Among them, webcast is an application very popular with users.
During live broadcast, the user may interact with the anchor, such as sending a barrage, gifting a gift to the anchor, and so on. Therefore, the interestingness of the interaction between the anchor and the user is increased, and the anchor is also determined. The anchor can see the ranking of each type of gift through the gift list. The anchor on the gift list, which is ranked higher, can obtain corresponding rewards, so that the initiative of the anchor participation is aroused.
At present, in many network live broadcast APPs, only a main broadcast end can see the number and the ranking of each type of gifts received by a main broadcast in a gift list, but a user watching the live broadcast cannot see the gift list, so that the user cannot know the number and the ranking of the current main broadcast for the gifts of a certain type.
Disclosure of Invention
In order to overcome the problem that the user side cannot see the gift list information or at least partially solve the problem, the invention provides a method and a device for displaying the gift list information.
According to a first aspect of the present invention, there is provided a gift list information display method including:
loading a gift model container, and if the classification number of the current live broadcast room is inquired from the gift model container, acquiring a gift list number corresponding to the classification number;
acquiring first gift list information according to the serial number of the gift list;
according to the obtained operation that the user clicks a gift panel, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information;
and according to the obtained operation of clicking the gifts by the user, if the situation that the gifts clicked by the user participate in ranking is judged, obtaining and displaying third gift list information of the gifts clicked by the user from the second gift list information.
Specifically, the loading gift model container further includes:
sending a request to a server, and receiving gift model container data sent by the server;
converting the type of the gift model container data into an array, and mapping the array of the gift model container data to the gift model container.
Specifically, according to the serial number of the gift list, acquiring first gift list information, including:
and acquiring the first gift list information according to the corresponding relation between the serial number of the gift list and the first gift list information.
Specifically, the method further comprises the following steps: and displaying the entrance of the gift list information.
Specifically, after displaying the entry of the first gift list information, the method further includes:
and displaying the first gift list information and/or the second gift list information according to the acquired operation of clicking the entrance of the gift list information by the user.
Specifically, the second list information includes: the number of the gift, the name of the gift, and the rank of the gift.
According to a second aspect of the present invention, there is provided a gift list information display apparatus including:
the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for loading a gift model container and obtaining a gift list number corresponding to a classification number when the classification number of a current live broadcast room is inquired from the gift model container;
the second obtaining unit is used for obtaining the first gift list information according to the serial number of the gift list;
the third obtaining unit is used for obtaining second gift list information of the gifts participating in ranking in the current live broadcast room from the first gift list information according to the obtained operation that the user clicks the gift panel;
and the fourth obtaining unit is used for obtaining and displaying third gift list information of the gift clicked by the user from the second gift list information if the situation that the gift clicked by the user participates in ranking is judged according to the obtained operation that the user clicks the gift.
Specifically, the first acquiring unit includes:
a communication subunit, configured to send a request to the server, and receive gift model container data sent by the server;
a loading subunit, configured to convert the type of the gift model container data into an array, and map the array of the gift model container data to the gift model container.
According to a third aspect of the present invention, there is provided a computer program product comprising program code for executing the above-mentioned gift list information display method.
According to a fourth aspect of the invention, there is provided a non-transitory computer readable storage medium storing the computer program as described above.
According to the method and the system, the gift model container is loaded from the server, the gift list number corresponding to the classification number of the current live broadcast room is obtained according to the gift model container, the first gift list information is obtained according to the gift list number, the second list information of the gift participating in ranking of the current live broadcast room is obtained from the first gift list information, and the third gift list information participating in ranking clicked by the user is obtained from the second list information, so that the user knows the ranking condition of the clicked gift, the gift is pertinently sent to the main broadcast gift according to the ranking condition of the gift, and the enthusiasm of participation of the user is improved.
Drawings
Fig. 1 is a flowchart of a method for displaying a gift list information according to an embodiment of the present invention;
fig. 2 is a structural diagram of a gift list information display apparatus according to an embodiment of the present invention;
fig. 3 is a structural diagram of a gift list information display apparatus according to still another embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a method for displaying a gift list information according to an embodiment of the present invention. As shown in fig. 1, includes: s1, loading a gift model container, and if the classification number of the current live broadcast room is inquired from the gift model container, acquiring a gift list number corresponding to the classification number; s2, acquiring first gift list information according to the serial number of the gift list; s3, according to the operation that the obtained user clicks the gift panel, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information; and S4, according to the obtained operation of clicking the gift by the user, if the gift clicked by the user is judged to participate in ranking, obtaining and displaying third gift list information of the gift clicked by the user from the second gift list information.
In S1, creating the gift model container, where the gift model container may include: a singleton method, whether to load a successful field from the server, and an array loaded with a sort list model. The classification list model includes: the classification number and the gift list number. The gift model container can be loaded when the loading of the home page data is finished, and the home page is a page which is entered when the APP is started. And inquiring the classification number of the current live broadcast room from the classification list model in the gift model container. And if the classification number of the current live broadcast room is inquired, acquiring the gift list number corresponding to the classification number according to the corresponding relation between the classification number and the gift list number in the classification list model. If the first gift list information does not exist, the fact that the first gift list information corresponding to the classification number of the current live broadcast room does not exist is shown.
In S2, the first gift list information may be acquired according to the correspondence between the gift list number and the first gift list information. The first gift list information comprises gift list information of a live broadcast room having the same category as a current live broadcast room, and the first gift list information comprises: the number of the current live room, the number of the gift, the name of the gift, and the rank of the gift.
In S3, when the user is a user watching a live broadcast and operation of clicking a gift panel by the user is obtained, if it is determined that a gift participating in ranking exists in the current live broadcast room, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information according to the serial number of the gift participating in ranking in the current live broadcast room and the serial number of the current live broadcast room. The second gift list information comprises: the number of the gift, the name of the gift, and the rank of the gift. The second gift list information may be saved in an array.
And S4, judging whether the gift clicked by the user participates in ranking according to the obtained operation of clicking the gift by the user, and if the gift clicked by the user participates in ranking, obtaining third gift list information of the gift clicked by the user from the second gift list information according to the serial number of the gift clicked by the user. The third gift list information comprises: the name of the gift and the rank of the gift. A prompt may be created to display the third gift list information. But is not limited to such a display. The third gift list information may be displayed for a preset duration. And removing the display of the third gift list information after the preset time is over.
Specifically, a gift model container DYGiftStarListModel is created, a singleton function shared instance is defined in the gift model container, and attributes in the gift model container include: a field isLoadFromServer that is successful in loading from the server and an array giftStarListAllModelArr loaded with a sort list model GiftStarListAllModel, the sort list model GiftStarListAllModel including: the classification number and the gift list number. If the classification number of the current live broadcast room is inquired from the classification list model GiftStarListAllModel, the gift list number corresponding to the classification number is obtained, and a first gift list is obtained. And acquiring second list information of the gifts participating in ranking in the current live broadcast by using a gs _ requestGiftStarInfo method, and storing the second list information into an array gifArr of the NSArray type. When a user clicks a gift panel, calling a method sendGiftView DidSelectIndex of the clicked gift in the gift panel, and acquiring a model DYGIfModel of the gift clicked by the user. Whether the gift clicked by the user participates in the ranking is judged through a field bt in the model DYGIftModel. And if bt is 2, indicating to participate in ranking, otherwise not participating in ranking, and not needing to display the third gift list information. And if the participation ranking of the gifts clicked by the user is judged, searching the third gift list information of the gifts clicked by the user from the array gifArr according to the number of the gifts clicked by the user. Creating a reminder tips to display the third gift list information. And removing the third gift list information by using a removeFromSuperview method after the third gift list information is displayed for a preset time. The present embodiments are not limited to a particular implementation.
According to the method and the device, the gift model container is loaded from the server, the gift list number corresponding to the classification number of the current live broadcast room is obtained according to the gift model container, the first gift list information is obtained according to the gift list number, the second list information of the gift participating in ranking of the current live broadcast room is obtained from the first gift list information, and the third gift list information of the gift participating in ranking clicked by the user is obtained from the second list information, so that the user knows the ranking condition of the clicked gift, the gift is pertinently sent to the main broadcast gift according to the ranking condition of the gift, and the enthusiasm of participation of the user is improved. Meanwhile, in the embodiment, the second gift list information of the current live broadcast room is stored, so that when the user clicks the gift, the third gift list information of the gift clicked by the user is searched from the second gift list information, and thus the searching speed and the speed of displaying the third gift list information are greatly improved.
On the basis of the above embodiment, the loading gift model container in this embodiment further includes: sending a request to a server, and receiving gift model container data sent by the server; converting the type of the gift model container data into an array, and mapping the array of the gift model container data to the gift model container.
Specifically, the field of whether the loading from the server is successful may be used in the loading process to determine whether the loading from the server of the gift model container is successful. If the loading is successful, the loading is stopped, otherwise, the loading operation is continuously executed. The request information may be sent to the server using the address of the splice. And receiving gift model container data returned by the server. The gift model container data may be of any type and cannot be used directly. And forcibly converting the type of the gift model container data into an array. And mapping each element in the array of the gift model container data to a corresponding classification list model in the gift model container by using a model analysis tool, and loading all the classification list models into an array. Assigning an array of the sorted list to the gift model container using a point syntax.
Specifically, the interface for obtaining the network configuration file may be called when the first page data is completely loaded. The method for obtaining the interface of the network configuration file is getGiftServerDeploly, and the method does not need parameters and returns values. The method obtains an object model of the gift model container DYGIfStarList model using a singleton function Shared Instance. And acquiring whether the field isLoadFromServer is successfully loaded from the server or not from the model. If the loading of the gift model container from the server is successful, the singleton function is stopped from executing. If ISLoadFromServer is NO, then loading continues. A string splicing function stringWithFormat is used to splice an address requestStr. And sending the network request to the server by using a network request management class RequestManager, wherein the sent network request uses a class method of requestUrl. If the network request is successful, a gift model container data of id type is returned. Wherein the id type is any type. The gift model container data obtained by the request cannot be used directly and needs to be converted into an array by force. Mapping each element in the array of gift model container data to each sort list model, GiftStarListAllModel, using a model parsing tool. All the classification list models GiftStarListAllModel are loaded into an array modelArr. modelArr is assigned to the object model of the gift model big container dygiftstarlist model using the point syntax. If the type of the returned data is not the NSArray type, setting a field ISLoadFromServer in the model whether the loading from the server is successful to NO. The method getgiftserverdelivery is called in all live rooms. The present embodiments are not limited to a particular implementation.
On one hand, according to the embodiment, whether the loading from the server is successful or not is indicated by using one field, whether the loading is successful or not is detected each time the network request is sent, and if the loading is not successful, the request is continued until the loading is successful, so that the reliability of obtaining the network configuration file is ensured. On the other hand, the method for acquiring the interface of the network configuration file has no parameters and return values, and high encapsulation is realized.
On the basis of the above embodiments, the present embodiment further includes: and displaying the entrance of the gift list information.
Specifically, the entry of the gift list information may be displayed all the time, or the entry of the gift list information may be displayed when it is determined that a certain condition is satisfied, or otherwise, the entry is not displayed. The conditions include: the gift model container has a classification number of the current live broadcast room and/or presents participating in ranking in the current live broadcast room. When the entrance of the gift list information is displayed, when the operation that a user clicks the entrance of the gift list information is acquired, if the classification serial number of the current live broadcast room exists in the gift model container, the first gift list information is displayed, and/or if the fact that the gift participating in ranking exists in the current live broadcast room is judged and known, the second gift list information is displayed.
The present embodiment displays the entrance of the gift list information by directly displaying or displaying under a certain condition. And when the user clicks the entrance of the gift list information, displaying the first gift list information. And when the user clicks the entrance of the second gift list information, displaying the second gift list information and/or the second gift list information. Therefore, the user can know the ranking condition of the gifts in the live broadcast room with the same category as the current live broadcast room and/or the ranking condition of the gifts participating in ranking in the current live broadcast room, the gifts are sent to the main broadcast in a targeted mode, and the enthusiasm of the user in participation is improved.
Fig. 2 is a result diagram of a gift list information display apparatus according to an embodiment of the present invention, as shown in fig. 2, including a first obtaining unit 1, a second obtaining unit 2, a third obtaining unit 3, and a fourth obtaining unit 4, where:
the first obtaining unit 1 is configured to load a gift model container, and obtain a gift list number corresponding to a classification number when the classification number of a current live broadcast room is queried from the gift model container; the second obtaining unit 2 is configured to obtain first gift list information according to the serial number of the gift list; the third obtaining unit 3 is configured to obtain, from the first gift list information, second gift list information of a gift participating in ranking in the current live broadcast room according to an obtained operation of clicking a gift panel by a user; the fourth obtaining unit 4 is configured to, according to the obtained operation of clicking a gift by the user, obtain and display third gift list information of the gift clicked by the user from the second gift list information if it is determined that the gift clicked by the user participates in ranking.
Specifically, the gift model container is created, and the gift model container may include: a singleton method, whether to load a successful field from the server, and an array loaded with a sort list model. The classification list model includes: the classification number and the gift list number. The first obtaining unit 1 may load a gift model container when the loading of the home page data is completed, and query a classification number of a current live broadcast room from a classification list model in the gift model container. The home page is a page entered when the APP is started. And if the classification number of the current live broadcast room is inquired, acquiring the gift list number corresponding to the classification number according to the corresponding relation between the classification number and the gift list number in the classification list model. If the first gift list information does not exist, the fact that the first gift list information corresponding to the classification number of the current live broadcast room does not exist is shown.
The second obtaining unit 2 may obtain the first gift list information according to a correspondence between the serial number of the gift list and the first list information. The first gift list information comprises gift list information of a live broadcast room having the same category as a current live broadcast room, and the first gift list information comprises: the number of the current live room, the number of the gift, the name of the gift, and the rank of the gift.
The user is a user watching live broadcast, and when the third obtaining unit 3 judges that a gift participating in ranking exists in the current live broadcast room according to the operation of clicking the gift panel by the obtained user, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information according to the serial number of the gift participating in ranking in the current live broadcast room and the serial number of the current live broadcast room. The second gift list information comprises: the number of the gift, the name of the gift, and the rank of the gift. And storing the second gift list information in an array.
And judging whether the gift clicked by the user participates in ranking according to the operation of clicking the gift by the user, which is acquired by the fourth acquisition unit 4, and acquiring third gift list information of the gift clicked by the user from the second gift list information according to the serial number of the gift clicked by the user if the gift clicked by the user participates in ranking. The third gift list information comprises: the name of the gift and the rank of the gift. The fourth obtaining unit 4 may create a prompt to display the third gift list information. But is not limited to such a display. The third gift list information may be displayed for a preset duration. And removing the display of the third gift list information after the preset time is over.
According to the method and the device, the gift model container is loaded from the server, the gift list number corresponding to the classification number of the current live broadcast room is obtained according to the gift model container, the first gift list information is obtained according to the gift list number, the second list information of the gift participating in ranking of the current live broadcast room is obtained from the first gift list information, and the third gift list information of the gift participating in ranking clicked by the user is obtained from the second list information, so that the user knows the ranking condition of the clicked gift, the gift is pertinently sent to the main broadcast gift according to the ranking condition of the gift, and the enthusiasm of participation of the user is improved. Meanwhile, the second gift list information of the current live broadcast room is stored in the embodiment, so that when the user clicks the gift, the third gift list information of the gift clicked by the user is searched from the second gift list information, and therefore the searching speed and the speed of displaying the third gift list information are greatly improved.
Fig. 3 is a result diagram of a gift list information display apparatus according to an embodiment of the present invention, as shown in fig. 3, based on the above embodiment, the first obtaining unit 1 includes a communication subunit 11 and a loading subunit 12, where:
the communication subunit 11 is configured to send a request to the server, and receive gift model container data sent by the server; the loading sub-unit 12 is configured to convert the type of the gift model container data into an array and map the array of the gift model container data to the gift model container.
Specifically, the field of whether the loading from the server is successful may be used in the loading process to determine whether the loading from the server of the gift model container is successful. If the loading is successful, the loading is stopped, otherwise, the loading operation is continuously executed. The communication subunit 11 may send request information to the server using the concatenated address and receive gift model container data returned by the server. The gift model container data may be of any type and cannot be used directly. The loading subunit 12 forcibly converts the type of the gift model container data into an array, maps each element in the array of the gift model container data to a corresponding one of the classification list models in the gift model container using a model parsing tool, loads all the classification list models into an array, and assigns the array of the classification list to the gift model container using a point syntax.
On one hand, according to the embodiment, whether the loading from the server is successful or not is indicated by using one field, whether the loading is successful or not is detected each time the network request is sent, and if the loading is not successful, the request is continued until the loading is successful, so that the reliability of obtaining the network configuration file is ensured. On the other hand, the method for acquiring the interface of the network configuration file has no parameters and return values, and high encapsulation is realized.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: loading a gift model container, and if the classification number of the current live broadcast room is inquired from the gift model container, acquiring a gift list number corresponding to the classification number; acquiring first gift list information according to the serial number of the gift list; according to the obtained operation that the user clicks a gift panel, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information; and according to the obtained operation of clicking the gifts by the user, if the situation that the gifts clicked by the user participate in ranking is judged, obtaining and displaying third gift list information of the gifts clicked by the user from the second gift list information.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: loading a gift model container, and if the classification number of the current live broadcast room is inquired from the gift model container, acquiring a gift list number corresponding to the classification number; acquiring first gift list information according to the serial number of the gift list; according to the obtained operation that the user clicks a gift panel, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information; and according to the obtained operation of clicking the gifts by the user, if the situation that the gifts clicked by the user participate in ranking is judged, obtaining and displaying third gift list information of the gifts clicked by the user from the second gift list information.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the test equipment and the like of the display device are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for displaying gift list information is characterized by comprising the following steps:
loading a gift model container, and if the classification number of the current live broadcast room is inquired from the gift model container, acquiring a gift list number corresponding to the classification number; the gift model container comprises a singleton method, a field for judging whether the gift model container is successfully loaded from the server or not and an array loaded with a classification list model; the classification list model comprises the classification number and the gift list number;
inquiring the classification number of the current live broadcast room from a classification list model in the gift model container, and if the classification number of the current live broadcast room is inquired, acquiring a gift list number corresponding to the classification number according to the corresponding relation between the classification number and the gift list number in the classification list model;
acquiring first gift list information according to the serial number of the gift list; the first gift list information comprises the number of the current live broadcast room, the number of the gift, the name of the gift and the ranking of the gift;
according to the obtained operation that the user clicks a gift panel, second gift list information of the gift participating in ranking in the current live broadcast room is obtained from the first gift list information; wherein the second gift list information comprises the number of the gift, the name of the gift and the rank of the gift;
according to the obtained operation of clicking the gifts by the user, if the situation that the gifts clicked by the user participate in ranking is judged, third gift list information of the gifts clicked by the user is obtained from the second gift list information and displayed; wherein the third gift list information includes a name of the gift and a ranking of the gift.
2. The gift placard information display method of claim 1, wherein the loading a gift model container further comprises:
sending a request to a server, and receiving gift model container data sent by the server;
converting the type of the gift model container data into an array, and mapping the array of the gift model container data to the gift model container.
3. The method for displaying the gift list information according to claim 1 or 2, wherein the step of obtaining the first gift list information according to the number of the gift list comprises the steps of:
and acquiring the first gift list information according to the corresponding relation between the serial number of the gift list and the first gift list information.
4. The gift list information display method of claim 1 or 2, further comprising: and displaying the entrance of the gift list information.
5. The method of displaying leader board information according to any one of claims 4, further comprising, after displaying the entry of the first leader board information:
and displaying the first gift list information and/or the second gift list information according to the acquired operation of clicking the entrance of the gift list information by the user.
6. The gift list information display method of claim 1 or 2, wherein the second gift list information comprises: the number of the gift, the name of the gift, and the rank of the gift.
7. A gift list information display apparatus, comprising:
the system comprises a first obtaining unit, a second obtaining unit and a judging unit, wherein the first obtaining unit is used for loading a gift model container, and obtaining a gift list number corresponding to a classification number if the classification number of a current live broadcast room is inquired from the gift model container; the gift model container comprises a singleton method, a field for judging whether the gift model container is successfully loaded from the server or not and an array loaded with a classification list model; the classification list model comprises the classification number and the gift list number;
inquiring the classification number of the current live broadcast room from a classification list model in the gift model container, and if the classification number of the current live broadcast room is inquired, acquiring a gift list number corresponding to the classification number according to the corresponding relation between the classification number and the gift list number in the classification list model;
the second obtaining unit is used for obtaining the first gift list information according to the serial number of the gift list; the first gift list information comprises the number of the current live broadcast room, the number of the gift, the name of the gift and the ranking of the gift;
the third obtaining unit is used for obtaining second gift list information of the gifts participating in ranking in the current live broadcast room from the first gift list information according to the obtained operation that the user clicks the gift panel; wherein the second gift list information comprises the number of the gift, the name of the gift and the rank of the gift;
a fourth obtaining unit, configured to, according to an obtained operation of clicking a gift by a user, obtain and display third gift list information of the gift clicked by the user from the second gift list information if it is determined that the gift clicked by the user participates in ranking; wherein the third gift list information includes a name of the gift and a ranking of the gift.
8. The gift list information display apparatus of claim 7, wherein the first obtaining unit comprises:
a communication subunit, configured to send a request to the server, and receive gift model container data sent by the server;
a loading subunit, configured to convert the type of the gift model container data into an array, and map the array of the gift model container data to the gift model container.
9. A computer program product, characterized in that the computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710309063.9A CN107273112B (en) | 2017-05-04 | 2017-05-04 | Method and device for displaying gift list information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710309063.9A CN107273112B (en) | 2017-05-04 | 2017-05-04 | Method and device for displaying gift list information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107273112A CN107273112A (en) | 2017-10-20 |
CN107273112B true CN107273112B (en) | 2021-02-02 |
Family
ID=60074367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710309063.9A Active CN107273112B (en) | 2017-05-04 | 2017-05-04 | Method and device for displaying gift list information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107273112B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110121082B (en) * | 2019-05-08 | 2021-07-06 | 广州酷狗计算机科技有限公司 | Method, device, equipment and readable storage medium for displaying live broadcast room ranking information |
CN110505492B (en) * | 2019-09-02 | 2022-03-01 | 广州方硅信息技术有限公司 | Method and system for prompting gift delivery information of live broadcast room |
CN111475141A (en) * | 2020-03-31 | 2020-07-31 | 微梦创科网络科技(中国)有限公司 | List generation method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101278120B1 (en) * | 2012-04-04 | 2013-06-24 | 주식회사 토리콘 | Mobile coupon conversion method and system |
CN105302898A (en) * | 2015-10-23 | 2016-02-03 | 天津车之家科技有限公司 | Click model-based searching and ranking method and device |
CN105677819A (en) * | 2015-12-31 | 2016-06-15 | 广州华多网络科技有限公司 | Ranking list refreshing method and device |
CN105897770A (en) * | 2016-06-20 | 2016-08-24 | 武汉斗鱼网络科技有限公司 | Virtual gift display method and device based on live broadcasting |
CN106534994A (en) * | 2016-10-31 | 2017-03-22 | 北京小米移动软件有限公司 | Live broadcasting interaction method and device |
-
2017
- 2017-05-04 CN CN201710309063.9A patent/CN107273112B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101278120B1 (en) * | 2012-04-04 | 2013-06-24 | 주식회사 토리콘 | Mobile coupon conversion method and system |
CN105302898A (en) * | 2015-10-23 | 2016-02-03 | 天津车之家科技有限公司 | Click model-based searching and ranking method and device |
CN105677819A (en) * | 2015-12-31 | 2016-06-15 | 广州华多网络科技有限公司 | Ranking list refreshing method and device |
CN105897770A (en) * | 2016-06-20 | 2016-08-24 | 武汉斗鱼网络科技有限公司 | Virtual gift display method and device based on live broadcasting |
CN106534994A (en) * | 2016-10-31 | 2017-03-22 | 北京小米移动软件有限公司 | Live broadcasting interaction method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107273112A (en) | 2017-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107273112B (en) | Method and device for displaying gift list information | |
CN105786667A (en) | Distributed automated testing method and system | |
CN105635050B (en) | Data interaction method and system | |
CN107659455B (en) | Method, storage medium, device and system for Mock data of iOS (internet operating system) end | |
CN107453978B (en) | Group-based data statistical method, mobile terminal, server and storage medium | |
CN110598280A (en) | Equipment simulation system and method and computer readable storage medium | |
CN103136342A (en) | Searching method, system and searching server of application programs (APP) | |
CN111083017A (en) | Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium | |
CN103902446A (en) | Network server automated testing method and device | |
CN105138383A (en) | Application display method and device | |
CN103701867A (en) | Method, system and central server for processing call requests | |
CN107463391B (en) | Task processing method, device and equipment | |
CN113342503A (en) | Real-time progress feedback method, device, equipment and storage medium | |
CN109471627A (en) | Page presentation control method, system and device | |
CN105099727A (en) | Method of adding group member and apparatus thereof | |
CN110874278A (en) | Embedding method of external system, workflow system, device and storage medium | |
CN107483294B (en) | Method and device for monitoring network request | |
CN108733545B (en) | Pressure testing method and device | |
CN113343110A (en) | Method for realizing electronic book recommendation based on release information, electronic equipment and storage medium | |
CN107391132B (en) | Method, device and equipment for target App to execute preset action | |
CN111582795A (en) | Method, device and readable storage medium for automatically detecting logistics merchants | |
CN111061543A (en) | Multi-tenant workflow engine service method, device and server | |
CN111026634A (en) | Interface automation test system, method, device and storage medium | |
CN106375431B (en) | Business opportunity recommendation method and device | |
CN111294250A (en) | Pressure testing method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |