CN105490842B - A kind of method based on the dialogue of MVVM model management in online service system - Google Patents

A kind of method based on the dialogue of MVVM model management in online service system Download PDF

Info

Publication number
CN105490842B
CN105490842B CN201510858509.4A CN201510858509A CN105490842B CN 105490842 B CN105490842 B CN 105490842B CN 201510858509 A CN201510858509 A CN 201510858509A CN 105490842 B CN105490842 B CN 105490842B
Authority
CN
China
Prior art keywords
client
data
user
server
pond
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510858509.4A
Other languages
Chinese (zh)
Other versions
CN105490842A (en
Inventor
王建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology Co Ltd
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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201510858509.4A priority Critical patent/CN105490842B/en
Publication of CN105490842A publication Critical patent/CN105490842A/en
Application granted granted Critical
Publication of CN105490842B publication Critical patent/CN105490842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of methods based on the dialogue of MVVM model management in online service system, including client's access platform, server and client;The client is made of user pond and dialog box;The received message of client's access platform is sent to client by server, and client updates user pond after Message Processing;Service interaction is carried out between the server and user pond, carries out interface alternation between the user pond and dialog box.The present invention establishes on the basis of MVVM mode, its theory is merged to and is applied to service software can be improved in " online service " quality and efficiency, improves online service and requires instantaneity, high efficiency, portability.Lower coupling between reduction program module.

Description

A kind of method based on the dialogue of MVVM model management in online service system
Technical field
The present invention relates to the dialogues in a kind of online service system based on MVVM model for source by all kinds of means to carry out in real time The method of management, distribution, monitoring, the application scenarios suitable for various online communication system administrations and dialogue.
Background technique
MVVM is writing a Chinese character in simplified form for Model-View-ViewModel.The WPF of Microsoft brings new technology experience, such as Silverlight, audio, video, 3D, animation ..., which results in UI layers of more detail, customizables of software.Meanwhile Technological layer, WPF also bring such as Binding, Dependency Property, Routed Events, Command, The new features such as DataTemplate, ControlTemplate.MVVM(Model-View-ViewModel) origin of frame is MVP(Model-View-Presenter a kind of) new architecture that development evolvement comes when application mode of the mode in conjunction with WPF Frame.It based on original MVP frame and mixes into the new features of WPF, is become with coping with the increasingly complicated demand of client Change.
Communication software system is multifarious on the market at present, based on product under Tencent, such as QQ, wechat.Service system There are many sources of system access visitor, and huge number, and a dialogue maintains a link can not in online service system at present Row, the system resource not only consumed is very big, and maintenance difficulties are very high, does not also meet the service habit of service.User's chat is to compare Discrete, and talk with and be not over mark, for example client asks questions, after service is answered a question, which may be for a long time It just checks later and continues to put question to, if such case connection maintains always, meeting very waste of resource, because being not over mark, The dialogue connected can not be turned off manually in service.Under extreme case, the linking number of maintenance can be very huge.
The center of gravity of online service system is exactly the service quality serviced, and service quality, reaction speed, which improve, to be pierced Swash marketing.In addition, the operability of system, stability and maintainable also extremely important, service system cannot careless delay machine, So needing reasonable distribution system resource.
Summary of the invention
It is an object of the invention to: the above-mentioned technical problems in the prior art are directed to, a kind of online service system is provided The method that real-time management, distribution, monitoring are carried out for the dialogue in source by all kinds of means based on MVVM model in system, be suitable for it is various The application scenarios of the management of line communication system and dialogue.
The present invention is achieved by the following technical solutions:
A kind of method based on the dialogue of MVVM model management in online service system, including client's access platform, server, And client;The client is made of user pond and dialog box;The received message of client's access platform passes through server It is sent to client, client updates user pond after Message Processing;Service friendship is carried out between the server and user pond Mutually, interface alternation is carried out between the user pond and dialog box;Wherein,
The user pond is equipped with unique identification id for different clients;
The message that the service interaction is used to send server is handled, and processing information update is corresponding to user Pond, and the variation of User Status, message is monitored, it is interacted to reach with server info;
The interface alternation is that user and service session are shown in linking user pond for data variation in monitor client The logical process of the page, monitoring user pond correspond to the command operation that user data and dialog box issue;
The dialog box interact interactive interface for attendant and client, and attendant can be at this interface Client carries out the interactive event of some column.
Implementation step is as follows:
Step 1: dialogue access, server send message;The message that client is sent according to server carries out message Data processing;
Step 2: processes user data;A, such as client is first access, according to this customer information in client pond, is established new Dialog box, and according to corresponding informance be arranged permission, show pertinent customer information to attendant;B, visitor has for example been talked The changed information of this client in client pond is sent window, carries out windows content and brushed in real time according to changing content by family The content and state of new dialog box;
Step 3: monitoring dialogue, when attendant engages in the dialogue window operation, monitoring dialogue is according to content real-time update The information of user is corresponded in user pond;
Step 4: data are sent to service in monitoring user pond, and after information changes in user pond, monitoring service meeting It carries out data processing and sends message to server.
Further, it is preset with data pool in the user pond, the data pool is to store after data processing Data;When changing in data pool, monitoring captures change information and is processed into the format transmission notice server arranged in advance.
Further, the data processing includes data classification, data conversion and data screening.
Further, the user pond is a static member, internal that the set for being used to store user is associated with monitoring, One piece of memory storage can be divided after application program launching, be the essential information of user, visitor inside the set.
In conclusion by adopting the above-described technical solution, the beneficial effects of the present invention are:
1, the present invention realizes a kind of method based on the dialogue of MVVM schema management, and client is by data processing, data source, Data are shown establishes connection respectively, realizes the design of high cohesion, lower coupling, and compared to one dialogue maintains a link, maintains one The method of group data, reduces the loss of system resource, reduces the operating quantity of every information of processing, alleviates the negative of client Weight, increases stability, improves the service quality and efficiency of service of service;
2, method of the invention makes visitor not resettle one-to-one link between service and visitor when access, and It is to realize dialog procedure by way of message between server-side forwarding service and visitor.Server-side is only after making operation Change user pond data notification server-side and server-side subtract in this way to user pond data of handling it again after client transmission message The loss of light network connection pressure and resource, strengthens the stability of client;
3, server-side of the invention forwards the message of client and service in such a way that message routes to realize dialogue.Visitor A series of behavior operation is made on the basis of the data of user pond in family end.
4, the present invention establishes on the basis of MVVM mode, its theory, which is merged, and is applied to " online service " to mention The quality and efficiency of high service software improve online service and require instantaneity, high efficiency, portability.It is low between reduction program module Coupling.
Detailed description of the invention
Examples of the present invention will be described by way of reference to the accompanying drawings, in which:
Fig. 1 is structural block diagram of the invention;
Fig. 2 is client process block diagram of the invention;
Fig. 3 is MVVM mode schematic illustration of the invention;
Fig. 4 is the relationship block diagram of data pool and server of the invention;
Fig. 5 is the relationship block diagram of data pool and UI of the invention;
Fig. 6 is message content exploded block diagram of the invention;
Fig. 7 is user pond basic framework block diagram of the invention.
Specific embodiment
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive Feature and/or step other than, can combine in any way.
Any feature disclosed in this specification (including any accessory claim, abstract and attached drawing), except non-specifically chatting It states, can be replaced by other alternative features that are equivalent or have similar purpose.That is, unless specifically stated, each feature is only It is an example in a series of equivalent or similar characteristics.
As shown in Figure 3, it is driving that MVVM mode, which is advocated with data, a model customized for View is needed, this A model is exactly ViewModel.ViewModel includes all by the specific interface of UI and attribute, and by a ViewModel View bind properties, and can get loose couplings between the two.The advantages of MVVM mode: 1) lower coupling.View (View) it can be tied on different " View " independently of Model change and modification, a ViewModel, work as View Model can be constant when variation, and View can also be constant when Model variation.2) reusability.It can be some View logic is placed on inside a ViewModel, and many view is allowed to reuse this section of view logic.3) stand-alone development.Developer The exploitation (ViewModel) of service logic and data can be absorbed in, designer can be absorbed in Pages Design.
On the basis of MVVM mode, its theory, which is merged, and is applied to " online service " can be improved service software Quality and efficiency improve online service and require instantaneity, high efficiency, portability.Lower coupling between reduction program module.
As shown in Figure 1, the method based on the dialogue of MVVM model management in online service system, including client's access are flat Platform, server and client;The client is made of user pond and dialog box (chat);Client's access platform receives Message be sent to client by server, client updates user pond after Message Processing;The server and user Service interaction is carried out between pond, carries out interface alternation between the user pond and dialog box (chat);
It is preferred that the user pond is equipped with unique identification id for different clients;As shown in Figure 4, after system is opened, open Open up a block space, by it be used to storage server transmitting data, just as pond (as data pool), at the same time we The program in monitoring data pond will open, and the data pool is to store data after data processing;When occurring in data pool Variation, monitoring capture change information and are processed into the format transmission notice server arranged in advance.
It is preferred that the message that the service interaction is used to send server is handled, processing information update is corresponding extremely User pond, and the variation of User Status, message is monitored, it is interacted to reach with server info;
It is preferred that the interface alternation for data variation in monitor client, is user and service pair in linking user pond The logical process of displayed page is talked about, monitoring user pond corresponds to the command operation that user data and dialog box (chat) issue;
It is preferred that the dialog box (chat) carries out interacting interactive interface with client for attendant, attendant exists This interface can carry out the interactive event of some column with client.
As shown in Fig. 2,4,5,6 and 7, specific implementation is as follows:
Step 1, description agreement and preparation, dialogue access, server send message transmission between message, with server It is sanctified by usage in advance, such as: Message=style+message_id+user_id+content+...
According to the message that server is sent, data processing is carried out to message, in the existing user pond of client, then basis disappears Breath format carries out User Status, conversation content, client's request etc. and is updated.
Step 2, processes user data, 1) message between processing and server, according to sanctified by usage between defence server Message mechanism, according to type of message, action type etc. carry out message content decomposition.2) between UI operation and data pool, work as UI When carrying out some operation, UI monitoring class handles operation.Such as: voice is actively invited, data processing class can be collected at this time Invite people, be invited to object, UI operation etc., corresponding data in user pond is updated according to information.Wherein, when client is first Access establishes new dialog box according to this customer information in client pond, and permission is arranged according to corresponding informance, shows related Customer information is to attendant.When if it is having talked client, the changed information of this client in client pond is sent window, Windows content is carried out to be carried out refreshing dialog interface content and state in real time according to changing content.
Step 3, monitoring dialogue, 1) data in pond are monitored, server is notified, after UI issues voice request, by UI number According to processing class, information in Group is corresponded in processing pond, such as: SoundMedia_Status=wait; Sound_Request =customer service 1;It can change Deng other message, at this point, monitoring class collects these information, be advised according to communication sanctified by usage in advance Then information is sent and is serviced, service is in request user.2) data in pond are monitored, notify UI, when data change in pond, example Such as, user issues voice request, is sent to client by server at this time, by data processing class, updates user after processing The information of Group, SoundMedia_Status=Request are corresponded in pond;Sound_Request=user oneself; Sound_ Target=customer service 1;Monitor can will be requested according to information change at this time and the information such as User Status notify UI, UI Corresponding update can be made and be presented to operator.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects It describes in detail bright, it should be understood that the above is only a specific embodiment of the present invention, is not intended to restrict the invention.This Invention expands to any new feature disclosed in the present specification or any new combination, and any new method for disclosing or The step of process or any new combination.

Claims (4)

1. a kind of method based on the dialogue of MVVM model management in online service system, it is characterised in that: client is by user pond It is formed with dialog box;The received message of client's access platform is sent to client by server, and client is by message User pond is updated after reason;Service interaction is carried out between the server and user pond, between the user pond and dialog box into Row interface alternation;Wherein,
The user pond is equipped with unique identification id for different clients;After system is opened, a block space is hewed out, it is used to The data of storage server transmitting, as data pool, the program in our monitoring data ponds will open at the same time, the data pool To store data after data processing;When changing in data pool, monitoring captures change information and is processed into advance about Fixed format sends notice server;
The message that the service interaction is used to send server is handled, and by information update after processing and is corresponded to user Pond, and the variation of User Status, message is monitored, it is interacted to reach with server info;
The interface alternation is user and service session displayed page in linking user pond for data variation in monitor client Logical process, monitoring user pond correspond to user data and dialog box sending command operation;
The dialog box, which is used to provide for attendant, carries out the interface that interaction interacts with client, and attendant can at this interface To carry out a series of interactive event with client;
Method based on the dialogue of MVVM model management in the online service system, steps are as follows:
Step 1: dialogue access, server send message;The message that client is sent according to server carries out data to message Processing;
Step 2: processes user data;A, such as client is first access, according to this customer information in user pond, establishes new pair Window is talked about, and permission is arranged according to corresponding informance, shows pertinent customer information to attendant;B, client has for example been talked, it will The changed information of this client is sent to window in user pond, and windows content carries out refreshing dialog in real time according to changing content The content and state of mouth;
Step 3: monitoring dialogue, when attendant engages in the dialogue window operation, monitoring dialogue is according to conversation content real-time update The information of user is corresponded in user pond;
Step 4: data are sent to service in monitoring user pond, after information changes in user pond, monitoring service will be carried out Data processing simultaneously sends message to server.
2. the method based on the dialogue of MVVM model management in online service system according to claim 1, which is characterized in that Data pool is preset in the user pond, the data pool is to store data after data processing;When in data pool It changes, monitoring captures change information and is processed into the format transmission notice server arranged in advance.
3. the method based on the dialogue of MVVM model management in online service system according to claim 2, which is characterized in that The data processing includes data classification, data conversion and data screening.
4. the method based on the dialogue of MVVM model management in online service system according to claim 1, which is characterized in that The user pond is a static member, internal that the set for being used to store user is associated with monitoring, works as application program launching After can divide one piece of memory storage, be the essential information of user, visitor inside the set.
CN201510858509.4A 2015-11-30 2015-11-30 A kind of method based on the dialogue of MVVM model management in online service system Active CN105490842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510858509.4A CN105490842B (en) 2015-11-30 2015-11-30 A kind of method based on the dialogue of MVVM model management in online service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510858509.4A CN105490842B (en) 2015-11-30 2015-11-30 A kind of method based on the dialogue of MVVM model management in online service system

