Disclosure of Invention
The present specification describes a method for implementing a reminder service, which prompts a user whether to use the next reminder service when it is determined that the service time of the next reminder service falls within a preset time range, and cancels the next reminder service according to a cancel instruction input by the user, thereby improving user experience.
According to a first aspect, a method for implementing an alert service is provided, where the method includes: acquiring service time of next reminding service in the circulating reminding service; judging whether the service time falls into a preset time range or not; and when the service time falls into the preset time range, generating a service use confirmation message so as to ensure that the user confirms whether to use the next reminding service.
According to one embodiment, the service time comprises a service date, the preset time range comprises a special date set, and the special date set comprises at least holidays; the judging whether the service time falls into a preset time range includes: and judging whether the service date belongs to the special date set.
Further, in a specific embodiment, the special date set further includes the user-defined special date, and the special date includes at least one of a birthday, a anniversary, and a travel date.
According to an embodiment, the determining whether the service time falls within a preset time range includes: judging whether the service time belongs to one day from Monday to Friday; and when the service time belongs to one day from Monday to Friday, judging whether the service time falls into a preset time range.
According to one embodiment, the service time comprises a service time instant, and the preset time range comprises a preset time interval; the judging whether the service time falls into a preset time range includes: and judging whether the service time falls into the preset time interval or not.
Further, in a specific embodiment, the preset time interval is determined based on the following steps: acquiring historical service time of a historical reminding service; and determining the preset time interval based on the historical service time and a preset fluctuation value.
According to one embodiment, the method further comprises: and canceling the next reminding service in response to a confirmation canceling instruction input by the user based on the service use confirmation message.
According to one embodiment, the method further comprises: and reserving the next reminding service in response to a confirmation use instruction input by the user based on the service use confirmation message.
According to one embodiment, the recurring reminder service is an alarm clock reminder service or a schedule reminder service.
According to a second aspect, an apparatus for implementing an alert service is provided, the apparatus comprising: the acquisition unit is used for acquiring the service time of the next reminding service in the circulating reminding service; the judging unit is used for judging whether the service time falls into a preset time range or not; and the generating unit is used for generating a service use confirmation message when the service time falls into the preset time range so as to ensure that a user confirms whether to use the next reminding service.
According to a third aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of the first aspect.
According to a fourth aspect, there is provided a computing device comprising a memory and a processor, wherein the memory has stored therein executable code, and wherein the processor, when executing the executable code, implements the method of the first aspect.
In the implementation method of the reminding service disclosed in the embodiment of the present specification, based on the circular reminding service set by the user, before the reminding service is provided each time, whether the service time of the service falls into a preset time range is judged; when the service time is judged to fall into the preset time range, generating a service use confirmation message; then, in response to a confirmation cancellation instruction input by the user, the reminder service is cancelled. Therefore, the user can cancel the service which is not needed in advance, and the user experience is further improved.
Detailed Description
Embodiments disclosed in the present specification are described below with reference to the accompanying drawings. The implementation method of the reminder service disclosed in the embodiments of the present specification can be applied to mobile devices, such as mobile phones, tablet computers, and the like.
At present, people increasingly use the cycle reminding service provided by the application APP in the terminal to improve the efficiency of various matters in work, study and life. For example, office workers and student parties usually set an alarm for a cycle reminder at 6 o' clock every monday to friday morning to wake themselves up on time. For another example, most companies will hold a working meeting at regular time, for example, at three o 'clock of Monday afternoon every two weeks, at this time, the staff can remind the APP through the schedule, and create a cycle reminding task with three o' clock of Monday afternoon, a reminding period of 2 weeks, and backlog as the working meeting. It is true that in most cases monday through friday are weekdays, but according to the national legal holidays, in a certain week one or several days of monday through friday will be classified as a holiday, and the user may not need to cycle through one or several services that the service will provide during this period. For example, friday of a week is classified as one day of the national holiday, and on this day, if an alarm at 6 am is sounded, it will bring a bad experience to a user who is sleeping soundly, or if a meeting event at 3 pm gives a vibration reminder, it will disturb the user's leisure mood during the holiday.
Based on the above observation, the embodiments of the present specification provide a method for implementing a reminder service. According to a specific embodiment, based on the cycle reminding service set by the user, for example, as can be seen from the interface shown in fig. 1, the user sets an alarm reminding service of 6 am every friday morning; before providing the reminding service each time, judging whether the service time of the service falls into a preset time range, for example, the date corresponding to the next friday, such as 2018, 2, month and 16, can be acquired in advance for several days, such as 5 days; when it is determined that the service time falls within the preset time range, such as the spring festival of 2/16/2018, a service usage confirmation message, for example, the message shown in the interface of fig. 2 is generated, and the message includes the content "2-16 is the first one of the spring festival lunar calendar, whether the alarm clock continues to remind", "no, 2-166: 00 not alert "," yes, continue alert "; then, in response to a confirmation cancellation instruction input by the user, for example, to "no, 2-166: and 00, clicking to cancel the reminding service. Therefore, the user can cancel the service which is not needed in advance, and the user experience is further improved. The specific implementation steps of the method are described below.
Fig. 3 is a flowchart of an implementation method of the alert service according to an embodiment, and an execution subject of the method may be: system software or client software. As shown in fig. 3, the method flow includes the following steps: step S310, acquiring service time of next reminding service in the circulating reminding service; step S320, judging whether the service time falls into a preset time range; in step S330, when the service time falls within the preset time range, a service use confirmation message is generated to confirm whether to use the next reminder service.
First, in step S310, the service time of the next reminder service in the circular reminder service is obtained.
It should be noted that the cycle reminding service refers to a service that can circularly (or repeatedly) remind a user at a certain preset time (hereinafter referred to as a preset time) in a day according to a preset cycle frequency. In one embodiment, the preset cycle frequency and the preset time may be preset by a user. In one example, the preset cycling frequency may be set to be daily, every third day, weekly, biweekly, monthly, etc., among others. In another example, the preset cycle frequency may also be set to one monday, six monday, 1 month, etc. In one example, the preset time may be set to any time of day, for example, 8 am 10 min and 2 pm.
According to a specific embodiment, the circular reminding service can comprise an alarm clock reminding service or a schedule reminding service and the like. In one example, an alarm clock reminder of 8 am every monday may be served. In another example, a meeting schedule reminder may be serviced every two weeks for 3 pm.
From the above, the circular reminding service will provide services for a plurality of times at a plurality of times, and it can be understood that the next reminding service in this step refers to the reminding service that will be provided last time. In one embodiment, the obtaining of the service time of the next reminding service may include obtaining a corresponding service time of the first reminding service when the user completes the setting of the circular reminding service. In another embodiment, obtaining the service time of the next reminder service may include obtaining the service time of the next reminder service after the current reminder service is executed. Further, in a specific embodiment, the service time of the next reminding service is obtained after a preset time length elapses from the execution of the current reminding service, where the preset time length may be automatically generated by the system with reference to a preset cycle frequency of the cycle reminding service, and the preset time length is smaller than a cycle time length corresponding to the preset cycle frequency. For example, assuming that the preset cycle frequency is weekly, the preset time duration may be 3 days (less than one week), and may also be understood as the service time for acquiring the next reminder service 4 days before the next reminder service.
In one embodiment, the service time may include a service date, for example, 2 months and 18 days 2018. In another embodiment, the service time may include a service time, e.g., 4 am.
In the above way, the service time of the next reminding service in the circular reminding service can be obtained. Next, in step S320, it is determined whether the service time falls within a preset time range.
In one embodiment, the predetermined time range may include a special date set, and at least holidays are included in the special date set. In a specific embodiment, the special date set may further include user-defined special dates, such as birthdays, anniversaries, travel dates, and the like. It should be noted that for special dates the user will usually have some special arrangement different from the past date, and therefore, it is contemplated that these dates may be added to the special date set.
For sources where a particular set of dates is to be collected, in one embodiment, it may be pre-created and stored based on data collected by the end system. For the collection of data therein, in a specific embodiment, holiday information may be obtained from calendar information of the system, for example, holidays of spring festival from 15 to 21 in 2018, holidays of Qingming festival from 5 to 7 in 2018 and the like may be obtained. In another specific embodiment, the user-defined special date may be obtained from multiple APPs running in the system. In one example, the birthday date may be obtained from a "birthday record book". In another example, the travel date may be obtained from transportation service software, such as "railroad 12306". In yet another specific embodiment, the terminal system may collect a plurality of special dates within a certain time period, such as the last year, or the last half year, for creating a corresponding special date set. Further, in one particular example, the special date set may be updated based on data collected periodically by the terminal system. In another embodiment, a special date set may be created based on the collected data sent by the server or the cloud. In one example, the server or the cloud may obtain calendar information from a network, or obtain special dates from registration data and related release content of the user social account, and send the data to the terminal for creating a special date set.
Further, determining whether the service time falls within the preset time range may include: it is determined whether the service date belongs to a special date set. According to a specific example, it can be determined whether the service date of the next alarm reminding service belongs to a holiday, for example, whether the date corresponding to the next monday belongs to a holiday.
In another embodiment, the preset time range includes a preset time interval. In a specific embodiment, the preset time interval may be a time interval set by a worker according to a general working habit of most users. In one example, the preset time interval may be set to 10 pm to 5 am, considering that people usually have a rest at night and do not want to be disturbed.
In another specific embodiment, the preset time interval may be determined based on the following steps: the method comprises the steps of firstly obtaining historical service time of historical reminding service, and then determining a preset time interval based on the historical service time and a preset fluctuation value. For obtaining the historical service time, in one example, it may be determined that the next reminder service is a day of the week, for example, a monday, and then the service time set when the reminder service of the monday was edited last time is obtained and is used as the historical service time. In another example, when it is determined that the next reminder service is one day of monday through friday, the service time at which the frequency of user setting is the highest in monday through friday may be acquired and taken as the historical service time. Further, as for the preset fluctuation value, in one example, it may be preset by a worker based on experience, such as setting to 1 hour or 2 hours.
According to a specific example, assuming that the historical service time when the alarm reminding service is acquired is 8 am and the preset fluctuation value is 2h, it is considered that the changed service time is reasonable between 6 am and 10 am and is unreasonable between 10 pm and 6 am, and accordingly, the preset time interval may be set to 10 pm and 6 am.
Further, determining whether the service time falls within the preset time range may include: and judging whether the service time falls into a preset time interval or not. In a specific example, it is assumed that the service time of the next alarm reminding service is 4 am, the preset time interval is from 10 pm to 6 am, and whether 4 am falls into the time interval from 10 pm to 6 am is correspondingly determined.
On the other hand, in one embodiment, considering that saturday and sunday are usually holidays, the set service time is less likely to conflict with special dates such as holidays for certain cycle reminding services of the two days, for example, an alarm clock set for attending an interest training class, and therefore, whether the set service time falls within the preset time range or not may not be determined for the service time. Accordingly, this step may include: firstly, judging whether the service time belongs to one day from Monday to Friday; then, when the service time belongs to one day of monday to friday, it is determined whether the service time falls within a preset time range, and in addition, when the service time does not belong to one day of monday to friday, the current flow is ended, that is, the next time the service is reminded to be reserved.
Therefore, whether the service time of the next reminding service falls into the preset time range or not can be judged. According to the judgment result, on one hand, when the service time does not fall into the preset time range, the current process is ended, and the next reminding service is reserved. According to a specific example, the service date of the alarm reminding service of the next Tuesday does not belong to the special date set, and accordingly the current flow can be ended.
On the other hand, when the service time falls within the preset time range, step S330 is performed to generate a service use confirmation message to enable the user to confirm whether to use the next reminder service.
According to a specific example, the service date of the next monday alarm reminding service belongs to a special date set in the spring festival holiday, so that the service use confirmation message shown in fig. 2 can be generated to make the user confirm whether to use the next monday alarm reminding service of 6 o' clock.
According to another specific example, the user sets an alarm 4 o 'clock on monday morning a few days in advance to catch a monday's morning airplane, and the user does not turn off the cycle reminder service after the first ring. Then, in the days before the next 4 monday alarm rings, the service time of the service may be obtained as 4, and it is determined that 4 falls into the preset time interval, that is, 10 pm to 6 am, so that the service use confirmation message shown in fig. 4 may be generated to allow the user to confirm whether to use the next 4 monday alarm.
It should be noted that, after step S230, in an embodiment, the method may further include: and reserving the next reminding service in response to the confirmation use instruction input by the user based on the service use confirmation message. According to an example, the user still needs to go to the company to work during the spring festival, so that the "yes, continue reminder" in fig. 2 is clicked, and accordingly, in response to the confirmation use instruction corresponding to the clicking operation, the next reminder service is retained, namely, at 6 am 2-16: 00 continue to provide alarm alert services to the user.
In another embodiment, after step S230, the method may further include: and canceling the next reminding service in response to a confirmation canceling instruction input by the user based on the service use confirmation message. According to one example, in response to the "no, no reminder" click command in fig. 4, the next reminder service is cancelled, i.e., no alarm reminder is made at am 4, 6-7. It should be noted that, when the user only cancels the next reminding service and does not turn off the corresponding circular reminding service, the same judgment needs to be subsequently performed on the next reminding service, and specifically, when the service time of the next reminding service does not fall within the preset time range, the user continues to be reminded.
Further, it is contemplated that in some cases, the user may not only cancel the next reminder service, but may also need to turn off the recurring reminder service, such as a 4 o 'clock every Monday morning set just a few days in advance to catch up with a 4 o' clock every Monday morning, and after the current day's ringing, the service time may need to be turned off or changed, such as modified to 8 o' clock at the historical service time. Therefore, an option, for example, "no, re-edit" shown in fig. 5, may be added to the service usage confirmation message, so that the user may quickly jump to the editing interface of the reminder service by clicking the option, and then close the corresponding loop reminder service, or re-edit the loop reminder service, thereby further improving the user experience.
As can be seen from the above, in the implementation method of the reminding service provided in the embodiment of the present specification, based on the circular reminding service set by the user, before the reminding service is provided each time, whether the service time of the service falls into the preset time range is determined; when the service time is judged to fall into the preset time range, generating a service use confirmation message; then, in response to a confirmation cancellation instruction input by the user, the reminder service is cancelled. Therefore, the user can cancel the service which is not needed in advance, and the user experience is further improved.
According to an embodiment of another aspect, an implementation apparatus is also provided. FIG. 6 shows a block diagram of an implementation apparatus of an alert service according to one embodiment. As shown in fig. 6, the apparatus 600 includes:
an obtaining unit 610, configured to obtain service time of a next reminding service in the circular reminding service;
a judging unit 620, configured to judge whether the service time falls within a preset time range;
a generating unit 630, configured to generate a service use confirmation message when the service time falls within the preset time range, so that the user confirms whether to use the next reminding service.
In one embodiment, the service time comprises a service date, the preset time range comprises a special date set, and the special date set at least comprises holidays;
the determining unit 620 is specifically configured to: and judging whether the service date belongs to the special date set.
Further, according to a specific embodiment, the special date set further includes the user-defined special date, and the special date includes at least one of a birthday, a anniversary, and a travel date.
In an embodiment, the determining unit 620 is specifically configured to:
judging whether the service time belongs to one day from Monday to Friday;
and when the service time belongs to one day from Monday to Friday, judging whether the service time falls into a preset time range.
In one embodiment, the service time comprises a service time, and the preset time range comprises a preset time interval;
the determining unit 620 is specifically configured to: and judging whether the service time falls into the preset time interval or not.
Further, according to a specific embodiment, the preset time interval is determined based on the following steps:
acquiring historical service time of a historical reminding service;
and determining the preset time interval based on the historical service time and a preset fluctuation value.
In one embodiment, further comprising:
a response unit 640, configured to cancel the next reminding service in response to a cancel confirmation instruction input by the user based on the service usage confirmation message.
In one embodiment, further comprising:
a response unit 640, configured to, in response to the confirmation use instruction input by the user based on the service use confirmation message, reserve the next reminder service.
In one embodiment, the cycle reminding service is an alarm clock reminding service or a schedule reminding service.
In a word, by using the interface switching device provided in the embodiment of the present specification, based on the circular reminding service set by the user, before the reminding service is provided each time, whether the service time of the service falls into the preset time range is determined; when the service time is judged to fall into the preset time range, generating a service use confirmation message; then, in response to a confirmation cancellation instruction input by the user, the reminder service is cancelled. Therefore, the user can cancel the service which is not needed in advance, and the user experience is further improved.
As above, according to an embodiment of a further aspect, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method described in connection with fig. 3.
According to an embodiment of yet another aspect, there is also provided a computing device comprising a memory having stored therein executable code, and a processor that, when executing the executable code, implements the method described in connection with fig. 3.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments disclosed herein may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The above-mentioned embodiments, objects, technical solutions and advantages of the embodiments disclosed in the present specification are further described in detail, it should be understood that the above-mentioned embodiments are only specific embodiments of the embodiments disclosed in the present specification, and are not intended to limit the scope of the embodiments disclosed in the present specification, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the embodiments disclosed in the present specification should be included in the scope of the embodiments disclosed in the present specification.