Summary of the invention
In view of this, the application provides the implementation method and device of electronic voting in a kind of instant messaging group chat scene.
Specifically, the application is achieved by the following technical solution:
The implementation method of electronic voting, is applied in server-side in a kind of instant messaging group chat scene, which comprises
It receives the electronic voting that group members are sent in group and initiates request;
It is notified to pocket transmission electronic voting corresponding with electronic voting initiation request;
After electronic voting notice issues, check in group's message of this group of each group members sendings whether carry predetermined word
Symbol string, the preset characters string are corresponding with a polling option of electronic voting;
When carrying the preset characters string in group's message, more according to the corresponding polling option of the preset characters string
New voting results.
The implementation method of electronic voting, is applied in client in a kind of instant messaging group chat scene, which comprises
The electronic voting notice of server-side transmission is received, the electronic voting notice is initiated by the group members in group;
Predeterminated position in this group of group chat interfaces shows the electronic voting notice;
The voting results that server-side is sent are received, the voting results are by server-side according to the predetermined word carried in group's message
Symbol string updates, and the preset characters string is corresponding with a polling option of electronic voting;
It shows the voting results, includes: that choosing for each polling option counts and have neither part nor lot in throwing in the voting results
The group member list of ticket.
The realization device of electronic voting, is applied in server-side, described device includes: in a kind of instant messaging group chat scene
Unit is initiated in ballot, is received the electronic voting that group members are sent in group and is initiated request;
It notifies transmission unit, is notified to pocket transmission electronic voting corresponding with electronic voting initiation request;
It votes inspection unit, after electronic voting notice issues, checks in group's message that this group of each group members issue
Whether preset characters string is carried, and the preset characters string is corresponding with a polling option of electronic voting;
As a result updating unit, when carrying the preset characters string in group's message, according to the preset characters string pair
The polling option answered updates voting results.
The realization device of electronic voting, is applied in client, described device includes: in a kind of instant messaging group chat scene
Notification receiving unit receives the electronic voting notice of server-side transmission, and the electronic voting notice is by group
Group members are initiated;
Notify display unit, the predeterminated position in this group of group chat interfaces shows the electronic voting notice;
As a result receiving unit receives the voting results that server-side is sent, and the voting results are by server-side according to group's message
The preset characters string of middle carrying updates, and the preset characters string is corresponding with a polling option of electronic voting;
As a result display unit, show the voting results, includes: that each polling option chooses counting in the voting results
And have neither part nor lot in the group member list of ballot.
The application can trigger ballot selection function by preset characters string it can be seen from above description, and group members exist
Replying corresponding with polling option preset characters string in group's message can be realized ballot, without leaving group chat interface, be convenient for group at
Member's ballot.Server-side can update voting results according to the preset characters string in group's message, manually count without initiating member, side
Just quick, and count accurate.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
Fig. 1 is the realization side of electronic voting in a kind of instant messaging group chat scene shown in one exemplary embodiment of the application
The flow diagram of method.
Referring to FIG. 1, the implementation method of electronic voting can be applied in server-side, packet in the instant messaging group chat scene
Include following steps:
Step 101, it receives the electronic voting that group members are sent in group and initiates request.
In the present embodiment, the description information that this electronic voting is usually carried in request is initiated in the electronic voting.
In this example, the group members for initiating the electronic voting can be with the corresponding preset characters string of customized each polling option, and will
Preset characters string and the corresponding relationship of polling option, which are added to electronic voting, initiates in request, such as: Yep can correspond to "Yes",
Nope can correspond to "No" etc..
Step 102, it is notified to pocket transmission electronic voting corresponding with electronic voting initiation request.
In the present embodiment, server-side typically refers to all groups into this group to electronic voting described in the pocket transmission
Member sends electronic voting notice, certainly, in certain scenes, can also into the group except electronic voting initiate member it
Other outer group members send the electronic voting notice, and the application is not particularly limited this.
In the present embodiment, the description information and each throwing of this electronic voting can be carried in the electronic voting notice
Vote for the corresponding preset characters string of item.
Step 103, after electronic voting notice issues, check in each group members issue in this group group's message whether
Preset characters string is carried, the preset characters string is corresponding with a polling option of electronic voting.
In the present embodiment, group members can send the group's message for carrying preset characters string to choose the preset characters string
Corresponding polling option, such as: group's message " Yep " is sent to choose "Yes", sends group's message " Nope " to choose "No".
Step 104, when carrying the preset characters string in group's message, according to the corresponding throwing of the preset characters string
It votes for item and updates voting results.
In the present embodiment, whether group's message that server-side can analyze group members transmission carries preset characters string, when certain
When item group's message carries a preset characters string, it can determine that the group members for sending this group of message choose the preset characters string corresponding
Polling option, and then the update of voting results can be carried out.
Fig. 2 is the realization side of electronic voting in a kind of instant messaging group chat scene shown in one exemplary embodiment of the application
The flow diagram of method.
Referring to FIG. 2, the implementation method of electronic voting can be applied in client, packet in the instant messaging group chat scene
Include following steps:
Step 201, the electronic voting notice of server-side transmission is received, the electronic voting notice is by the group members in group
It initiates.
Step 202, the predeterminated position in this group of group chat interfaces shows the electronic voting notice.
Step 203, the voting results that server-side is sent are received, the voting results are carried by server-side according in group's message
Preset characters string update, the preset characters string is corresponding with a polling option of electronic voting.
Step 204, the voting results are shown, include: in the voting results each polling option choose counting and
Have neither part nor lot in the group member list of ballot.
The application can trigger ballot selection function by preset characters string it can be seen from above description, and group members exist
Replying corresponding with polling option preset characters string in group's message can be realized ballot, without leaving group chat interface, be convenient for group at
Member's ballot.Server-side can update voting results according to the preset characters string in group's message, manually count without initiating member, side
Just quick, and count accurate.
Three phases are checked below by way of the initiation of electronic voting, group members ballot and voting results, to the application
Technical solution be described in detail.
One, the initiation of electronic voting
In the present embodiment, the group members for initiating permission with electronic voting in group can initiate electronic voting.At one
In example, can all have the electronic voting to initiate permission with group members all in default group.In another example, to avoid
Group members arbitrarily initiate electronic voting and upset group's order, and administrator can according to need voluntarily configuration, and there is electronic voting to initiate power
The group members of limit, the application are not particularly limited this.
In the present embodiment, the group members that permission is initiated in the electronic voting having can be initiated by preset function button
Electronic voting.When initiating electronic voting, it usually needs the description information of this electronic voting is edited, such as: it " goes to sing at night
Song? ", " who will drink afternoon tea? " Deng.
Optionally, the initiation member of the electronic voting can with the corresponding preset characters string of customized each polling option,
With " who will drink afternoon tea? " for, initiation member, which can define "+1 " string representation, will drink afternoon tea, " -1 " string representation
Do not drink afternoon tea.
Certainly, in practical applications, corresponding polling option can also be indicated using default character string, and then is not necessarily to
It initiates member and carries out the customized of polling option every time.Such as: the polling option of " Yep " corresponding "Yes", " Nope " can be defaulted
The polling option of corresponding "No", the default character string can be configured by developer, can also be preparatory by group administrator
It is configured, the application is not particularly limited this.
In the present embodiment, after initiating member's initiation electronic voting, server-side can be thrown to the corresponding electronics of the pocket transmission
Ticket notice, such as: all group members can send the electronic voting notice into the group, can also into the group except initiate at
Other group members except member send the electronic voting notice.This electronic voting is usually carried in the electronic voting notice
Description information.It, can also be logical in the electronic voting when the corresponding preset characters string of the customized each polling option of promoter
Know the corresponding preset characters string of middle each polling option of carrying.When this electronic voting corresponds to each vote using default character string
Xiang Shi can carry the corresponding relationship of the default character string and each polling option in electronic voting notice, when
So, when group members know the corresponding relationship, the corresponding relationship can not also be carried in the electronic voting notice.
In the present embodiment, client, can be at group chat interface after receiving the electronic voting notice of server-side transmission
In predeterminated position show electronic voting notice.Referring to FIG. 3, the predeterminated position can be the top of group chat dialog box
Portion, group members open group chat interface it is seen that the electronic voting notifies, the electronic voting notice will not be by group chat
Message covering.Certainly, the predeterminated position may be the right side etc. of group chat dialog box, and the application is not particularly limited this.
Two, group members are voted
In the present embodiment, group members can be realized by group's message and be voted after seeing the electronic voting notice.Still
By taking group chat interface shown in Fig. 3 as an example, group members can reply "+1 " registration and drink afternoon tea, reply " -1 " and do not register to drink the noon
Tea.
Optionally, in another example, group members can also add electronics in the group's message for carrying preset characters string
The remark information of ballot.Group chat interface shown in Fig. 4 is please referred to, group members can add after preset characters string "+1 " or " -1 "
Add remark information relevant to this electronic voting.
Three, voting results are checked
In the present embodiment, server-side can check each in the group after electronic voting notice is sent to relevant group
Preset characters string whether is carried in group's message that group members issue, it, can be corresponding according to the preset characters string if carried
Polling option update voting results.Still by taking Fig. 3 as an example, the corresponding voting results of group's message shown in Fig. 3 are as follows: two people drink
Afternoon tea, a people do not drink afternoon tea.
In the present embodiment, for the group members for possessing voting results and checking permission, client can provide voting results
Check button, such as: " checking result " button in the upper right corner of group chat interface shown in Fig. 3.In one example, can default all
Group members possess the voting results and check permission.In another example, for certain sensitive themes, the hair of electronic voting
It plays member and can configure and possess the group members that the voting results check permission.
In the present embodiment, when group members click " checking result " button in the group chat interface upper right corner, client can be with
It sends voting results and checks request to server-side, current newest voting results can be returned to client by server-side.It please refers to
Fig. 5, client can show voting results in suspension windows, and in this example, the voting results that server-side returns include: each throwing
That votes for item chooses the group member list for counting and having neither part nor lot in ballot.
With continued reference to FIG. 5, client can also pass through " urging " button in the suspension windows, when group members are clicked
Should " urging " button when, client can send the ballot alert requests towards the group members for having neither part nor lot in ballot to server-side,
Server-side can send ballot to the group members for having neither part nor lot in ballot and remind after receiving the ballot alert requests, such as: it can be with
Described ballot prompting etc. is sent by prompting message, to prompt the group members for not yet participating in ballot to vote as early as possible.
Optionally, in another example, server-side, can be by this when confirming that certain group's message carries preset characters string
Information in item group's message in addition to the preset characters string saves the remark information and sends the group as remark information
Corresponding relationship between the group members of message.Server-side corresponding can be closed when receiving voting results and checking request by described
It is and chooses the group member list of polling option to be added in voting results to return to client.Please refer to ballot shown in fig. 6
As a result, the voting results are corresponding with group's message shown in Fig. 4, it in this example, can be in the corresponding group members column of each polling option
Difference shows the group members for being corresponding with remark information in table, such as: it is provided on the group members head portrait for be corresponding with remark information special
Different mark, head portrait or the pet name that the group members of remark information are corresponding with special color displaying etc., the application does not make this
It is specifically limited.
In the present embodiment, when the group members for checking voting results can be checked by clicking operation or mouse-over operation
The remark information.Such as: check that the group members of voting results can generate Fig. 7 institute by mouse-over on small strong head portrait
The interface shown, to check small strong remark information.
Optionally, in another example, before the deadline of electronic voting, group members, which can be modified, oneself to be chosen
Polling option.It is assumed that small change mind by force and be not desired to drink afternoon tea, that one small can send by force group message " -1 " again.Service
Hold determine send carry preset characters string " -1 " group's message it is small by force thrown ticket when, can be according to this group of information updatings
The small polling option chosen by force.Certainly, in practical applications, if small want to drink concentrated coffee instead by force, can send "+1, concentration
Group's message of coffee ", server-side can then update small strong corresponding remark information.
Using technical solution provided by the present application it can be seen from above description, group members can also be sent out by group's message
The remark information of ballot is sent, so that voting results are more complete, greatly improves the usage experience of user.
Corresponding with the embodiment of implementation method of electronic voting in aforementioned instant messaging group chat scene, the application also provides
The embodiment of the realization device of electronic voting in instant messaging group chat scene.
The embodiment of the realization device of electronic voting can be applied and be filled in the terminal in the application instant messaging group chat scene
In the client of load or on the server of service provider's deployment.Installation practice can also be led to by software realization
The mode for crossing hardware or software and hardware combining is realized.It taking software implementation as an example, is to pass through as the device on a logical meaning
Computer program instructions corresponding in nonvolatile memory are read into memory by the processor of terminal or server where it
What operation was formed.For hardware view, as shown in figure 8, for the realization of electronic voting in the application instant messaging group chat scene
A kind of hardware structure diagram of terminal or server where device, in addition to processor shown in Fig. 8, memory, network interface, Yi Jifei
Except volatile memory, the terminal or server in embodiment where device are generally according to the terminal or the practical function of server
Can, it can also include other hardware, this is repeated no more.
Fig. 9 is the realization dress of electronic voting in a kind of instant messaging group chat scene shown in one exemplary embodiment of the application
The block diagram set.
Referring to FIG. 9, the realization device 800 of electronic voting can be applied in earlier figures in the instant messaging group chat scene
In server shown in 8, include: ballot initiates unit 801, notice transmission unit 802, ballot inspection unit 803, result more
New unit 804, result return unit 805, ballot reminding unit 806 and remarks storage unit 807.
Wherein, unit 801 is initiated in ballot, is received the electronic voting that group members are sent in group and is initiated request;
It notifies transmission unit 802, is notified to pocket transmission electronic voting corresponding with electronic voting initiation request;
Inspection unit 803 of voting checks group's message that this group of each group members issue after electronic voting notice issues
In whether carry preset characters string, the preset characters string is corresponding with a polling option of electronic voting;
As a result updating unit 804, when carrying the preset characters string in group's message, according to the preset characters string
Corresponding polling option updates voting results.
As a result return unit 805 return to the voting results when receiving voting results and checking request;
Wherein, the voting results include: the group member list of each polling option chosen counting and have neither part nor lot in ballot.
Ballot reminding unit 806, receives ballot alert requests, the ballot alert requests have neither part nor lot in ballot towards described
Group members, Xiang Suoshu have neither part nor lot in ballot group members send ballot remind.
Remarks storage unit 807, it is described pre- by being removed in group's message for the group's message for carrying the preset characters string
If the information except character string saves between the remark information and the group members for sending group's message as remark information
Corresponding relationship;
The voting results further include: choose the group member list of polling option and the corresponding remarks letter of the group members
Breath.
Optionally, the result updating unit 804 is sending the group members for the group's message for carrying the preset characters string
When throwing ticket, the voting results are updated according to the preset characters string.
Optionally, the electronic voting is initiated to carry the corresponding preset characters string of each polling option in request.
Optionally, include: in the electronic voting notice electronic voting description information and polling option it is corresponding pre-
If character string.
Figure 10 is the realization of electronic voting in a kind of instant messaging group chat scene shown in one exemplary embodiment of the application
The block diagram of device.
Referring to FIG. 10, the realization device 900 of electronic voting can be applied aforementioned in the instant messaging group chat scene
In terminal shown in Fig. 8, include: notification receiving unit 901, notice display unit 902, result receiving unit 903, result exhibition
Show unit 904, triggering reminding unit 905 and remarks display unit 906.
Wherein, notification receiving unit 901 receive the electronic voting notice of server-side transmission, the electronic voting notice
It is initiated by the group members in group;
Notify display unit 902, the predeterminated position in this group of group chat interfaces shows the electronic voting notice;
As a result receiving unit 903, receive the voting results that server-side is sent, and the voting results are disappeared by server-side according to group
The preset characters string carried in breath updates, and the preset characters string is corresponding with a polling option of electronic voting;
As a result display unit 904 show the voting results, include: choosing for each polling option in the voting results
Count and have neither part nor lot in the group member list of ballot.
Optionally, the result display unit 904 provides ballot and reminds button when showing the voting results;
Reminding unit 905 is triggered, when the ballot reminds button to be triggered, is sent towards the group for having neither part nor lot in ballot
The ballot alert requests of member are reminded to server-side so that server-side sends ballot to the group members for having neither part nor lot in ballot.
Optionally, the voting results further include: choose the group member list of polling option and group members corresponding standby
Infuse information;
The result display unit 904, difference shows the group members for being corresponding with remark information in the group member list.
Remarks display unit 906 is checked when the remark information for receiving the group members transmission shown for the difference and is asked
When asking, the corresponding remark information of the group members is shown;
Wherein, the remark information checks that request passes through clicking operation or mouse-over operation triggering.
Optionally, include: in the electronic voting notice electronic voting description information and polling option it is corresponding pre-
If character string.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.