Publications (2)

Publication Number Publication Date
CN105490842A CN105490842A (en) 2016-04-13
CN105490842B true CN105490842B (en) 2018-12-18

Family

ID=55677586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510858509.4A Active CN105490842B (en) 2015-11-30 2015-11-30 A kind of method based on the dialogue of MVVM model management in online service system

Country Status (1)

Country Link
CN (1) CN105490842B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451748A (en) * 2017-08-10 2017-12-08 北京奇鱼时代科技有限公司 Client high sea management method in a kind of CRM system
CN110116414A (en) * 2019-05-22 2019-08-13 汤佳利 A kind of shop 4S intelligent comprehensive service robot and its system
CN112527249A (en) * 2019-09-19 2021-03-19 北京国双科技有限公司 Window processing method and device, electronic equipment and storage medium
CN110995565A (en) * 2019-10-25 2020-04-10 陈奕博 Page display method based on MVVM (multifunction vehicle virtual machine) architecture
CN111930761A (en) * 2020-07-23 2020-11-13 北京字节跳动网络技术有限公司 Information interaction method and device and model-view-representation architecture
CN113094192A (en) * 2021-04-23 2021-07-09 杭州网易云音乐科技有限公司 Data processing method, device, medium and equipment
CN115657588B (en) * 2022-11-02 2023-11-17 广东德弘重工有限公司 Five-axis linkage control system based on Mvvm and control method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186552A (en) * 2011-12-28 2013-07-03 北京新媒传信科技有限公司 Method and system for visiting data by client in business service
CN104731594A (en) * 2015-03-26 2015-06-24 浪潮集团有限公司 Method for displaying runtime customized page based on Bootstrap

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130212598A1 (en) * 2012-02-14 2013-08-15 Microsoft Corporation Dependency informer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186552A (en) * 2011-12-28 2013-07-03 北京新媒传信科技有限公司 Method and system for visiting data by client in business service
CN104731594A (en) * 2015-03-26 2015-06-24 浪潮集团有限公司 Method for displaying runtime customized page based on Bootstrap

