Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for message format conversion, storage medium and android terminal

A technology of message format and conversion method, which is applied in the fields of Android terminals, devices, storage media, and message format conversion methods, and can solve the problems that data in Json format cannot be converted into another type of data, etc.

Inactive Publication Date: 2018-12-04
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, data transmission is usually in Json format. In traditional solutions, data in Json format is usually parsed into an object, and data in Json format cannot be converted into another type of data, or a specific barrage protocol.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for message format conversion, storage medium and android terminal
  • Method and device for message format conversion, storage medium and android terminal
  • Method and device for message format conversion, storage medium and android terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] figure 1 It is a flow chart of the message format conversion method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of message format conversion, and the method can be executed by the message format conversion device provided in the embodiment of the present invention. The device can be composed of It can be implemented by means of software and / or hardware, and can be integrated into an Android terminal.

[0040] Such as figure 1 As shown, the conversion method of the message format includes:

[0041] S110. When receiving the Json data to be converted, convert the Json data into an InfoBean object.

[0042] Wherein, the Json data can be acquired through a network connection, and after the Json data is acquired, the Json data can be converted into an InfoBean object through a preset method.

[0043] In this embodiment, optionally, when receiving the Json data to be converted, converting the Json data into an InfoBean object...

Embodiment 2

[0059] figure 2 is a schematic structural diagram of the device for converting message formats provided in Embodiment 2 of the present invention. Such as figure 2 As shown, the conversion device of the message format includes:

[0060] InfoBean object conversion module 210, when being used for receiving the Json data to be converted, Json data is converted into InfoBean object;

[0061] The key-value pair information storage module 220 is used to obtain the corresponding relationship between key information and value information in the key-value pair information in the InfoBean object, and then store the value information in the key-value pair information in the In the field corresponding to the key information;

[0062] The barrage message data acquisition module 230 is used to acquire and call the key information character string and the value information character string in the InfoBean object, and splicing them in a preset format to obtain barrage message data.

[00...

Embodiment 3

[0066] The embodiment of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to perform a message format conversion method when executed by a computer processor, and the method includes:

[0067] When receiving the Json data to be converted, convert the Json data into an InfoBean object;

[0068] Obtain the corresponding relationship between key information and value information in the key-value pair information in the InfoBean object, and then store the value information in the key-value pair information in the field corresponding to the key information according to the corresponding relationship;

[0069] The key information string and the value information string in the InfoBean object are acquired and called, and spliced ​​in a preset format to obtain the barrage message data.

[0070] storage medium - any of various types of memory devices or storage devices. The term "storage m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention disclose a method and a device for message format conversion, a storage medium and an android terminal.The method comprises: when to-be-converted Json data is received, converting the Json data to an InfoBean object; acquiring a corresponding relationship between key information and value information in key-value pair information in the InfoBean object, and storing thevalue information in the key-value pair information into a field corresponding to the key information according to the corresponding relationship; acquiring a key information string and a value information string in the InfoBean object, splicing through a preset format, to obtain barrage message data. Through using the technical scheme provided by the application, the Json format can be convertedinto a barrage message format, and an effect that the received data in the Json format is quickly displayed by barrage messages can be realized.

Description

technical field [0001] The embodiment of the present invention relates to the field of Android technology, and in particular to a message format conversion method, device, storage medium and Android terminal. Background technique [0002] With the rapid development of the Internet today, the needs of network users are changing rapidly and greatly, and the transmission and conversion efficiency of data messages has become one of the most concerned issues in the field. [0003] At present, data transmission is usually in Json format. In traditional solutions, data in Json format is usually parsed into an object, and data in Json format cannot be converted into another type of data, or a specific barrage protocol. Bullet screen messages are currently what users are interested in watching online videos, online live broadcasts, and other video programs, so how to convert data in Json format into data in bullet screen message format has become a technical problem that technicians ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/40
CPCG06F8/40
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD