WO2020078078A1 - 一种即时通信的通知方法、装置、电子设备及存储介质 - Google Patents
一种即时通信的通知方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2020078078A1 WO2020078078A1 PCT/CN2019/099632 CN2019099632W WO2020078078A1 WO 2020078078 A1 WO2020078078 A1 WO 2020078078A1 CN 2019099632 W CN2019099632 W CN 2019099632W WO 2020078078 A1 WO2020078078 A1 WO 2020078078A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- notification
- current
- copy
- voice
- text
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
Definitions
- the present application relates to the field of communication technology, and in particular, to an instant communication notification method, device, electronic device, and storage medium.
- IM Instant messaging
- IM is a real-time communication system that allows two or more people to use the network to deliver text messages, files, voices, or communicate through video in real time.
- broadcast and notification functions are sometimes needed.
- the information received by the corresponding users is the same, similar to wireless broadcasting; however, the notification function is different from the broadcast function.
- the notification function different users need to be targeted. Push different information to suit the identity of the corresponding user.
- the present application discloses an instant communication notification method, device, electronic device, and storage medium.
- an instant communication notification method including:
- an instant communication notification device including:
- the relationship judgment module is configured to judge the relationship between the current client and the event
- the voice selection module is configured to select the current voice according to the relationship
- the copy selection module is configured to read the target copy corresponding to the current voice form from a plurality of preset notification copy
- the information filling module is configured to fill the target copy with information to obtain the notification text
- the notification sending module is configured to send the notification text to the current client.
- an electronic device including:
- This application proposes a notification method for instant messaging, by judging the relationship between the current client and the event; and then judging the voice according to the relationship to get the current voice; and reading from the preset multiple notification texts
- the target copy corresponding to the current voice fill in the target copy with information to get the notification text; send the notification text to the current client to realize the message notification to the relevant users. Since the target copy is determined according to the relationship between the current client and the event, the finally pushed notification text is adapted to the identity of the user who adapts to the current client, thereby adapting to the identity characteristics of the corresponding user.
- Fig. 1 is a flow chart showing an instant communication notification method according to an exemplary embodiment
- Fig. 2 is a flowchart of another instant messaging notification method according to an exemplary embodiment
- Fig. 3 is a flowchart illustrating yet another instant messaging notification method according to an exemplary embodiment
- Fig. 4 is a block diagram of an instant communication notification device according to an exemplary embodiment
- Fig. 5 is a block diagram of another instant messaging notification device according to an exemplary embodiment
- Fig. 6 is a block diagram of yet another instant messaging notification device according to an exemplary embodiment
- Fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment
- Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
- Fig. 1 is a flowchart of an instant communication notification method according to an exemplary embodiment.
- the instant communication notification method provided in this embodiment is applied to a server of an instant communication system, and includes the following steps.
- the current client refers to the client that uploads the corresponding request according to the user's operation. At this time, the relationship between the current client sending the request and the corresponding event is judged, or whether the event is generated by the current client, or whether the event Whether it is applied to the current client, or whether the active or passive side of the event is not the current client.
- the current voice matching the relationship is selected from multiple voices according to the relationship.
- multiple voices are main, guest, and third person.
- the master state means that the current client is the executor of the event
- the guest state means that the current client is the executor of the event
- the third person state is that the current client is neither the executor of the event nor the executed event By.
- the current voice is selected according to the following situation.
- the current voice is selected as the main human state; when the current client is determined to be the executor of the event, for example, When someone joins a group chat, the current voice is selected as the guest; when it is determined that the current client is neither the executor nor the executor, the current voice is selected as the third person.
- the preset notification copy includes the host notification copy, the guest notification copy and the third person notification copy, which correspond to the host state, guest state and Third person.
- the notification copy corresponding to the current voice is selected from the multiple notification texts as the selected target copy.
- the notice text includes the target copy, embedded necessary information, such as "User 1", and other non-essential information, such as certain additional information.
- the notification text is sent to the current client, so that the user of the current client can receive the corresponding message notification.
- the Locale uploaded by the current client is detected, and the region, country, or language area where the current client is located is obtained by detecting the Locale.
- the internationalized notification text is sent to the current client. In this way, only the necessary information needs to be stored, and when the internationalization is needed, only the current area is rendered to obtain the internationalized notification text. Not only reduces the amount of data, but also very flexible to use.
- this embodiment further includes the following steps to achieve the purpose of presetting multiple notification texts.
- the text input by the user is translated using the resource bundle tool to obtain multiple notification texts, each of which corresponds to a voice.
- Fig. 4 is a block diagram of an instant communication notification device according to an exemplary embodiment.
- the instant communication notification device provided by the embodiment of the present application is applied to a server of an instant communication system, and includes:
- the relationship judgment module 10 the voice judgment module 20, the copy selection module 30, the information filling module 40, and the notification sending module 50.
- the relationship determination module 10 is used to determine the relationship between the current client and the event.
- the current client refers to the client that uploads the corresponding request according to the user's operation. At this time, the relationship between the current client that sent the request and the corresponding event is judged, or whether the event is generated by the current client, or whether the event Whether it is applied to the current client, or whether the active or passive side of the event is not the current client.
- the voice judgment module 20 is used to determine the current voice according to the relationship between the current client and the event.
- the current voice matching the relationship is selected from multiple voices according to the relationship.
- multiple voices are main, guest, and third person.
- the module includes a first selected unit, a second selected unit, and a third selected unit.
- the first selected unit is used for determining that the current client is the performer of the event, for example, if it adds someone to the group chat, the current voice is selected as the main human state; the second selected unit is used for determining When the current client is the executor of the event, for example, if it is added to a group chat by someone else, the current voice is selected as the guest; the third selected unit is used to determine that the current client is also a non-executor When not being executed, the current voice is selected as the third person.
- the area detection module 60 is used to detect the current area of the current client before the notification sending module 50 sends the notification text to the current client.
- the Locale uploaded by the current client is detected, and the locale, country or language area where the current client is located can be obtained by detecting the Locale.
- the internationalization processing module 70 is used to internationalize the notification text according to the current region.
- the text input by the user is translated using the resource bundle tool to obtain multiple notification texts, each of which corresponds to a voice.
- the present application also provides a computer program for executing the notification method of instant communication shown in FIGS. 1 to 3.
- Fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment.
- the mobile terminal 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
- the mobile terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, and a sensor component 814 , ⁇ ⁇ ⁇ 816.
- the processing component 802 generally controls the overall operations of the mobile terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps in the above method.
- the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components.
- the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
- the I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
- the peripheral interface module may be a keyboard, a click wheel, or a button. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
- the sensor component 814 includes one or more sensors for providing the mobile terminal 800 with status evaluation in various aspects.
- the sensor component 814 can detect the on / off state of the device 800, and the relative positioning of the components, such as the display and the keypad of the mobile terminal 800, and the sensor component 814 can also detect the mobile terminal 800 or a component of the mobile terminal 800 , The location of the user changes, the presence or absence of user contact with the mobile terminal 800, the orientation or acceleration / deceleration of the mobile terminal 800, and the temperature change of the mobile terminal 800.
- the sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor assembly 814 may further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- the mobile terminal 800 may be used by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), The programming gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented to perform the notification method of instant communication as shown in FIGS. 1-3.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA programming gate array
- controller microcontroller, microprocessor or other electronic components are implemented to perform the notification method of instant communication as shown in FIGS. 1-3.
- Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
- the electronic device 1900 may be provided as a server.
- the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by the memory 1932 for storing instructions executable by the processing component 1922, such as application programs.
- the application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
- the processing component 1922 is configured to execute instructions to perform the above method.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请提供了一种即时通信的通知方法、装置、电子设备及存储介质,该通知方法和装置具体为判断当前客户端与事件之间的关系;根据关系进行语态判断,得到当前语态;从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关客户的消息通知。由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与当前客户端的用户的身份相适应,从而适应相应用户的身份特征。
Description
相关申请的交叉引用
本申请要求于2018年10月17日提交中国专利局、申请号为201811210242.8,发明名称为“一种即时通信的通知方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,尤其涉及一种即时通信的通知方法、装置、电子设备及存储介质。
即时通信(Instant Messaging,简称IM)是一种实时通信系统,允许两人或多人使用网络实时地传递文字消息、文件、语音,或者通过视频进行交流。
即时通信中有时需要用到广播和通知功能,广播功能中,相应用户收到的信息是相同的,类似于无线广播;然而,通知功能不同于广播功能,在通知功能中,需要针对不同的用户推送不同的信息,以适应相应用户的身份特征。
发明人意识到,相关技术中的通知功能,无法针对不同的用户推送不同的信息。
发明内容
为克服相关技术中通知功能无法针对不同的用户推送不同的信息的问题,本申请公开一种即时通信的通知方法、装置、电子设备及存储介质。
根据本申请实施例的第一方面,提供一种即时通信的通知方法,包括:
判断当前客户端与事件之间的关系;
根据所述关系选定当前语态;
从预置的多个通知文案中读取与所述当前语态相对应的目标文案;
对所述目标文案进行信息填充,得到通知文本;
将所述通知文本发送到所述当前客户端。
根据本申请实施例的第二方面,提供了一种即时通信的通知装置,包括:
关系判断模块,被配置为判断当前客户端与事件之间的关系;
语态选定模块,被配置为根据所述关系选定当前语态;
文案选定模块,被配置为从预置的多个通知文案中读取与所述当前语态相对应的目标文案;
信息填充模块,被配置为对所述目标文案进行信息填充,得到通知文本;
通知发送模块,被配置为将所述通知文本发送到所述当前客户端。
根据本申请实施例的第三方面,提供了一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现下列过程:
判断当前客户端与事件之间的关系;
根据所述关系选定当前语态;
从预置的多个通知文案中读取与所述当前语态相对应的目标文案;
对所述目标文案进行信息填充,得到通知文本;
将所述通知文本发送到所述当前客户端。
根据本申请实施例的第四方面,提供了一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行如第一方面所述的通知方法。
根据本申请实施例的第五方面,提供一种应用程序/计算机程序产品,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行如第一方面所述的通知方法。
本申请提出了一种即时通信的通知方法,通过判断当前客户端与事件之间的关系;再根据关系进行语态判断,得到当前语态;并从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关用户的消息通知。 由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与适应当前客户端的用户的身份相适应,从而适应相应用户的身份特征。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1是根据一示例性实施例示出的一种即时通信的通知方法的流程图;
图2是根据一示例性实施例示出的另一种即时通信的通知方法的流程图;
图3是根据一示例性实施例示出的又一种即时通信的通知方法的流程图;
图4是根据一示例性实施例示出的一种即时通信的通知装置的框图;
图5是根据一示例性实施例示出的另一种即时通信的通知装置的框图;
图6是根据一示例性实施例示出的又一种即时通信的通知装置的框图;
图7是根据一示例性实施例示出的一种移动终端的框图;
图8是根据一示例性实施例示出的一种电子设备的框图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种即时通信的通知方法的流程图。
如图1所示,本实施例所提供的即时通信的通知方法应用于即时通信系统的服务器中,包括以下步骤。
S1、判断当前客户端与事件之间的关系。
当前客户端是指根据用户的操作上传相应请求的客户端,此时判断发送该请求的当前客户端与相应事件之间的关系,或者说该事件是否由当前客户端产生、或者说该事件是否施加于该当前客户端,或者该事件的主动方或被动方是否均非该当前客户端。
S2、根据该关系确定当前语态。
在确定上述关系之后,根据该关系从多个语态中选定与该关系匹配的当前语态。对于群聊环境来说,多个语态分别为主人态、客人态和第三人态。其中,主人态是指当前客户端为事件的执行者,客人态是指当前客户端为事件的被执行者,第三人态是指当前客户端既非事件的执行者也非事件的被执行者。
具体来说,根据下面的情况选定当前语态。
当确定当前客户端为该事件的执行者时,例如其将某人加入了群聊,则选定该当前语态为主人态;当确定当前客户端为该事件的被执行者时,例如其被别人加入了某个群聊,则选定当前语态为客人态;当确定当前客户端既非执行者也非被执行者时,则选定当前语态为第三人态。
S3、读取与当前语态对应的目标文案。
从预置的多个通知文案中选定与当前语态对应的目标文案,例如预置的通知文案有主人通知文案、客人通知文案和第三人通知文案,分别对应于主人态、客人态和第三人态。当确定当前语态时,从多个通知文案中选择与当前语态对应的通知文案作为选定的目标文案。
例如,预置的通知文案可以如:
“你邀请${0}加入了群聊”,“${0}邀请你加入了群聊,群成员还有${1}”,或者,“${0}邀请${1}加入了群聊”。然后根据当前语态从中选择一个作为目标文案。
S4、对目标文案进行信息填充,得到通知文本。
即将需要的相关信息填入到该目标文案中,然后根据当前语态从中选择一个作为目标文案。例如将“用户1”填入${0}处,将“用户2”填入${1}处,从而得到完整的通知文本。例如,“你邀请用户1加入了群聊”,“用户1邀请你加入了群聊,群成员还有用户2”,或者,“用户1邀请用户2加入了群聊”。
该通知文本中包括目标文案、嵌入的必要信息,如“用户1”,和其他非必 要信息,如一定的附加信息。
S5、将通知文本发送到当前客户端。
在得到该通知文本之后,将该通知文本发送到该当前客户端,从而使当前客户端的用户能够收到相应的消息通知。
本申请实施例提供了一种即时通信的通知方法,具体为判断当前客户端与事件之间的关系;根据关系进行语态判断,得到当前语态;从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关客户的消息通知。由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与当前客户端的用户的身份相适应,从而适应相应用户的身份特征。
另外,在本实施例中,如图2所示,在对目标文案进行信息填充,得到通知文本之后,将通知文本发送到当前客户端之前,还包括如下操作:
S41、检测当前客户端的当前区域。
具体实施时,检测当前客户端上传的Locale,通过检测该Locale得到当前客户端所在的地区、国家或者语言区域。
S42、根据当前区域对通知文本进行国际化处理。
具体可以利用resource bundle工具对通知文本进行翻译,从而得到与当前区域的语言种类相匹配的通知文本。
在得到该国际化的通知文本之后,再将该国际化的通知文本发送到当前客户端。这样,只需存储必备信息,在需要国际化时仅根据当前区域进行渲染即可得到国际化的通知文本。不但降低了数据量,而且用起来非常灵活。
在一些选择性实施例中,如图3所示,本实施例还包括如下步骤,以实现预置多个通知文案的目的。
S101、对输入的文案进行翻译,得到多个通知文案。
即响应用户的输入请求,对用户输入的文案利用resource bundle工具进行翻译,从而得到多个通知文案,每个通知文案对应于一种语态。
S102、存储多个通知文案。
在得到多个通知文案之后,将多个通知文案予以存储,以便在后续使用时从中选定目标文案。
图4是根据一示例性实施例示出的一种即时通信的通知装置的框图。如图4所示,本申请实施例所提供的即时通信的通知装置应用于即时通信系统的服务器中,包括:
关系判断模块10、语态判断模块20、文案选定模块30、信息填充模块40和通知发送模块50。
关系判断模块10用于判断当前客户端与事件之间的关系。
当前客户端是指根据用户的操作上传相应请求的客户端,此时判断发送该请求的当前客户端与相应事件之间的关系,或者说该事件是否由当前客户端产生、或者说该事件是否施加于该当前客户端,或者该事件的主动方或被动方是否均非该当前客户端。
语态判断模块20用于根据当前客户端与事件之间的关系确定当前语态。
在确定上述关系后,根据该关系从多个语态中选定与该关系匹配的当前语态。对于群聊环境来说,多个语态分别为主人态、客人态和第三人态。具体来说,该模块包括第一选定单元、第二选定单元和第三选定单元。
第一选定单元用于当确定当前客户端为该事件的执行者时,例如其将某人加入了群聊,则选定该当前语态为主人态;第二选定单元用于当确定当前客户端为该事件的被执行者时,例如其被别人加入了某个群聊,则选定当前语态为客人态;第三选定单元用于当确定当前客户端即非执行者也非被执行者时,则选定当前语态为第三人态。
文案选定模块30用于读取与当前语态对应的目标文案。
从预置的多个通知文案中选定与当前语态对应的目标文案,例如预置有主人通知文案、客人通知文案和第三人通知文案,分别对应于主人态、客人态和第三人态。当确定当前语态时,则从多个通知文案中选择与当前语态对应的通知文案作为选定的目标文案。
例如,预置的通知文案可以如:
“你邀请${0}加入了群聊”,“${0}邀请你加入了群聊,群成员还有${1}”,或者,“${0}邀请${1}加入了群聊”。然后根据当前语态从中选择一个作为目标文案。
信息填充模块40用于对目标文案进行信息填充,得到通知文本。
即将需要的相关信息填入到该目标文案中,然后根据当前语态从中选择 一个作为目标文案。例如将“用户1”填入${0}处,将“用户2”填入${1}处,从而得到完整的通知文本。例如,“你邀请用户1加入了群聊”,“用户1邀请你加入了群聊,群成员还有用户2”,或者,“用户1邀请用户2加入了群聊”。
该通知文本中包括目标文案、嵌入的必要信息,如“用户1”,和其他非必要信息,如一定的附加信息。
通知发送模块50用于将通知文本发送到当前客户端。
在得到该通知文本后,将该通知文本发送到该当前客户端,从而使当前客户端的用户能够收到相应的消息通知。
本申请实施例提供了一种即时通信的通知装置,具体为判断当前客户端与事件之间的关系;根据关系进行语态判断,得到当前语态;从预置的多个通知文案中读取与当前语态相对应的目标文案;对目标文案进行信息填充,得到通知文本;将通知文本发送到当前客户端,从而实现对相关客户的消息通知。由于其中的目标文案是根据当前客户端与事件之间的关系确定的,因此最终推送的通知文本与当前客户端的用户的身份相适应,从而适应相应用户的身份特征。
另外,在本申请实施例中,如图5所示,还包括区域检测模块60和国际化处理模块70。
区域检测模块60用于在通知发送模块50将通知文本发送到当前客户端之前,检测当前客户端的当前区域。
实际是检测当前客户端上传的Locale,通过检测该Locale得到当前客户端所在的地区、国家或者语言区域。
国际化处理模块70用于根据当前区域对通知文本进行国际化处理。
具体可以利用resource bundle工具对通知文本进行翻译,从而得到预当前区域的语言种类相匹配的通知文本。
在得到该国际化的通知文本之后,再将该国际化的通知文本发送到当前客户端。这样,只需存储必备信息,在需要国际化时仅根据当前区域进行渲染即可得到国际化的通知文本。一是降低了数据量,二是用起来非常灵活。
还有,如图6所示,本申请实施例还包括文案翻译模块80和文案存储模块90,以实现预置多个通知文案的目的。
文案翻译模块80用于对输入的文案进行翻译,得到多个通知文案。
即响应用户的输入请求,对用户输入的文案利用resource bundle工具进行翻译,从而得到多个通知文案,每个通知文案对应于一种语态。
文案存储模块90用于存储多个通知文案。
在得到多个通知文案之后,将多个通知文案予以存储,以便在后续使用时从中选定目标文案。
本申请还提供一种计算机程序,该计算机程序用于执行如图1~图3所示的即时通信的通知方法。
图7是根据一示例性实施例示出的一种移动终端的框图。例如,移动终端800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图7,移动终端800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制移动终端800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便完成多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在移动终端800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为移动终端800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为移动终端800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述移动终端800和用户之间的提供一个输出接 口的屏幕。在一些本申请实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些本申请实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当移动终端800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些本申请实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为移动终端800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为移动终端800的显示器和小键盘,传感器组件814还可以检测移动终端800或移动终端800一个组件的位置改变,用户与移动终端800接触的存在或不存在,移动终端800方位或加速/减速和移动终端800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些本申请实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于移动终端800和其他设备之间有线或无线方式的通信。移动终端800可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中, 通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,移动终端800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行如图1~图3所示的即时通信的通知方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由移动终端800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
图8是根据一示例性实施例示出的一种电子设备的框图。例如,电子设备1900可以被提供为一服务器。参照图8,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或多个的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确 结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。
Claims (14)
- 一种即时通信的通知方法,包括:判断当前客户端与事件之间的关系;根据所述关系选定当前语态;从预置的多个通知文案中读取与所述当前语态相对应的目标文案;对所述目标文案进行信息填充,得到通知文本;将所述通知文本发送到所述当前客户端。
- 如权利要求1所述的通知方法,所述当前语态为主人态、客人态或者第三人态。
- 如权利要求2所述的通知方法,所述根据所述关系选定当前语态,包括:如果所述当前客户端为所述事件的执行者,则选定所述当前语态为主人态;如果所述当前客户端为所述事件的被执行者,则选定所述当前语态为客人态;如果所述当前客户端不是所述执行者和所述被执行者,则选定所述当前语态为第三人态。
- 如权利要求1所述的通知方法,所述通知文本包括目标文案、嵌于所述目标文案中的必要信息和附加信息。
- 如权利要求1所述的通知方法,在对所述目标文案进行信息填充,得到通知文本之后,将所述通知文本发送到所述当前客户端之前,所述方法还包括:检测所述当前客户端的当前区域;根据所述当前区域对所述通知文本进行国际化处理;所述将所述通知文本发送到所述当前客户端,包括:将进行国际化处理后的通知文本发送到所述当前客户端。
- 如权利要求1-5任一项所述的通知方法,所述预置的多个通知文案通过以下方式生成:响应文案存储请求,对输入的文案进行翻译,得到多个通知文案;存储所述多个通知文案,作为预置的多个通知文案。
- 一种即时通信的通知装置,包括:关系判断模块,被配置为判断当前客户端与事件之间的关系;语态选定模块,被配置为根据所述关系选定当前语态;文案选定模块,被配置为从预置的多个通知文案中读取与所述当前语态相对应的目标文案;信息填充模块,被配置为对所述目标文案进行信息填充,得到通知文本;通知发送模块,被配置为将所述通知文本发送到所述当前客户端。
- 一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现下列过程:判断当前客户端与事件之间的关系;根据所述关系选定当前语态;从预置的多个通知文案中读取与所述当前语态相对应的目标文案;对所述目标文案进行信息填充,得到通知文本;将所述通知文本发送到所述当前客户端。
- 如权利要求8所述的电子设备,所述当前语态为主人态、客人态或者第三人态。
- 如权利要求9所述的电子设备,所述根据所述关系选定当前语态,包括:如果所述当前客户端为所述事件的执行者,则选定所述当前语态为主人态;如果所述当前客户端为所述事件的被执行者,则选定所述当前语态为客人态;如果所述当前客户端不是所述执行者和所述被执行者,则选定所述当前语态为第三人态。
- 如权利要求8所述的电子设备,所述通知文本包括目标文案、嵌于所述目标文案中的必要信息和附加信息。
- 如权利要求8所述的电子设备,在对所述目标文案进行信息填充,得到通知文本之后,将所述通知文本发送到所述当前客户端之前,还包括:检测所述当前客户端的当前区域;根据所述当前区域对所述通知文本进行国际化处理;所述将所述通知文本发送到所述当前客户端,包括:将进行国际化处理后的通知文本发送到所述当前客户端。
- 如权利要求8-12任一项所述的电子设备,所述预置的多个通知文案通过以下方式生成:响应文案存储请求,对输入的文案进行翻译,得到多个通知文案;存储所述多个通知文案,作为预置的多个通知文案。
- 一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行如权利要求1-6任一项所述的通知方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811210242.8 | 2018-10-17 | ||
| CN201811210242.8A CN109543008A (zh) | 2018-10-17 | 2018-10-17 | 一种即时通信的通知方法、装置、电子设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020078078A1 true WO2020078078A1 (zh) | 2020-04-23 |
Family
ID=65844077
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/099632 Ceased WO2020078078A1 (zh) | 2018-10-17 | 2019-08-07 | 一种即时通信的通知方法、装置、电子设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109543008A (zh) |
| WO (1) | WO2020078078A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115442325A (zh) * | 2022-08-23 | 2022-12-06 | 北京达佳互联信息技术有限公司 | 消息处理方法及装置 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109543008A (zh) * | 2018-10-17 | 2019-03-29 | 北京达佳互联信息技术有限公司 | 一种即时通信的通知方法、装置、电子设备及存储介质 |
| CN110460512B (zh) * | 2019-08-01 | 2021-10-22 | 北京达佳互联信息技术有限公司 | 系统消息生成方法、装置、服务器及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080313534A1 (en) * | 2005-01-07 | 2008-12-18 | At&T Corp. | System and method for text translations and annotation in an instant messaging session |
| CN104125140A (zh) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | 一种消息发送方法及装置 |
| CN104881279A (zh) * | 2015-05-12 | 2015-09-02 | 广东欧珀移动通信有限公司 | 一种群发消息的方法及装置 |
| CN105335343A (zh) * | 2014-07-25 | 2016-02-17 | 北京三星通信技术研究有限公司 | 文本编辑方法和装置 |
| CN109543008A (zh) * | 2018-10-17 | 2019-03-29 | 北京达佳互联信息技术有限公司 | 一种即时通信的通知方法、装置、电子设备及存储介质 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103259714A (zh) * | 2013-04-28 | 2013-08-21 | 深圳市深信服电子科技有限公司 | 即时信息通知方法及装置 |
| HK1197632A2 (zh) * | 2014-08-08 | 2015-01-30 | 创万科技有限公司 | 一种即时通信系统 |
| KR102449543B1 (ko) * | 2015-07-21 | 2022-10-04 | 삼성전자주식회사 | 전자 장치 및 전자 장치에서 사용자의 정보를 획득하는 방법 |
| CN106789575B (zh) * | 2016-12-22 | 2020-08-28 | 太和县科维生产力促进中心有限公司 | 一种信息发送装置、方法 |
| CN106940646A (zh) * | 2017-03-17 | 2017-07-11 | 微梦创科网络科技(中国)有限公司 | 一种软件国际化处理方法、装置及系统 |
| CN107707454A (zh) * | 2017-09-19 | 2018-02-16 | 广东小天才科技有限公司 | 一种基于即时通信或社交应用的信息处理方法及装置 |
-
2018
- 2018-10-17 CN CN201811210242.8A patent/CN109543008A/zh active Pending
-
2019
- 2019-08-07 WO PCT/CN2019/099632 patent/WO2020078078A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080313534A1 (en) * | 2005-01-07 | 2008-12-18 | At&T Corp. | System and method for text translations and annotation in an instant messaging session |
| CN104125140A (zh) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | 一种消息发送方法及装置 |
| CN105335343A (zh) * | 2014-07-25 | 2016-02-17 | 北京三星通信技术研究有限公司 | 文本编辑方法和装置 |
| CN104881279A (zh) * | 2015-05-12 | 2015-09-02 | 广东欧珀移动通信有限公司 | 一种群发消息的方法及装置 |
| CN109543008A (zh) * | 2018-10-17 | 2019-03-29 | 北京达佳互联信息技术有限公司 | 一种即时通信的通知方法、装置、电子设备及存储介质 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115442325A (zh) * | 2022-08-23 | 2022-12-06 | 北京达佳互联信息技术有限公司 | 消息处理方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109543008A (zh) | 2019-03-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10728196B2 (en) | Method and storage medium for voice communication | |
| US10178214B2 (en) | Methods and apparatuses for binding with device | |
| US9667774B2 (en) | Methods and devices for sending virtual information card | |
| US20220295119A1 (en) | Method and apparatus for interacting in live stream | |
| CN106791921B (zh) | 视频直播的处理方法、装置及存储介质 | |
| CN109600303B (zh) | 内容分享方法、装置及存储介质 | |
| CN106790043B (zh) | 直播应用中发送消息的方法及装置 | |
| CN105159672A (zh) | 远程协助方法和客户端 | |
| CN106488335A (zh) | 直播控制方法及装置 | |
| US20170031640A1 (en) | Method, device and system for starting target function | |
| CN106254467A (zh) | 文件分享方法及装置 | |
| WO2016045277A1 (zh) | 信息获取方法、装置和系统 | |
| WO2017088247A1 (zh) | 输入处理方法、装置及设备 | |
| US20170249513A1 (en) | Picture acquiring method, apparatus, and storage medium | |
| WO2017219497A1 (zh) | 消息生成方法及装置 | |
| CN107329714A (zh) | 一种打印控制方法及装置 | |
| CN107885016A (zh) | 全息投影方法及装置 | |
| WO2020078078A1 (zh) | 一种即时通信的通知方法、装置、电子设备及存储介质 | |
| CN106096011A (zh) | 照片分享方法及装置 | |
| CN106130873A (zh) | 信息处理方法及装置 | |
| CN108009269A (zh) | 显示页面数据的方法、装置 | |
| CN106572003A (zh) | 用户信息推荐方法和装置 | |
| WO2023115777A1 (zh) | 光标控制方法、装置、电子设备和存储介质 | |
| CN107241432B (zh) | 消息接收方法、装置、电子设备及计算机可存储介质 | |
| CN116301484A (zh) | 一种数据共享方法及装置、电子设备、存储介质 |
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: 19873224 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: 19873224 Country of ref document: EP Kind code of ref document: A1 |