Also Published As

Publication number Publication date
CN105490842A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN105490842B (en) A kind of method based on the dialogue of MVVM model management in online service system
US11588763B2 (en) Virtual area communications
US20230155966A1 (en) Virtual Area Communications
US20210111950A1 (en) Persistent network resource and virtual area associations for realtime collaboration
US8909704B2 (en) Network-attached display device as an attendee in an online collaborative computing session
CN105684023A (en) Message passing for event live broadcast flow
US20150244656A1 (en) Method and system for providing user interface for interactive broadcast program using mobile instant messenger
CN106295107A (en) A kind of medical image that realizes synchronizes the method and system of the consultation of doctors
US20110066938A1 (en) Method and system for mutidimensional virtual online support center
CN102801770A (en) Web video conference method capable of realizing separate transmission of audio and video
CN108322475A (en) A kind of equipment remote collaboration method for maintaining and system based on MR live streamings
US9774928B2 (en) System and method for producing and executing interactive broadcast program
US20220156030A1 (en) Interactive display synchronisation
US20210034338A1 (en) Communications Enablement Platform, System, and Method
US20160012738A1 (en) Interactive social learning network
CN108881936A (en) Resource share method, electronic equipment and medium is broadcast live
CN110007950A (en) A kind of management method of application programming interfaces, device and server
DE102011114277A1 (en) Global Conference Plan for Distributed Bridges
CN103971311A (en) Reasoning drill method and system based on man-machine coordination
Pullen et al. Multi-Schema and Multi-Server Advances for C2-Simulation Interoperation in MSG-085
KR20170040225A (en) Networking cooperation method and machine using such method
CN106411601A (en) System and method for batch configuration of cloud terminal time
CN204013603U (en) A kind of strange land synchronous interaction evaluation platform of technology Network Based
Bergaus et al. Literature Review: ICT, SDPs and system design for user needs
JP2018514827A (en) Interactive operation method, transmitter, receiver and interactive operation system using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant