WO2019041669A1 - Method for realizing report function in video friend making, storage medium, device and system - Google Patents

Method for realizing report function in video friend making, storage medium, device and system Download PDF

Info

Publication number
WO2019041669A1
WO2019041669A1 PCT/CN2017/117387 CN2017117387W WO2019041669A1 WO 2019041669 A1 WO2019041669 A1 WO 2019041669A1 CN 2017117387 W CN2017117387 W CN 2017117387W WO 2019041669 A1 WO2019041669 A1 WO 2019041669A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
report
controller
control
click
Prior art date
Application number
PCT/CN2017/117387
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 WO2019041669A1 publication Critical patent/WO2019041669A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Definitions

  • the invention relates to the technical field of program development in a live broadcast application, in particular to a method, a storage medium, a device and a system for implementing a report function in a video dating.
  • the video dating function is mainly used to facilitate the exchange of information between two people.
  • a reporting function will be designed in the video dating process.
  • the report function mainly uploads the audio file for a period of time before the report to the server of the live broadcast platform, and then manually identifies the problem in the process according to the uploaded audio file.
  • the traditional design of the report function in the video dating process is to directly link the related business of the report to the Activity that implements the report function (Activity can be simply understood as a page, which is mainly used to provide a page for the user to use to complete the interaction. A task), then directly listen to the reported message event in the Activity page.
  • the biggest problem in the traditional way is to directly report the single function logic of the report to the Activity page, which will make the business logic in the Activity page become abnormally complex and coupled with the Activity page too. High, reducing the maintainability and scalability of the code.
  • the object of the present invention is to overcome the deficiencies of the above background art, and to provide a method, a storage medium, a device and a system for implementing a report function in a video dating, which can effectively separate the business logic of the report function from the Activity page, which is extremely Improve program scalability and maintainability.
  • the technical solution adopted by the present invention is to provide a method for implementing a report function in a video dating, the method comprising the following steps:
  • the report function dialog box When the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped up; the report function dialog box has a confirmation report control and a cancel report control, and the UI layer of the report function dialog box is encapsulated in the business logic package.
  • the dialog monitoring class In the preset dialog monitoring class, the dialog monitoring class is used for monitoring the confirmation report control, canceling the click event of the report control, and the dialog monitoring class is pre-set for message transmission with the controller in the control layer. Message communication protocol;
  • dialog monitoring class monitors the confirmation report control or cancels the click event of the report control
  • dialog message monitoring protocol preset in the class is used to confirm the report control or cancel the click message of the report control.
  • the controller receives the click message of the confirmation report control, the report uploads the related business logic, and feeds the processed result message to the UI layer of the Activity page; the Activity page is updated according to the message of the processing result.
  • the view element on the current interface If the controller receives the click message of the confirmation report control, the report uploads the related business logic, and feeds the processed result message to the UI layer of the Activity page; the Activity page is updated according to the message of the processing result.
  • the view element on the current interface If the controller receives the click message of the confirmation report control, the report uploads the related business logic, and feeds the processed result message to the UI layer of the Activity page; the Activity page is updated according to the message of the processing result.
  • the view element on the current interface If the controller receives the click message of the confirmation report control, the report uploads the related business logic, and feeds the processed result message to the UI layer of the Activity page; the Activity page is updated according to the message of the processing result.
  • the view element on the current interface If the controller
  • step S2 includes the following operations;
  • Defining a local collection variable in a preset dialog monitoring class the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object; Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method; once the dialog monitoring class listens to the confirmation After reporting the control or canceling the click event of the report control, it will traverse all the controller objects in the current local collection variable, and will confirm the report control or cancel the click message of the report control by calling the message communication protocol object corresponding to each controller object. Passed to the corresponding controller in the control layer.
  • step S3 the controller feeds back the message of the processing result to the UI layer of the Activity page, which specifically includes the following operations:
  • An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
  • the message of the processing result is delivered to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message determines the loop logic
  • the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
  • step S3 further includes the following operations: if the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation ends.
  • the present invention also provides a storage medium having stored thereon a computer program, the computer program being executed by the processor to implement the steps of the method for implementing the reporting function in the video dating.
  • the present invention also provides an apparatus for implementing a report function in a video dating, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, the processor implementing the video when the computer program is executed The steps to implement the reporting function in a friend.
  • the invention also provides a system for implementing a report function in a video dating, the system comprising an event monitoring module, a message passing module and a page view updating module;
  • the event monitoring module is configured to: when the user clicks the report button in the Activity page that implements the report function, popping up a report function dialog box; the report function dialog box has a confirmation report control and a cancel report control, and the report function dialog box.
  • the business logic of the UI layer is encapsulated in a preset dialog monitoring class, and the dialog monitoring class is used for monitoring and confirming the report control, canceling the click event of the report control, and the dialog monitoring class is pre-configured for use in the control layer.
  • a message communication protocol for the controller to perform message delivery;
  • the message passing module is configured to: when the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, uses the message communication protocol preset in the dialog monitoring class to confirm the report control or cancel the click of the report control
  • the message is delivered to a controller for processing the relevant business logic of the report upload;
  • the page view update module is configured to: when the controller receives the click message of the confirmation report control, use the controller to report and upload the relevant business logic, and use the controller to feed back the message of the processing result to the UI layer of the Activity page.
  • the Control Activity page will update the view elements on the current interface based on the message that processed the results.
  • Defining a local collection variable in a preset dialog monitoring class the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object; Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method; once the dialog monitoring class listens to the confirmation After reporting the control or canceling the click event of the report control, iterate through all the controller objects in the current local collection variable, and by clicking the message communication protocol object corresponding to each controller object, the confirmation message of the confirmation report or the cancellation report control will be confirmed. Go to the corresponding controller in the control layer.
  • An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
  • the controller After the controller performs the process of uploading and uploading the relevant business logic, the controller passes the message of the processing result to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message When the loop logic determines that the message with the processing result in the synchronization queue is determined, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
  • the page view update module is further configured to: when the controller receives the click message of canceling the report control, close the report function dialog box and end the operation.
  • the business logic of the UI layer is all encapsulated into a preset dialog monitoring class, which can independently implement the UI layer business logic of the reporting function, thereby achieving the business logic of the UI layer.
  • the purpose of isolation from the Activity at the same time, the dialog box is used to implement the control of the click message of the control to the control layer, so that the controller in the control layer only needs to listen to the message transmitted by the dialog monitoring class. In this way, the controller can perform business logic processing independent of the UI layer, so that the business logic of the control layer can be decoupled from the business logic of the UI layer.
  • the present invention can effectively decouple the coupling relationship between the business logic of the reporting function and the Activity page, so that the business logic of the reporting function is more independent, which not only greatly improves the scalability and maintainability of the program, but also The report function has better reusability in the later stage and reduces the development cost.
  • the controller in the control layer in the present invention feeds back the message of the processing result to the UI layer of the Activity page through an event router, further ensuring that the control layer can more smoothly and accurately feed back the message of the processing result to the UI layer.
  • the event router uses a synchronization queue, which can effectively avoid abnormal problems caused by message concurrency and has high reliability.
  • FIG. 1 is a flowchart of a method for implementing a report function in a video dating in an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for implementing a report function in video dating in an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a system for implementing a report function in a video dating in an embodiment of the present invention.
  • an embodiment of the present invention provides a method for implementing a report function in video dating, and the method includes the following steps:
  • Step S1 When the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped up; the report function dialog box has a confirmation report control and a cancel report control, and the UI of the report function dialog box (User Interface, The business logic of the user interface layer is encapsulated in a preset dialog monitoring class, which is used to monitor and confirm the report control, cancel the click event of the report control, and the dialog monitor class is pre-configured for use with The message communication protocol in which the controller performs message delivery in the control layer proceeds to step S2.
  • the business logic of the UI layer is all encapsulated into a preset dialog monitoring class, and then the control reporting method is invoked in the inner part of the class to monitor and confirm the report control and cancel the report control. Click on the callback event so that the click message of the two controls in the report function dialog can be passed from the UI layer to the dialog monitor class.
  • This class can be independent of the implementation of the UI layer business logic of the reporting function, and also provides the basis for the subsequent message delivery. Through the implementation of this step, the business logic of the UI layer of the reporting function can be effectively isolated from the Activity.
  • the preset dialog monitoring class can be implemented by inheriting the DialogFragment class (the dialog fragment class) provided by the Android system.
  • the DialogFragment class is an advanced dialog base class provided by the Android system. Based on the DialogFragment base class, the business logic of the dialog box can be quickly implemented. Therefore, the dialog monitoring class can be implemented by inheriting the DialogFragment class, so that the dialog monitoring class can be used to listen to the confirmation report control and cancel the click event of the report control. More specifically, the dialog monitoring class can implement the monitoring of the click event of the confirmation report control and the cancellation report control, and can be monitored by calling the click monitor method setOnClickListener in the view object of the report control/cancellation control control. After the method is called, when the user clicks the confirmation report control/cancel report control, the click event of the corresponding control is called back to the preset dialog monitoring class.
  • Step S2 After the dialog monitoring class monitors the confirmation report control or cancels the click event of the report control, the dialog message monitoring protocol preset in the class is used to confirm the report control or cancel the click message of the report control. It is passed to the controller for processing the report upload related business logic, and proceeds to step S3.
  • the dialog box monitoring class is used to implement the delivery of the click message of the control to the control layer. Therefore, the controller in the control layer only needs to listen to the message of the dialog monitoring class, so that The controller can perform business logic processing independent of the UI layer, so that the business logic of the control layer can be decoupled from the business logic of the UI layer.
  • the preset message communication protocol mainly transmits the click message of the confirmation report control or the cancel report control in the report function dialog box to the controller in the control layer. Therefore, in the specific operation, the embodiment uses two protocol methods corresponding to the confirmation report control and the cancel report control in the preset message communication protocol to implement communication with the outer control layer.
  • the default message communication protocol can be designed as follows:
  • the name of the message communication protocol is IReportDialogCallback, which means that the message in the report function dialog box is returned.
  • IReportDialogCallback two protocol methods are designed: onReportDialogOKClick() and onReportDialogCancelClick().
  • the onReportDialogOKClick() protocol method is used to implement the confirmation message of the confirmation report control to the controller in the control layer;
  • the onReportDialogCancelClick() protocol method is used to implement the message of canceling the report control to the controller in the control layer. in.
  • multiple controllers in the control layer may need to obtain a click message of the control to implement multiple functional requirements.
  • the controller in the control layer for processing the report upload related business logic needs to obtain the click message of the control; and in order to meet the data persistence requirement, the control layer is used to process the file read and write related business logic.
  • the controller also needs to get the control's click message and so on. Therefore, for the case where multiple controllers in the control layer need to obtain the click message of the control, the multi-object registration method may be adopted, which specifically includes the following operations:
  • each controller object has the type For message communication protocol objects, such as the IReportDialogCallback object. That is, each controller object corresponds to a message communication protocol object.
  • the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, it will traverse all the controller objects in the current local collection variable listListeners, and call the message communication protocol object corresponding to each controller object. , the confirmation message of the confirmation report control or the cancellation report control is passed to the corresponding controller in the control layer.
  • Step S3 if the controller receives the click message of the confirmation report control, the report uploads the relevant business logic processing, and feeds back the message of the processing result (including the message that the report upload is successful or the report that the report upload fails) to the Activity.
  • the Activity page will update the view element on the current interface according to the message of the processing result; if the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation ends.
  • the Activity page updates the view element on the current interface according to the message of the processing result
  • the content of the specifically updated view element can be set by the developer according to the specific use requirement. For example, when receiving a message that the report is successfully uploaded, the Activity page may update the view element of the current interface to a prompt page prompting the report to be successfully uploaded, and the confirmation report control and/or the cancel report control may be grayed out even if the control is unavailable; When receiving the message that the report upload failed, the Activity page may update the view element of the current interface to a prompt page for prompting the upload failure.
  • the controller in the control layer feeds back the message of the processing result to the UI layer of the Activity page through an event router.
  • the controller feeds back the message of the processing result (including the message that the report upload is successful or the message that the report upload fails) to the UI layer of the Activity page, and specifically includes the following process:
  • the message of the processing result is delivered to the event router; the event router automatically passes the received processing result message to the push method (the synchronization queue has one use)
  • the conventional method of adding data is pushed into the synchronization queue; when the next message judgment loop logic determines the message having the processing result in the synchronization queue, the event router takes the message of the processing result from the synchronization queue and sends it to the Activity.
  • the event router takes the message of the processing result from the synchronization queue and sends it to the Activity. In the UI layer of the page.
  • the coupling relationship between the reporting function and the Activity page can be effectively decoupled, and the view element update service of the Activity page can be finally completed in time through the flow of the multi-level message. It can greatly improve the scalability and maintainability of the program while ensuring that the original report function is unchanged.
  • the embodiment of the present invention further provides a storage medium, where the computer program is stored, and the computer program can be implemented by the processor to implement the reduced function in the foregoing embodiments.
  • the steps of the method of page request times includes a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a disk or an optical disk, and the like.
  • the medium of the code includes a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a disk or an optical disk, and the like.
  • the embodiment of the present invention further provides a device for implementing a report function in a video dating, including a memory, a processor, and a memory and A computer program executable on a processor, the processor executing the computer program to implement the steps of the method for implementing the reporting function in video dating in the various embodiments described above.
  • an embodiment of the present invention further provides a system for implementing a report function in a video dating, the system comprising an event monitoring module, a message passing module, and a page view updating module.
  • the event monitoring module is configured to: when the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped; the report function dialog box has a confirmation report control and a cancel report control, and the report function dialog box
  • the business logic of the UI layer is encapsulated in a preset dialog monitoring class, and the dialog monitoring class is used for monitoring and confirming the report control, canceling the click event of the report control, and the dialog monitoring class is pre-configured for use in the control layer.
  • a message communication protocol for the controller to perform message delivery;
  • the message passing module is configured to: when the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, uses the message communication protocol preset in the dialog monitoring class to confirm the click control of the report control or cancel the report control To the controller for processing the report related business logic; when the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation is ended;
  • the page view update module is configured to: when the controller receives the click message of the confirmation report control, use the controller to report and upload the relevant business logic, and use the controller to feed back the message of the processing result to the UI layer of the Activity page; Controlling the Activity page will update the view elements on the current interface based on the message that processed the results. .
  • the message delivery module performs processing in a multi-object registration manner, in order to meet the situation that multiple controllers need to obtain a click message of the control to implement multiple function requirements in an actual application.
  • the specific process of the message passing module performing the message passing operation is:
  • the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object;
  • the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, it traverses all the controller objects in the current local collection variable, and confirms the report control by calling the message communication protocol object corresponding to each controller object. Or cancel the click message of the report control to the corresponding controller in the control layer.
  • the page view update module uses the controller to feed back the message of the processing result to the Activity.
  • the specific process in the UI layer of the page is:
  • An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
  • the controller After the controller performs the process of uploading and uploading the relevant business logic, the controller passes the message of the processing result to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message When the loop logic determines that the message with the processing result in the synchronization queue is determined, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.

Abstract

Provided are a method for realizing a report function in video friend making, a storage medium, a device and a system, which relate to the technical field of program development in live broadcast applications. The method comprises: when a user clicks on a report button, a report function dialog box popping up, wherein service logic of a UI layer of the dialog box is packaged in a pre-set dialog box monitoring class; when the dialog box monitoring class monitors a click event of a report confirmation/cancellation control, transmitting the corresponding click message to a controller of a control layer by means of a pre-set message communication protocol in the dialog box monitoring class; if the controller receives a click message of the report confirmation control, carrying out processing of reporting and uploading relevant service logic, and feeding a message of a processing result back to an Activity page; and the Activity page updating view elements on the current interface according to the message of the processing result. According to the invention, service logic of the report function can be decoupled from the Activity page, thus greatly improving expandability and maintainability of a program.

Description

视频交友中实现举报功能的方法、存储介质、设备及系统Method, storage medium, device and system for realizing report function in video dating 技术领域Technical field
本发明涉及直播应用中的程序开发技术领域,具体来讲是一种视频交友中实现举报功能的方法、存储介质、设备及系统。The invention relates to the technical field of program development in a live broadcast application, in particular to a method, a storage medium, a device and a system for implementing a report function in a video dating.
背景技术Background technique
随着移动终端的快速发展,特别是手机移动终端的快速发展,直播行业越来越受欢迎,很多用户喜欢通过移动终端设备来观看直播。而在各种直播APP(Application,应用程序)的开发过程中,通常会设计一个子功能——视频交友功能。该视频交友功能主要是方便两个人之间进行信息交流而使用的。但随着用户对视频交友功能的使用需求越来越高,为了满足用户在视频交友过程中的举报需求,会在视频交友过程中设计一个举报功能。该举报功能主要是将举报之前的一段时间的音频文件上传到直播平台的服务器,再由人工根据上传的音频文件来对交由过程中的问题进行鉴别。With the rapid development of mobile terminals, especially the rapid development of mobile terminals, the live broadcast industry is becoming more and more popular, and many users like to watch live broadcasts through mobile terminal devices. In the development process of various live applications (applications), a sub-function is usually designed - video dating. The video dating function is mainly used to facilitate the exchange of information between two people. However, as the user's use of the video dating function is higher and higher, in order to meet the user's reporting needs in the video dating process, a reporting function will be designed in the video dating process. The report function mainly uploads the audio file for a period of time before the report to the server of the live broadcast platform, and then manually identifies the problem in the process according to the uploaded audio file.
传统的在视频交友过程中实现举报功能的设计是将举报的相关业务直接耦合在实现举报功能的Activity中(Activity可以简单的理解为一个页面,主要用于提供一个页面供用户用来交互而完成某项任务),然后直接在Activity页面中监听举报的消息事件。传统的这种方式最大的问题是将举报这种功能单一的逻辑直接耦合到Activity页面中来进行实现了,这样会使得Activity页面中的业务逻辑变得异常的复杂且与Activity页面的耦合性太高,降低了代码的可维护性及扩展性。The traditional design of the report function in the video dating process is to directly link the related business of the report to the Activity that implements the report function (Activity can be simply understood as a page, which is mainly used to provide a page for the user to use to complete the interaction. A task), then directly listen to the reported message event in the Activity page. The biggest problem in the traditional way is to directly report the single function logic of the report to the Activity page, which will make the business logic in the Activity page become abnormally complex and coupled with the Activity page too. High, reducing the maintainability and scalability of the code.
发明内容Summary of the invention
本发明的目的是为了克服上述背景技术的不足,提供一种视频交友中实现举报功能的方法、存储介质、设备及系统,能够有效的将举报功能的业务逻辑与Activity页面进行分离,极大的提高程序的可扩展性和可维护性。The object of the present invention is to overcome the deficiencies of the above background art, and to provide a method, a storage medium, a device and a system for implementing a report function in a video dating, which can effectively separate the business logic of the report function from the Activity page, which is extremely Improve program scalability and maintainability.
为达到以上目的,本发明采取的技术方案是:提供一种视频交友中实现举报功能的方法,该方法包括以下步骤:To achieve the above objective, the technical solution adopted by the present invention is to provide a method for implementing a report function in a video dating, the method comprising the following steps:
S1、当用户在实现举报功能的Activity页面中点击举报按钮时,弹出举报功能对话框;该举报功能对话框具有确认举报控件和取消举报控件,且该举报功能对话框的UI层的业务逻辑封装在预设的对话框监控类中,该对话框监控类用于监听确认举报控件、取消举报控件的点击事件,且该对话框监控类中预设有用于与控制层中控制器进行消息传递的消息通信协议;S1. When the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped up; the report function dialog box has a confirmation report control and a cancel report control, and the UI layer of the report function dialog box is encapsulated in the business logic package. In the preset dialog monitoring class, the dialog monitoring class is used for monitoring the confirmation report control, canceling the click event of the report control, and the dialog monitoring class is pre-set for message transmission with the controller in the control layer. Message communication protocol;
S2、当所述对话框监控类监听到确认举报控件或取消举报控件的点击事件后,利用所述对话框监控类中预设的消息通信协议,将确认举报控件或取消举报控件的点击消息传递至用于处理举报上传相关业务逻辑的控制器中;S2. After the dialog monitoring class monitors the confirmation report control or cancels the click event of the report control, the dialog message monitoring protocol preset in the class is used to confirm the report control or cancel the click message of the report control. To the controller used to process the report-related business logic;
S3、若所述控制器收到确认举报控件的点击消息,则进行举报上传相关业务逻辑的处理,并将处理结果的消息反馈至Activity页面的UI层中;Activity页面将根据处理结果的消息更新当前界面上的视图元素。S3. If the controller receives the click message of the confirmation report control, the report uploads the related business logic, and feeds the processed result message to the UI layer of the Activity page; the Activity page is updated according to the message of the processing result. The view element on the current interface.
在上述技术方案的基础上,若控制层中有多个控制器需要获取对话框监控类传递的点击消息时,步骤S2包括以下操作;On the basis of the foregoing technical solution, if a plurality of controllers in the control layer need to obtain a click message transmitted by the dialog monitoring class, step S2 includes the following operations;
在预设的对话框监控类中定义一个局部集合变量,该局部集合变量用于保存控制层中需要获取点击消息的所有控制器对象,且每个控 制器对象的类型均为消息通信协议对象;在预设的对话框监控类中定义一个注册方法,在该注册方法中通过调用局部集合变量添加方法将需要获取点击消息的控制器对象加入到局部集合变量中;一旦对话框监控类监听到确认举报控件或取消举报控件的点击事件后,会遍历当前局部集合变量中的所有控制器对象,并通过调用每个控制器对象对应的消息通信协议对象,将确认举报控件或取消举报控件的点击消息传递至控制层中相应的控制器中。Defining a local collection variable in a preset dialog monitoring class, the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object; Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method; once the dialog monitoring class listens to the confirmation After reporting the control or canceling the click event of the report control, it will traverse all the controller objects in the current local collection variable, and will confirm the report control or cancel the click message of the report control by calling the message communication protocol object corresponding to each controller object. Passed to the corresponding controller in the control layer.
在上述技术方案的基础上,步骤S3中,控制器将处理结果的消息反馈至Activity页面的UI层中,具体包括以下操作:On the basis of the foregoing technical solution, in step S3, the controller feeds back the message of the processing result to the UI layer of the Activity page, which specifically includes the following operations:
在控制器与Activity页面之间创建一个事件路由器,在该事件路由器的内部定义一个同步队列及一个消息判断循环逻辑体,所述消息判断循环逻辑体用于判定同步队列中是否有消息,如果有消息就直接将该消息发送到Activity页面的UI层中,如果没有,就进入下一次循环判断逻辑中;An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
当控制器进行举报上传相关业务逻辑的处理后,将处理结果的消息传递到事件路由器中;该事件路由器会自动将收到的处理结果的消息压入到同步队列中;当下次消息判断循环逻辑体判定同步队列中具有处理结果的消息时,该事件路由器从同步队列中取出该处理结果的消息并发送到Activity页面的UI层中。After the controller performs the processing of uploading the relevant business logic, the message of the processing result is delivered to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message determines the loop logic When the body determines the message with the processing result in the synchronization queue, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
在上述技术方案的基础上,步骤S3还包括以下操作:若所述控制器收到取消举报控件的点击消息,则关闭举报功能对话框并结束操作。Based on the above technical solution, step S3 further includes the following operations: if the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation ends.
本发明还提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述视频交友中实现举报功能的方法的步骤。The present invention also provides a storage medium having stored thereon a computer program, the computer program being executed by the processor to implement the steps of the method for implementing the reporting function in the video dating.
本发明还提供一种视频交友中实现举报功能的设备,包括存储器、处理器及存储在存储器上并在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述视频交友中实现举报功能的方法的步骤。The present invention also provides an apparatus for implementing a report function in a video dating, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, the processor implementing the video when the computer program is executed The steps to implement the reporting function in a friend.
本发明还提供一种视频交友中实现举报功能的系统,该系统包括事件监听模块、消息传递模块和页面视图更新模块;The invention also provides a system for implementing a report function in a video dating, the system comprising an event monitoring module, a message passing module and a page view updating module;
所述事件监听模块用于:当用户在实现举报功能的Activity页面中点击举报按钮时,弹出举报功能对话框;该举报功能对话框具有确认举报控件和取消举报控件,且该举报功能对话框的UI层的业务逻辑封装在预设的对话框监控类中,该对话框监控类用于监听确认举报控件、取消举报控件的点击事件,且该对话框监控类中预设有用于与控制层中控制器进行消息传递的消息通信协议;The event monitoring module is configured to: when the user clicks the report button in the Activity page that implements the report function, popping up a report function dialog box; the report function dialog box has a confirmation report control and a cancel report control, and the report function dialog box The business logic of the UI layer is encapsulated in a preset dialog monitoring class, and the dialog monitoring class is used for monitoring and confirming the report control, canceling the click event of the report control, and the dialog monitoring class is pre-configured for use in the control layer. a message communication protocol for the controller to perform message delivery;
所述消息传递模块用于:当对话框监控类监听到确认举报控件或取消举报控件的点击事件后,利用对话框监控类中预设的消息通信协议,将确认举报控件或取消举报控件的点击消息传递至用于处理举报上传相关业务逻辑的控制器中;The message passing module is configured to: when the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, uses the message communication protocol preset in the dialog monitoring class to confirm the report control or cancel the click of the report control The message is delivered to a controller for processing the relevant business logic of the report upload;
所述页面视图更新模块用于:当控制器收到确认举报控件的点击消息时,利用控制器进行举报上传相关业务逻辑的处理,并利用控制器将处理结果的消息反馈至Activity页面的UI层中;控制Activity页面将根据处理结果的消息更新当前界面上的视图元素。The page view update module is configured to: when the controller receives the click message of the confirmation report control, use the controller to report and upload the relevant business logic, and use the controller to feed back the message of the processing result to the UI layer of the Activity page. The Control Activity page will update the view elements on the current interface based on the message that processed the results.
在上述技术方案的基础上,若控制层中有多个控制器需要获取对话框监控类传递的点击消息时,所述消息传递模块进行消息传递操作的具体流程为:On the basis of the foregoing technical solution, if multiple controllers in the control layer need to obtain a click message transmitted by the dialog monitoring class, the specific process of the message delivery module performing the message delivery operation is:
在预设的对话框监控类中定义一个局部集合变量,该局部集合变量用于保存控制层中需要获取点击消息的所有控制器对象,且每个控 制器对象的类型均为消息通信协议对象;在预设的对话框监控类中定义一个注册方法,在该注册方法中通过调用局部集合变量添加方法将需要获取点击消息的控制器对象加入到局部集合变量中;一旦对话框监控类监听到确认举报控件或取消举报控件的点击事件后,遍历当前局部集合变量中的所有控制器对象,并通过调用每个控制器对象对应的消息通信协议对象,将确认举报控件或取消举报控件的点击消息传递至控制层中相应的控制器中。Defining a local collection variable in a preset dialog monitoring class, the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object; Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method; once the dialog monitoring class listens to the confirmation After reporting the control or canceling the click event of the report control, iterate through all the controller objects in the current local collection variable, and by clicking the message communication protocol object corresponding to each controller object, the confirmation message of the confirmation report or the cancellation report control will be confirmed. Go to the corresponding controller in the control layer.
在上述技术方案的基础上,所述页面视图更新模块利用控制器将处理结果的消息反馈至Activity页面的UI层中的具体流程为:On the basis of the above technical solution, the specific process of the page view update module using the controller to feed back the message of the processing result to the UI layer of the Activity page is:
在控制器与Activity页面之间创建一个事件路由器,在该事件路由器的内部定义一个同步队列及一个消息判断循环逻辑体,所述消息判断循环逻辑体用于判定同步队列中是否有消息,如果有消息就直接将该消息发送到Activity页面的UI层中,如果没有,就进入下一次循环判断逻辑中;An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
当控制器进行举报上传相关业务逻辑的处理后,利用控制器将处理结果的消息传递到事件路由器中;该事件路由器会自动将收到的处理结果的消息压入到同步队列中;当下次消息判断循环逻辑体判定同步队列中具有处理结果的消息时,该事件路由器从同步队列中取出该处理结果的消息并发送到Activity页面的UI层中。After the controller performs the process of uploading and uploading the relevant business logic, the controller passes the message of the processing result to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message When the loop logic determines that the message with the processing result in the synchronization queue is determined, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
在上述技术方案的基础上,所述页面视图更新模块还用于:当控制器收到取消举报控件的点击消息时,关闭举报功能对话框并结束操作。On the basis of the foregoing technical solution, the page view update module is further configured to: when the controller receives the click message of canceling the report control, close the report function dialog box and end the operation.
本发明的有益效果在于:The beneficial effects of the invention are:
(1)本发明中,将UI层的业务逻辑全部封装到一个预设的对话框监控类中,该类能将举报功能的UI层业务逻辑的实现进行独立, 从而达到将UI层的业务逻辑与Activity进行隔离的目的;与此同时,还利用该对话框监控类来实现控件的点击消息向控制层的传递,使得控制层中的控制器只需监听对话框监控类传递的消息即可,这样控制器内部就可以做到与UI层无关的业务逻辑处理了,从而使得控制层的业务逻辑能与UI层的业务逻辑解耦开。(1) In the present invention, the business logic of the UI layer is all encapsulated into a preset dialog monitoring class, which can independently implement the UI layer business logic of the reporting function, thereby achieving the business logic of the UI layer. The purpose of isolation from the Activity; at the same time, the dialog box is used to implement the control of the click message of the control to the control layer, so that the controller in the control layer only needs to listen to the message transmitted by the dialog monitoring class. In this way, the controller can perform business logic processing independent of the UI layer, so that the business logic of the control layer can be decoupled from the business logic of the UI layer.
由此可见,本发明能够有效的解耦举报功能的业务逻辑与Activity页面之间的耦合关系,使得举报功能的业务逻辑更加独立,不但极大的提高程序的可扩展性和可维护性,而且使得举报功能在后期具备更好的复用性,降低了开发成本。It can be seen that the present invention can effectively decouple the coupling relationship between the business logic of the reporting function and the Activity page, so that the business logic of the reporting function is more independent, which not only greatly improves the scalability and maintainability of the program, but also The report function has better reusability in the later stage and reduces the development cost.
(2)本发明中,针对实际应用中会出现多个控制器需要通过获取控件的点击消息来实现多个功能需求的情况,做出了特殊的设计处理,不但满足了多控制器获取点击消息的使用需求,而且使得本发明的适用性更广、可拓展性更强。(2) In the present invention, in the actual application, multiple controllers need to obtain a plurality of functional requirements by acquiring a click message of the control, and a special design process is performed, which not only satisfies the multi-controller acquiring the click message. The use requirements, and make the invention more applicable and more expandable.
(3)本发明中控制层中的控制器是通过一个事件路由器将处理结果的消息反馈至Activity页面的UI层中的,进一步保证了控制层能更顺利、准确地将处理结果的消息反馈至Activity页面的UI层中。并且,该事件路由器中使用的是同步队列,可以有效的避免消息并发所产生的异常问题,可靠性高。(3) The controller in the control layer in the present invention feeds back the message of the processing result to the UI layer of the Activity page through an event router, further ensuring that the control layer can more smoothly and accurately feed back the message of the processing result to the UI layer. The UI layer of the Activity page. Moreover, the event router uses a synchronization queue, which can effectively avoid abnormal problems caused by message concurrency and has high reliability.
附图说明DRAWINGS
图1为本发明实施例中视频交友中实现举报功能的方法的流程图;1 is a flowchart of a method for implementing a report function in a video dating in an embodiment of the present invention;
图2为本发明实施例中视频交友中实现举报功能的设备的结构示意图;2 is a schematic structural diagram of an apparatus for implementing a report function in video dating in an embodiment of the present invention;
图3为本发明实施例中视频交友中实现举报功能的系统的结构框图。FIG. 3 is a structural block diagram of a system for implementing a report function in a video dating in an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图及具体实施例对本发明作进一步的详细描述。The present invention will be further described in detail below with reference to the drawings and specific embodiments.
参见图1所示,本发明实施例提供一种视频交友中实现举报功能的方法,该方法包括以下步骤:As shown in FIG. 1 , an embodiment of the present invention provides a method for implementing a report function in video dating, and the method includes the following steps:
步骤S1、当用户在实现举报功能的Activity页面中点击举报按钮时,弹出举报功能对话框;该举报功能对话框具有确认举报控件和取消举报控件,且该举报功能对话框的UI(User Interface,用户界面)层的业务逻辑封装在一个预设的对话框监控类中,该对话框监控类用于监听确认举报控件、取消举报控件的点击事件,且该对话框监控类中预设有用于与控制层中控制器进行消息传递的消息通信协议,转入步骤S2。Step S1: When the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped up; the report function dialog box has a confirmation report control and a cancel report control, and the UI of the report function dialog box (User Interface, The business logic of the user interface layer is encapsulated in a preset dialog monitoring class, which is used to monitor and confirm the report control, cancel the click event of the report control, and the dialog monitor class is pre-configured for use with The message communication protocol in which the controller performs message delivery in the control layer proceeds to step S2.
可以理解的是,本发明实施例中将UI层的业务逻辑全部封装到一个预设的对话框监控类中,然后通过在该类内部中调用控件监听方法来监听确认举报控件和取消举报控件的点击回调事件,这样举报功能对话框的两个控件的点击消息就能从UI层传递到对话框监控类中了。该类能将举报功能的UI层业务逻辑的实现进行独立,也为后续的消息传递提供了实现基础。通过本步骤的实施能够有效的将举报功能的UI层的业务逻辑与Activity进行隔离。It can be understood that, in the embodiment of the present invention, the business logic of the UI layer is all encapsulated into a preset dialog monitoring class, and then the control reporting method is invoked in the inner part of the class to monitor and confirm the report control and cancel the report control. Click on the callback event so that the click message of the two controls in the report function dialog can be passed from the UI layer to the dialog monitor class. This class can be independent of the implementation of the UI layer business logic of the reporting function, and also provides the basis for the subsequent message delivery. Through the implementation of this step, the business logic of the UI layer of the reporting function can be effectively isolated from the Activity.
具体来说,以操作系统为Android系统为例,在实际操作中,预设的对话框监控类可以通过继承Android系统提供的DialogFragment类(对话框碎片类)来进行实现。该DialogFragment类是Android系统提供的一个高级的对话框基类,基于该DialogFragment基类能够快速的实现对话框的业务逻辑。因此,可以通过继承DialogFragment类来实现对话框监控类,使得该对话框监控类能用于监听确认举报控件、取消举报控件的点击事件。更具体地,该对话框监控类能实现对 确认举报控件、取消举报控件的点击事件的监听时,可通过调用确认举报控件/取消举报控件的视图对象中的点击监听方法setOnClickListener来进行监听,通过调用该方法后当用户点击确认举报控件/取消举报控件时,就会将对应控件的点击事件回调到预设的对话框监控类中了。Specifically, taking the operating system as the Android system as an example, in actual operation, the preset dialog monitoring class can be implemented by inheriting the DialogFragment class (the dialog fragment class) provided by the Android system. The DialogFragment class is an advanced dialog base class provided by the Android system. Based on the DialogFragment base class, the business logic of the dialog box can be quickly implemented. Therefore, the dialog monitoring class can be implemented by inheriting the DialogFragment class, so that the dialog monitoring class can be used to listen to the confirmation report control and cancel the click event of the report control. More specifically, the dialog monitoring class can implement the monitoring of the click event of the confirmation report control and the cancellation report control, and can be monitored by calling the click monitor method setOnClickListener in the view object of the report control/cancellation control control. After the method is called, when the user clicks the confirmation report control/cancel report control, the click event of the corresponding control is called back to the preset dialog monitoring class.
需要强调的是,上述的Android系统实例仅仅是一个例子而已,在其他的系统中(如IOS系统中),具体选用的方法(函数)等均可以根据其他系统的实际函数、代码、接口等情况进行具体的设计和调整,在此不做限制。It should be emphasized that the above Android system instance is only an example. In other systems (such as IOS system), the specific methods (functions) can be based on the actual functions, codes, interfaces, etc. of other systems. Specific design and adjustments are made without limitation.
步骤S2、当所述对话框监控类监听到确认举报控件或取消举报控件的点击事件后,利用所述对话框监控类中预设的消息通信协议,将确认举报控件或取消举报控件的点击消息传递至用于处理举报上传相关业务逻辑的控制器中,转入步骤S3。Step S2: After the dialog monitoring class monitors the confirmation report control or cancels the click event of the report control, the dialog message monitoring protocol preset in the class is used to confirm the report control or cancel the click message of the report control. It is passed to the controller for processing the report upload related business logic, and proceeds to step S3.
可以理解的是,由于本实施例中是利用对话框监控类来实现控件的点击消息向控制层的传递,因此,控制层中的控制器只需监听对话框监控类的传递消息即可,这样控制器内部就可以做到与UI层无关的业务逻辑处理了,从而使得控制层的业务逻辑能与UI层的业务逻辑解耦开。It can be understood that, in this embodiment, the dialog box monitoring class is used to implement the delivery of the click message of the control to the control layer. Therefore, the controller in the control layer only needs to listen to the message of the dialog monitoring class, so that The controller can perform business logic processing independent of the UI layer, so that the business logic of the control layer can be decoupled from the business logic of the UI layer.
另外,本实施例中,预设的消息通信协议主要是将举报功能对话框中确认举报控件或取消举报控件的点击消息传递至控制层中控制器的。因此,本实施例在具体操作时,是采用在预设的消息通信协议中设计两个与确认举报控件、取消举报控件对应的协议方法来实现与外层控制层通信的。In addition, in this embodiment, the preset message communication protocol mainly transmits the click message of the confirmation report control or the cancel report control in the report function dialog box to the controller in the control layer. Therefore, in the specific operation, the embodiment uses two protocol methods corresponding to the confirmation report control and the cancel report control in the preset message communication protocol to implement communication with the outer control layer.
举例来说,还是以操作系统为Android系统为例,预设的消息通信协议可设计如下:For example, taking the operating system as the Android system as an example, the default message communication protocol can be designed as follows:
Public interface IReportDialogCallback{Public interface IReportDialogCallback{
public void onReportDialogOKClick();Public void onReportDialogOKClick();
public void onReportDialogCancelClick();Public void onReportDialogCancelClick();
}}
该消息通信协议的名称为IReportDialogCallback,表示用于将举报功能对话框中的消息返回出去的意思。在消息通信协议IReportDialogCallback中,设计了两个协议方法:onReportDialogOKClick()、onReportDialogCancelClick()。其中,onReportDialogOKClick()协议方法用于实现将确认举报控件的点击消息传递至控制层中的控制器中;onReportDialogCancelClick()协议方法用于实现将取消举报控件的点击消息传递至控制层中的控制器中。通过上述两个协议方法可实现对话框监控类与外层控制层的通信。The name of the message communication protocol is IReportDialogCallback, which means that the message in the report function dialog box is returned. In the message communication protocol IReportDialogCallback, two protocol methods are designed: onReportDialogOKClick() and onReportDialogCancelClick(). The onReportDialogOKClick() protocol method is used to implement the confirmation message of the confirmation report control to the controller in the control layer; the onReportDialogCancelClick() protocol method is used to implement the message of canceling the report control to the controller in the control layer. in. Through the above two protocol methods, the communication between the dialog monitoring class and the outer control layer can be realized.
进一步地,由于实际应用中,随着应用场景或应用需求的变化,在控制层中会出现多个控制器需要获取控件的点击消息来实现多个功能需求的情况。例如,可能为了实现举报功能,控制层中用于处理举报上传相关业务逻辑的控制器需要获取控件的点击消息;又可能为了满足数据持久化需求,控制层中用于处理文件读写相关业务逻辑的控制器也需要获取控件的点击消息等等。因此,针对这种控制层中多个控制器需要获取控件的点击消息的情况,可采取多对象注册的方式进行处理,具体包括以下操作:Further, due to changes in application scenarios or application requirements, multiple controllers in the control layer may need to obtain a click message of the control to implement multiple functional requirements. For example, in order to implement the reporting function, the controller in the control layer for processing the report upload related business logic needs to obtain the click message of the control; and in order to meet the data persistence requirement, the control layer is used to process the file read and write related business logic. The controller also needs to get the control's click message and so on. Therefore, for the case where multiple controllers in the control layer need to obtain the click message of the control, the multi-object registration method may be adopted, which specifically includes the following operations:
(1)在预设的对话框监控类中定义一个局部集合变量,如listListeners;该局部集合变量用于保存控制层中需要获取点击消息的所有控制器对象,且每个控制器对象的类型均为消息通信协议对象,如IReportDialogCallback对象。也就是说,每个控制器对象对应一个消息通信协议对象。(1) Define a local collection variable in the preset dialog monitoring class, such as listListeners; this local collection variable is used to save all controller objects in the control layer that need to get the click message, and each controller object has the type For message communication protocol objects, such as the IReportDialogCallback object. That is, each controller object corresponds to a message communication protocol object.
(2)在预设的对话框监控类中定义一个注册方法,如registerIReportDialogCallback;在该注册方法中通过调用局部集合变量添加方法add(),将需要获取点击消息的控制器对象加入到局部集合变量listListeners中。(2) Define a registration method in the preset dialog monitoring class, such as registerIReportDialogCallback; in the registration method, add the method add() by calling the local collection variable, and add the controller object that needs to get the click message to the local collection variable. In listListeners.
(3)一旦对话框监控类监听到确认举报控件或取消举报控件的点击事件后,会遍历当前局部集合变量listListeners中的所有控制器对象,并通过调用每个控制器对象对应的消息通信协议对象,将确认举报控件或取消举报控件的点击消息传递至控制层中相应的控制器中。(3) Once the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, it will traverse all the controller objects in the current local collection variable listListeners, and call the message communication protocol object corresponding to each controller object. , the confirmation message of the confirmation report control or the cancellation report control is passed to the corresponding controller in the control layer.
由于我们将所有需要获取点击消息的控制器对象全部维系在局部集合变量listListeners中,所以能实现多个控制器对象同时监听到对话框监控类中的传递消息,从而满足了多控制器获取点击消息的使用需求,适用性更广、可拓展性强。Since we maintain all the controller objects that need to get the click message in the local collection variable listListeners, we can realize that multiple controller objects simultaneously listen to the delivery message in the dialog monitoring class, thus satisfying the multi-controller to obtain the click message. The use requirements are more applicable and expandable.
步骤S3、若所述控制器收到确认举报控件的点击消息,则进行举报上传相关业务逻辑的处理,并将处理结果的消息(包括举报上传成功的消息或举报上传失败的消息)反馈至Activity页面的UI层中,Activity页面将根据处理结果的消息更新当前界面上的视图元素;若所述控制器收到取消举报控件的点击消息,则关闭举报功能对话框并结束操作。Step S3, if the controller receives the click message of the confirmation report control, the report uploads the relevant business logic processing, and feeds back the message of the processing result (including the message that the report upload is successful or the report that the report upload fails) to the Activity. In the UI layer of the page, the Activity page will update the view element on the current interface according to the message of the processing result; if the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation ends.
可以理解的是,Activity页面根据处理结果的消息更新当前界面上的视图元素时,具体更新的视图元素的内容可根据具体的使用需求由开发人员自行设置。例如,当收到举报上传成功的消息时,Activity页面可将当前界面的视图元素更新为提示举报上传成功的提示页面,并将确认举报控件和/或取消举报控件变灰,即使控件不可用;当收到举报上传失败的消息时,Activity页面可将当前界面的视图元素更 新为提示举报上传失败的提示页面。It can be understood that when the Activity page updates the view element on the current interface according to the message of the processing result, the content of the specifically updated view element can be set by the developer according to the specific use requirement. For example, when receiving a message that the report is successfully uploaded, the Activity page may update the view element of the current interface to a prompt page prompting the report to be successfully uploaded, and the confirmation report control and/or the cancel report control may be grayed out even if the control is unavailable; When receiving the message that the report upload failed, the Activity page may update the view element of the current interface to a prompt page for prompting the upload failure.
进一步的,由于控制层与Activity页面的UI层之间是没有任何耦合关系的,为了使得控制层能更顺利、准确地将处理结果的消息反馈至Activity页面的UI层中,本发明实施例中,控制层中的控制器是通过一个事件路由器将处理结果的消息反馈至Activity页面的UI层中的。具体来说,步骤S3中,控制器将处理结果的消息(包括举报上传成功的消息或举报上传失败的消息)反馈至Activity页面的UI层中,具体包括以下流程:Further, since there is no coupling relationship between the control layer and the UI layer of the Activity page, in order to enable the control layer to feed back the message of the processing result to the UI layer of the Activity page, in the embodiment of the present invention, The controller in the control layer feeds back the message of the processing result to the UI layer of the Activity page through an event router. Specifically, in step S3, the controller feeds back the message of the processing result (including the message that the report upload is successful or the message that the report upload fails) to the UI layer of the Activity page, and specifically includes the following process:
1、在控制器与Activity页面之间创建一个事件路由器,在该事件路由器的内部定义一个同步队列及一个消息判断循环逻辑体(类似于For循环体),该消息判断循环逻辑体用于判定同步队列中是否有消息,如果有消息就直接将该消息发送到Activity页面的UI层中,如果没有,就进入下一次循环判断逻辑中。1. Create an event router between the controller and the Activity page, define a synchronization queue and a message judgment loop logic body (similar to the For Loop body) inside the event router, and the message determines that the loop logic body is used to determine synchronization. Whether there is a message in the queue, if there is a message, it will be sent directly to the UI layer of the Activity page. If not, it will enter the next loop judgment logic.
2、当控制器进行举报上传相关业务逻辑的处理后,将处理结果的消息传递到事件路由器中;该事件路由器会自动将收到的处理结果的消息通过push方法(同步队列所具有个一个用来添加数据的常规方法)压入到同步队列中;当下次消息判断循环逻辑体判定同步队列中具有该处理结果的消息时,该事件路由器从同步队列中取出该处理结果的消息并发送到Activity页面的UI层中。2. When the controller performs the processing of uploading the relevant business logic, the message of the processing result is delivered to the event router; the event router automatically passes the received processing result message to the push method (the synchronization queue has one use) The conventional method of adding data is pushed into the synchronization queue; when the next message judgment loop logic determines the message having the processing result in the synchronization queue, the event router takes the message of the processing result from the synchronization queue and sends it to the Activity. In the UI layer of the page.
利用上述方法实现视频交友过程中的举报功能时,能够有效的解耦举报功能与Activity页面之间的耦合关系,并且通过多级消息的流转最终能够及时的做到Activity页面的视图元素更新业务,在保证原始举报功能不变的前提下能够极大的提高程序的扩展性和可维护性。When the reporting method in the video dating process is implemented by the above method, the coupling relationship between the reporting function and the Activity page can be effectively decoupled, and the view element update service of the Activity page can be finally completed in time through the flow of the multi-level message. It can greatly improve the scalability and maintainability of the program while ensuring that the original report function is unchanged.
对应上述的一种视频交友中实现举报功能的方法,本发明实施例还提供一种存储介质,其上存储有计算机程序,该计算机程序被处理 器执行时可实现上述各实施例中的降低功能页面请求次数的方法的步骤。需要说明的是,所述存储介质包括U盘、移动硬盘、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、磁碟或者光盘等各种可以存储程序代码的介质。Corresponding to the method for implementing the report function in a video dating, the embodiment of the present invention further provides a storage medium, where the computer program is stored, and the computer program can be implemented by the processor to implement the reduced function in the foregoing embodiments. The steps of the method of page request times. It should be noted that the storage medium includes a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a disk or an optical disk, and the like. The medium of the code.
另外,参见图2所示,对应上述的一种视频交友中实现举报功能的方法,本发明实施例还提供一种视频交友中实现举报功能的设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,该处理器执行计算机程序时可实现上述各实施例中的视频交友中实现举报功能的方法的步骤。In addition, as shown in FIG. 2, in accordance with the foregoing method for implementing a report function in a video dating, the embodiment of the present invention further provides a device for implementing a report function in a video dating, including a memory, a processor, and a memory and A computer program executable on a processor, the processor executing the computer program to implement the steps of the method for implementing the reporting function in video dating in the various embodiments described above.
参见图3所示,本发明实施例还提供一种视频交友中实现举报功能的系统,该系统包括事件监听模块、消息传递模块和页面视图更新模块。As shown in FIG. 3, an embodiment of the present invention further provides a system for implementing a report function in a video dating, the system comprising an event monitoring module, a message passing module, and a page view updating module.
其中,事件监听模块用于:当用户在实现举报功能的Activity页面中点击举报按钮时,弹出举报功能对话框;该举报功能对话框具有确认举报控件和取消举报控件,且该举报功能对话框的UI层的业务逻辑封装在预设的对话框监控类中,该对话框监控类用于监听确认举报控件、取消举报控件的点击事件,且该对话框监控类中预设有用于与控制层中控制器进行消息传递的消息通信协议;The event monitoring module is configured to: when the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped; the report function dialog box has a confirmation report control and a cancel report control, and the report function dialog box The business logic of the UI layer is encapsulated in a preset dialog monitoring class, and the dialog monitoring class is used for monitoring and confirming the report control, canceling the click event of the report control, and the dialog monitoring class is pre-configured for use in the control layer. a message communication protocol for the controller to perform message delivery;
消息传递模块用于:当对话框监控类监听到确认举报控件或取消举报控件的点击事件后,利用对话框监控类中预设的消息通信协议,将确认举报控件或取消举报控件的点击消息传递至用于处理举报上传相关业务逻辑的控制器中;当控制器收到取消举报控件的点击消息时,关闭举报功能对话框并结束操作;The message passing module is configured to: when the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, uses the message communication protocol preset in the dialog monitoring class to confirm the click control of the report control or cancel the report control To the controller for processing the report related business logic; when the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation is ended;
页面视图更新模块用于:当控制器收到确认举报控件的点击消息时,利用控制器进行举报上传相关业务逻辑的处理,并利用控制器将 处理结果的消息反馈至Activity页面的UI层中;控制Activity页面将根据处理结果的消息更新当前界面上的视图元素。。The page view update module is configured to: when the controller receives the click message of the confirmation report control, use the controller to report and upload the relevant business logic, and use the controller to feed back the message of the processing result to the UI layer of the Activity page; Controlling the Activity page will update the view elements on the current interface based on the message that processed the results. .
进一步的,为了能满足实际应用中出现多个控制器需要获取控件的点击消息来实现多个功能需求的情况,本发明实施例中,所述消息传递模块采取多对象注册的方式进行处理。具体来说,所述消息传递模块进行消息传递操作的具体流程为:Further, in the embodiment of the present invention, the message delivery module performs processing in a multi-object registration manner, in order to meet the situation that multiple controllers need to obtain a click message of the control to implement multiple function requirements in an actual application. Specifically, the specific process of the message passing module performing the message passing operation is:
在预设的对话框监控类中定义一个局部集合变量,该局部集合变量用于保存控制层中需要获取点击消息的所有控制器对象,且每个控制器对象的类型均为消息通信协议对象;Defining a local collection variable in a preset dialog monitoring class, the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object;
在预设的对话框监控类中定义一个注册方法,在该注册方法中通过调用局部集合变量添加方法将需要获取点击消息的控制器对象加入到局部集合变量中;Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method;
一旦对话框监控类监听到确认举报控件或取消举报控件的点击事件后,遍历当前局部集合变量中的所有控制器对象,并通过调用每个控制器对象对应的消息通信协议对象,将确认举报控件或取消举报控件的点击消息传递至控制层中相应的控制器中。Once the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, it traverses all the controller objects in the current local collection variable, and confirms the report control by calling the message communication protocol object corresponding to each controller object. Or cancel the click message of the report control to the corresponding controller in the control layer.
再进一步的,为了使得控制层能更顺利、准确地将处理结果的消息反馈至Activity页面的UI层,本发明实施例中,所述页面视图更新模块利用控制器将处理结果的消息反馈至Activity页面的UI层中的具体流程为:Further, in order to enable the control layer to feed back the message of the processing result to the UI layer of the Activity page more smoothly and accurately, in the embodiment of the present invention, the page view update module uses the controller to feed back the message of the processing result to the Activity. The specific process in the UI layer of the page is:
在控制器与Activity页面之间创建一个事件路由器,在该事件路由器的内部定义一个同步队列及一个消息判断循环逻辑体,所述消息判断循环逻辑体用于判定同步队列中是否有消息,如果有消息就直接将该消息发送到Activity页面的UI层中,如果没有,就进入下一次循环判断逻辑中;An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
当控制器进行举报上传相关业务逻辑的处理后,利用控制器将处理结果的消息传递到事件路由器中;该事件路由器会自动将收到的处理结果的消息压入到同步队列中;当下次消息判断循环逻辑体判定同步队列中具有处理结果的消息时,该事件路由器从同步队列中取出该处理结果的消息并发送到Activity页面的UI层中。After the controller performs the process of uploading and uploading the relevant business logic, the controller passes the message of the processing result to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message When the loop logic determines that the message with the processing result in the synchronization queue is determined, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
需要说明的是:上述实施例提供的系统在实现视频交友过程中的举报功能时,仅以上述各程序模块的划分进行举例说明,实际应用中,可根据需要而将上述功能分配由不同程序模块完成,即将系统的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分功能。It should be noted that, when the system provided by the foregoing embodiment implements the reporting function in the video dating process, only the division of each of the foregoing program modules is illustrated. In actual applications, the foregoing functions may be allocated by different program modules according to requirements. Completion, that is, the internal structure of the system is divided into different program modules to complete all or part of the functions described above.
本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。The present invention is not limited to the above embodiments, and those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. These improvements and retouchings are also considered as protection of the present invention. Within the scope.
本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。The contents not described in detail in the present specification belong to the prior art well known to those skilled in the art.

Claims (10)

  1. 一种视频交友中实现举报功能的方法,其特征在于,该方法包括以下步骤:A method for implementing a report function in a video dating, characterized in that the method comprises the following steps:
    S1、当用户在实现举报功能的Activity页面中点击举报按钮时,弹出举报功能对话框;该举报功能对话框具有确认举报控件和取消举报控件,且该举报功能对话框的UI层的业务逻辑封装在预设的对话框监控类中,该对话框监控类用于监听确认举报控件、取消举报控件的点击事件,且该对话框监控类中预设有用于与控制层中控制器进行消息传递的消息通信协议;S1. When the user clicks the report button in the Activity page that implements the report function, the report function dialog box is popped up; the report function dialog box has a confirmation report control and a cancel report control, and the UI layer of the report function dialog box is encapsulated in the business logic package. In the preset dialog monitoring class, the dialog monitoring class is used for monitoring the confirmation report control, canceling the click event of the report control, and the dialog monitoring class is pre-set for message transmission with the controller in the control layer. Message communication protocol;
    S2、当所述对话框监控类监听到确认举报控件或取消举报控件的点击事件后,利用所述对话框监控类中预设的消息通信协议,将确认举报控件或取消举报控件的点击消息传递至用于处理举报上传相关业务逻辑的控制器中;S2. After the dialog monitoring class monitors the confirmation report control or cancels the click event of the report control, the dialog message monitoring protocol preset in the class is used to confirm the report control or cancel the click message of the report control. To the controller used to process the report-related business logic;
    S3、若所述控制器收到确认举报控件的点击消息,则进行举报上传相关业务逻辑的处理,并将处理结果的消息反馈至Activity页面的UI层中;Activity页面将根据处理结果的消息更新当前界面上的视图元素。S3. If the controller receives the click message of the confirmation report control, the report uploads the related business logic, and feeds the processed result message to the UI layer of the Activity page; the Activity page is updated according to the message of the processing result. The view element on the current interface.
  2. 如权利要求1所述的视频交友中实现举报功能的方法,其特征在于:若控制层中有多个控制器需要获取对话框监控类传递的点击消息时,步骤S2包括以下操作;The method for implementing a report function in a video dating as claimed in claim 1, wherein if a plurality of controllers in the control layer need to obtain a click message transmitted by the dialog monitoring class, step S2 includes the following operations;
    在预设的对话框监控类中定义一个局部集合变量,该局部集合变量用于保存控制层中需要获取点击消息的所有控制器对象,且每个控制器对象的类型均为消息通信协议对象;Defining a local collection variable in a preset dialog monitoring class, the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object;
    在预设的对话框监控类中定义一个注册方法,在该注册方法中通过调用局部集合变量添加方法将需要获取点击消息的控制器对象加 入到局部集合变量中;Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method;
    一旦对话框监控类监听到确认举报控件或取消举报控件的点击事件后,会遍历当前局部集合变量中的所有控制器对象,并通过调用每个控制器对象对应的消息通信协议对象,将确认举报控件或取消举报控件的点击消息传递至控制层中相应的控制器中。Once the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, it will traverse all the controller objects in the current local collection variable, and will confirm the report by calling the message communication protocol object corresponding to each controller object. The click message of the control or cancel report control is passed to the corresponding controller in the control layer.
  3. 如权利要求1所述的视频交友中实现举报功能的方法,其特征在于:步骤S3中,控制器将处理结果的消息反馈至Activity页面的UI层中,具体包括以下操作:The method for implementing the report function in the video dating as claimed in claim 1, wherein in step S3, the controller feeds back the message of the processing result to the UI layer of the Activity page, which specifically includes the following operations:
    在控制器与Activity页面之间创建一个事件路由器,在该事件路由器的内部定义一个同步队列及一个消息判断循环逻辑体,所述消息判断循环逻辑体用于判定同步队列中是否有消息,如果有消息就直接将该消息发送到Activity页面的UI层中,如果没有,就进入下一次循环判断逻辑中;An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
    当控制器进行举报上传相关业务逻辑的处理后,将处理结果的消息传递到事件路由器中;该事件路由器会自动将收到的处理结果的消息压入到同步队列中;当下次消息判断循环逻辑体判定同步队列中具有处理结果的消息时,该事件路由器从同步队列中取出该处理结果的消息并发送到Activity页面的UI层中。After the controller performs the processing of uploading the relevant business logic, the message of the processing result is delivered to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message determines the loop logic When the body determines the message with the processing result in the synchronization queue, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
  4. 如权利要求1所述的视频交友中实现举报功能的方法,其特征在于,步骤S3还包括以下操作:若所述控制器收到取消举报控件的点击消息,则关闭举报功能对话框并结束操作。The method for implementing a report function in a video dating as claimed in claim 1, wherein the step S3 further comprises the following operation: if the controller receives the click message of canceling the report control, the report function dialog box is closed and the operation ends. .
  5. 一种存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现上述权利要求1至4中任一项所述方法的步骤。A storage medium having stored thereon a computer program, characterized in that the computer program is executed by a processor to carry out the steps of the method of any one of claims 1 to 4.
  6. 一种视频交友中实现举报功能的设备,包括存储器、处理器 及存储在所述存储器上并在所述处理器上运行的计算机程序,其特征在于:所述处理器执行所述计算机程序时实现上述权利要求1至4中任一项所述方法的步骤。An apparatus for implementing a report function in a video dating, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor implements the computer program The steps of the method of any of the preceding claims 1 to 4.
  7. 一种视频交友中实现举报功能的系统,其特征在于:该系统包括事件监听模块、消息传递模块和页面视图更新模块;A system for implementing a report function in video dating, characterized in that: the system comprises an event monitoring module, a message passing module and a page view updating module;
    所述事件监听模块用于:当用户在实现举报功能的Activity页面中点击举报按钮时,弹出举报功能对话框;该举报功能对话框具有确认举报控件和取消举报控件,且该举报功能对话框的UI层的业务逻辑封装在预设的对话框监控类中,该对话框监控类用于监听确认举报控件、取消举报控件的点击事件,且该对话框监控类中预设有用于与控制层中控制器进行消息传递的消息通信协议;The event monitoring module is configured to: when the user clicks the report button in the Activity page that implements the report function, popping up a report function dialog box; the report function dialog box has a confirmation report control and a cancel report control, and the report function dialog box The business logic of the UI layer is encapsulated in a preset dialog monitoring class, and the dialog monitoring class is used for monitoring and confirming the report control, canceling the click event of the report control, and the dialog monitoring class is pre-configured for use in the control layer. a message communication protocol for the controller to perform message delivery;
    所述消息传递模块用于:当对话框监控类监听到确认举报控件或取消举报控件的点击事件后,利用对话框监控类中预设的消息通信协议,将确认举报控件或取消举报控件的点击消息传递至用于处理举报上传相关业务逻辑的控制器中;The message passing module is configured to: when the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, uses the message communication protocol preset in the dialog monitoring class to confirm the report control or cancel the click of the report control The message is delivered to a controller for processing the relevant business logic of the report upload;
    所述页面视图更新模块用于:当控制器收到确认举报控件的点击消息时,利用控制器进行举报上传相关业务逻辑的处理,并利用控制器将处理结果的消息反馈至Activity页面的UI层中;控制Activity页面将根据处理结果的消息更新当前界面上的视图元素。The page view update module is configured to: when the controller receives the click message of the confirmation report control, use the controller to report and upload the relevant business logic, and use the controller to feed back the message of the processing result to the UI layer of the Activity page. The Control Activity page will update the view elements on the current interface based on the message that processed the results.
  8. 如权利要求7所述的视频交友中实现举报功能的系统,其特征在于:若控制层中有多个控制器需要获取对话框监控类传递的点击消息时,所述消息传递模块进行消息传递操作的具体流程为:The system for implementing a report function in a video dating as claimed in claim 7, wherein if the plurality of controllers in the control layer need to obtain a click message transmitted by the dialog monitoring class, the message passing module performs a message passing operation. The specific process is:
    在预设的对话框监控类中定义一个局部集合变量,该局部集合变量用于保存控制层中需要获取点击消息的所有控制器对象,且每个控制器对象的类型均为消息通信协议对象;Defining a local collection variable in a preset dialog monitoring class, the local collection variable is used to save all controller objects in the control layer that need to obtain a click message, and each controller object is of a message communication protocol object;
    在预设的对话框监控类中定义一个注册方法,在该注册方法中通过调用局部集合变量添加方法将需要获取点击消息的控制器对象加入到局部集合变量中;Defining a registration method in the preset dialog monitoring class, in which the controller object that needs to obtain the click message is added to the local collection variable by calling the local collection variable adding method;
    一旦对话框监控类监听到确认举报控件或取消举报控件的点击事件后,遍历当前局部集合变量中的所有控制器对象,并通过调用每个控制器对象对应的消息通信协议对象,将确认举报控件或取消举报控件的点击消息传递至控制层中相应的控制器中。Once the dialog monitoring class listens to the confirmation report control or cancels the click event of the report control, it traverses all the controller objects in the current local collection variable, and confirms the report control by calling the message communication protocol object corresponding to each controller object. Or cancel the click message of the report control to the corresponding controller in the control layer.
  9. 如权利要求7所述的视频交友中实现举报功能的系统,其特征在于:所述页面视图更新模块利用控制器将处理结果的消息反馈至Activity页面的UI层中的具体流程为:The system for implementing the report function in the video dating of claim 7, wherein the specific process of the page view update module using the controller to feed back the message of the processing result to the UI layer of the Activity page is:
    在控制器与Activity页面之间创建一个事件路由器,在该事件路由器的内部定义一个同步队列及一个消息判断循环逻辑体,所述消息判断循环逻辑体用于判定同步队列中是否有消息,如果有消息就直接将该消息发送到Activity页面的UI层中,如果没有,就进入下一次循环判断逻辑中;An event router is created between the controller and the Activity page, and a synchronization queue and a message judgment loop logic body are defined inside the event router, and the message judgment loop logic body is used to determine whether there is a message in the synchronization queue, if any The message is sent directly to the UI layer of the Activity page. If not, it enters the next loop judgment logic;
    当控制器进行举报上传相关业务逻辑的处理后,利用控制器将处理结果的消息传递到事件路由器中;该事件路由器会自动将收到的处理结果的消息压入到同步队列中;当下次消息判断循环逻辑体判定同步队列中具有处理结果的消息时,该事件路由器从同步队列中取出该处理结果的消息并发送到Activity页面的UI层中。After the controller performs the process of uploading and uploading the relevant business logic, the controller passes the message of the processing result to the event router; the event router automatically pushes the received processing result message into the synchronization queue; when the next message When the loop logic determines that the message with the processing result in the synchronization queue is determined, the event router takes the message of the processing result from the synchronization queue and sends it to the UI layer of the Activity page.
  10. 如权利要求7所述的视频交友中实现举报功能的系统,其特征在于,所述页面视图更新模块还用于:当控制器收到取消举报控件的点击消息时,关闭举报功能对话框并结束操作。The system for implementing a report function in the video dating of claim 7, wherein the page view update module is further configured to: when the controller receives the click message of canceling the report control, close the report function dialog box and end operating.
PCT/CN2017/117387 2017-08-31 2017-12-20 Method for realizing report function in video friend making, storage medium, device and system WO2019041669A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710770993.4A CN107577540B (en) 2017-08-31 2017-08-31 Method, storage medium, equipment and system for realizing reporting function in video friend making
CN201710770993.4 2017-08-31

Publications (1)

Publication Number Publication Date
WO2019041669A1 true WO2019041669A1 (en) 2019-03-07

Family

ID=61030452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117387 WO2019041669A1 (en) 2017-08-31 2017-12-20 Method for realizing report function in video friend making, storage medium, device and system

Country Status (2)

Country Link
CN (1) CN107577540B (en)
WO (1) WO2019041669A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502229A (en) * 2019-08-26 2019-11-26 广州小鹏汽车科技有限公司 Generation method, device, terminal, computer equipment and the storage medium of the page

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142982A (en) * 2018-11-02 2020-05-12 鸿合科技股份有限公司 Event execution method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484509A (en) * 2016-09-27 2017-03-08 腾讯科技(深圳)有限公司 A kind of output intent of pop-up, device and terminal
US20170243252A1 (en) * 2012-05-14 2017-08-24 Iqzone, Inc. Displaying media content on portable devices based upon user interface state transitions
CN107092481A (en) * 2017-03-23 2017-08-25 武汉斗鱼网络科技有限公司 A kind of session prompting frame realization method and system for network interaction

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315037C (en) * 2002-12-27 2007-05-09 联想(北京)有限公司 Virtual information flow bus interface and its data processing method
CN100437483C (en) * 2007-01-16 2008-11-26 华为技术有限公司 Event distributing method and device based on Web page
CN100483343C (en) * 2007-11-30 2009-04-29 清华大学 Emulated procedure information modeling and maintenance method based on product structural tree
CN102043616A (en) * 2009-10-22 2011-05-04 上海杉达学院 Factory pattern-based information system architecture and architecture method
CN102520985B (en) * 2011-11-29 2014-09-24 深圳万兴信息科技股份有限公司 System and method for running client software
CN103902388B (en) * 2012-12-28 2017-10-03 北京壹人壹本信息科技有限公司 The method and electronic equipment communicated between
CN103645901A (en) * 2013-12-16 2014-03-19 上海证券交易所 Event chain based user interface plugin interaction method
CN104123157B (en) * 2014-07-17 2017-08-29 北京京东尚科信息技术有限公司 The cross-platform service logic method for customizing and device of a kind of mobile terminal
CN105573914A (en) * 2015-12-15 2016-05-11 国云科技股份有限公司 Project hierarchical method for Android application
CN105933781A (en) * 2016-04-19 2016-09-07 武汉斗鱼网络科技有限公司 Regulation violation bullet screen processing method and device for video website
CN107092484B (en) * 2017-03-27 2020-10-16 武汉斗鱼网络科技有限公司 Method and system for reporting function key information of C language layer to Java layer
CN107133041B (en) * 2017-05-02 2019-09-06 武汉斗鱼网络科技有限公司 Data notification method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170243252A1 (en) * 2012-05-14 2017-08-24 Iqzone, Inc. Displaying media content on portable devices based upon user interface state transitions
CN106484509A (en) * 2016-09-27 2017-03-08 腾讯科技(深圳)有限公司 A kind of output intent of pop-up, device and terminal
CN107092481A (en) * 2017-03-23 2017-08-25 武汉斗鱼网络科技有限公司 A kind of session prompting frame realization method and system for network interaction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502229A (en) * 2019-08-26 2019-11-26 广州小鹏汽车科技有限公司 Generation method, device, terminal, computer equipment and the storage medium of the page
CN110502229B (en) * 2019-08-26 2023-08-25 广州小鹏汽车科技有限公司 Page generation method, device, terminal, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107577540B (en) 2020-03-17
CN107577540A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
US20170223128A1 (en) Intermediary for multiple-transport client-device communications
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
US10750000B1 (en) Opportunistic initiation of voice or video calls between smart speaker devices
WO2021051961A1 (en) Intelligent networking method and system
WO2019041669A1 (en) Method for realizing report function in video friend making, storage medium, device and system
US11159372B2 (en) Method and apparatus for restoring network device to factory defaults, and network device
WO2021057605A1 (en) Device management method, device, system and device, and storage medium
CN106648801A (en) Automatic node adding and deleting method for Hadoop cluster
JPH04347733A (en) Computer program maintenance system
WO2016026329A1 (en) Terminal upgrade method and apparatus
WO2017219519A1 (en) Method, apparatus, and system for controlling device
US8331972B2 (en) Resolving potential conflicts in interoperability communications
JP6899837B2 (en) Data transmission across regions
WO2021026726A1 (en) Information verification method, device, apparatus and storage medium
WO2016197897A1 (en) Converged communication interaction method, device and system
EP3416351A1 (en) Implementation method, apparatus and system for remote access
CN105049481B (en) A kind of method for supporting multi-heterogeneous system intelligent interaction
CN113497731B (en) Centralized control probe scheduling method and centralized control probe management system
CN107547174B (en) Method for guiding Internet of things equipment to access network based on android client
JP5502051B2 (en) Method for processing step execution results in software application control managed objects
CN113766345A (en) Method for playing random push video and set top box
CN111615819B (en) Method and device for transmitting data
JP2009009371A (en) Automatic notification processing system and center device
CN113328896B (en) Configuration method of network equipment and related device
KR102054144B1 (en) Method and Apparatus for Control Terminals in IoT Service

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: 17923458

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: 17923458

Country of ref document: EP

Kind code of ref document: A1