Invention content
Technical problem to be solved by the present invention lies in, provide it is a kind of more economize on resources, more efficient schedule in real time carry
Awake method.
In order to solve the above technical problems, the present invention provides a kind of calendar prompting methods, including:
Periodically triggering table is reminded in scanning, wherein the prompting triggering table includes the user account for needing calendar prompting
The triggered time being triggered with the calendar prompting of corresponding user;
The user account that the acquisition triggered time has arrived at from the prompting triggering table;
The user schedule corresponding to the user account obtained is traversed, wherein the user schedule includes subscriber calendar
Reminded contents, alerting pattern and corresponding reminder time;
The alerting pattern that acquisition reminder time has arrived at from the user schedule, as working as active user's schedule
Preceding alerting pattern, and the reminded contents are pushed into corresponding user terminal according to the current alerting pattern.
It is further, described that the reminded contents are pushed into corresponding user terminal according to the current alerting pattern,
Further include later:
The corresponding user terminal is received to receive push content according to Yes/No and return to calendar prompting success/failure
Information.
Further, the corresponding user terminal receives push content according to Yes/No and returns to calendar prompting success/mistake
The information lost further includes later:
When the information that the corresponding user terminal returns is calendar prompting success, repeated according to prompting set by user
Type recalculates and updates the current alerting pattern corresponding reminder time, and the prompting is triggered active user in table
The corresponding triggered time replaces with the reminder time reached at first in updated user schedule.
Further, the method further includes:
When user update it is/newly-built/delete subscriber calendar when, when triggering that active user in promptings triggering table is corresponding
Between be updated to time point before a current time.
Wherein, described to be recalculated according to prompting repeat type set by user and update the current alerting pattern correspondence
Reminder time, specifically include:
If user reminds the prompting repeat type that the current alerting pattern is set as single, by the user day
Current alerting pattern corresponding reminder time is updated to the time point after a current time in journey table;
If user reminds the prompting repeat type that the current alerting pattern is set to repeat, according to the weight of setting
The multiple date calculates the next reminder time of the current alerting pattern, and by current alerting pattern described in the user schedule
Corresponding reminder time is updated to the next reminder time.
The present invention also provides a kind of calendar prompting systems, including:
Schedule scan module reminds triggering table for periodically scanning, and is triggered from the prompting and obtain triggering in table
The user account that time has arrived at;It is wherein, described that remind triggering table include needing the user account of calendar prompting and corresponding
Triggered time, the triggered time are the time that the calendar prompting function of user is triggered;
Calendar notification module, the calendar notification module include
Schedule Traversal Unit, for traversing the user schedule corresponding to the user account obtained, the user schedule
Reminded contents, alerting pattern including subscriber calendar and corresponding reminder time;
Schedule push unit is made for the alerting pattern that acquisition reminder time has arrived at from the user schedule
For the current alerting pattern of active user's schedule, and according to the current alerting pattern reminded contents are pushed to corresponding
User terminal.
Further, the calendar notification module further includes:
Calendar prompting feedback reception unit is received according to Yes/No in push for receiving the corresponding user terminal
Hold and return the information of calendar prompting success/failure.
Further, the calendar notification module further includes:
Reminder time updating unit, when the information for being returned when the corresponding user terminal is calendar prompting success,
It is recalculated according to prompting repeat type set by user and updates the current alerting pattern corresponding reminder time;
Triggered time updating unit, for replacing with more active user in the prompting triggering table the corresponding triggered time
The reminder time reached at first in user schedule after new.
Further, calendar prompting system further includes:
Schedule update module, for when user update it is/newly-built/delete subscriber calendar when, by promptings triggering table when
Preceding user is updated to the time point before a current time in the corresponding triggered time.
Further, the reminder time updating unit includes:
First update subelement, when the information for being returned when the corresponding user terminal is calendar prompting success, if
User reminds the prompting repeat type that the current alerting pattern is set as single, will work as premise in the user schedule
Awake mode corresponding reminder time is updated to the time point after a current time;
Second update subelement, when the information for being returned when the corresponding user terminal is calendar prompting success, if
User reminds the prompting repeat type that the current alerting pattern is set to repeat, then is calculated according to the repetition date of setting
The next reminder time of the current alerting pattern, and by the corresponding prompting of current alerting pattern described in the user schedule
Time is updated to the next reminder time.
In the present invention, a prompting triggering table is established, triggering table is reminded in scanning first, when discovery has user to need to carry
When waking up, the user schedule of ability traverse user, rather than the schedule of all users is directly traversed, therefore more economize on resources, more
Efficiently.User terminal can return to the information for reminding success or failure after receiving push content, make calendar notification module according to feelings
Condition handles trigger event, if not succeeding, in the scanning in lower period or can continue scanning arrives, therefore is reminding not
Prompting can be pushed again when success, prevent the calendar prompting caused by network condition is bad from unsuccessfully bringing damage to user
It loses, it is relatively reliable.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow diagram for calendar prompting method that the embodiment of the present invention 1 provides, as shown in Figure 1, including:
Triggering table is reminded in S101, periodically scanning.
Specifically, reminding triggering table with one minute for intermittent scanning.Wherein, the prompting triggering table includes that schedule is needed to carry
It the triggered time that the calendar prompting of awake user account and corresponding user is triggered, can be as shown in Figure 2.The triggered time is
Indicate that user has schedule to need to remind in current time.Triggered time is to constantly update, after current prompting is triggered, just
It can be updated to trigger the time of prompting next time.
S102, the user account that the acquisition triggered time has arrived at from the prompting triggering table.
Wherein, the triggered time has arrived at, including current time is that the triggered time is already expired in triggered time or current time, is led to
When crossing computer instruction progress triggered time judgement, triggered time and current time can be converted to numerical value, for example,
00 divides when triggered time is 2014 09 month 15 days 09, and numerical value 2014-09-15-09-00 can be converted by reminding in triggering table,
The user account that so triggered time has arrived at is the user account for being less than or equal to present system time in the triggered time.Therefore
This method only carries out calendar prompting to the user that arrived the triggered time, do not reach without processing, therefore can save
Resource, processing speed is also fast, more efficient.
The user schedule corresponding to user account that S103, traversal obtain, wherein the user schedule includes user
Reminded contents, alerting pattern and the corresponding reminder time of schedule.
Wherein, user schedule is established according to each reminded contents, alerting pattern and reminder time set by user.
Therefore, the specific format of user schedule can be with as shown in figure 3, include reminded contents, alerting pattern and the correspondence of subscriber calendar
Reminder time, the prompting repeat type of subscriber calendar can also be included, reminded contents include schedule description and schedule place etc.
Information.Wherein, reminder time can be that user directly sets, and can also be according to calendar events set by user and to shift to an earlier date more
The reminder time being calculated is reminded long.The alerting pattern of subscriber calendar is desktop pop-up, mail reminder, short message prompting, movement
One or more in client terminals, user can select one or more of which as the mode of calendar prompting.
S104, the alerting pattern that acquisition reminder time has arrived at from the user schedule, as active user day
The current alerting pattern of journey, and the reminded contents are pushed into corresponding user terminal according to the current alerting pattern.
For example, as shown in figure 3, there are many alerting pattern in user schedule, therefore it is corresponding, user terminal also has more
Kind.The reminder time of a variety of alerting patterns may be inconsistent, it is therefore desirable to is scanned to user schedule, and find out needs and carry
Awake alerting pattern, such as shown in figure 3, if present system time 00 divides when being 2014 09 month 15 days 09, reminder time
Alerting pattern less than or equal to present system time is lettergram mode, then using lettergram mode as current alerting pattern, and presses
Reminded contents are pushed into mail terminal according to lettergram mode.
In embodiments of the present invention, calendar prompting method includes:Periodically triggering table is reminded in scanning, wherein described to carry
Triggering table of waking up includes the triggered time for needing the user account of calendar prompting and the calendar prompting of corresponding user to be triggered;From described
Remind the user account that the acquisition triggered time has arrived in triggering table;Traverse the subscriber calendar corresponding to the user account obtained
Table, wherein the user schedule includes reminded contents, alerting pattern and the corresponding reminder time of subscriber calendar;From the use
The alerting pattern that acquisition reminder time has arrived in the schedule of family, as the current alerting pattern of active user's schedule, and is pressed
The reminded contents are pushed into corresponding user terminal according to the current alerting pattern.The embodiment of the present invention establishes one and carries
It wakes up and triggers table, triggering table is reminded in scanning first, when finding to there is user to need prompting, the user schedule of ability traverse user, and
It is not directly to traverse the schedule of all users, therefore more economize on resources, it is more efficient.
Fig. 4 is a kind of flow diagram for calendar prompting method that the embodiment of the present invention 2 provides, as shown in figure 4, including:
Triggering table is reminded in S201, periodically scanning.
Specifically, reminding triggering table with one minute for intermittent scanning.Wherein, the prompting triggering table includes that schedule is needed to carry
It the triggered time that the calendar prompting of awake user account and corresponding user is triggered, can be as shown in Figure 2.The triggered time is
Indicate that user has schedule to need to remind in current time.Triggered time is to constantly update, after current prompting is triggered, just
It can be updated to trigger the time of prompting next time.
S202, the user account that the acquisition triggered time has arrived at from the prompting triggering table.
Wherein, the triggered time has arrived at, and can be with mathematical notation:Triggered time is less than or equal to present system time,
I.e. current time is that the triggered time is already expired in triggered time or current time.Therefore this method is only to arrived the use in triggered time
Family carries out calendar prompting, do not reach without processing, therefore can economize on resources, processing speed is also fast, more efficient.
The user schedule corresponding to user account that S203, traversal obtain, wherein the user schedule includes user
Reminded contents, alerting pattern and the corresponding reminder time of schedule.
Wherein, user schedule is established according to each reminded contents, alerting pattern and reminder time set by user.
Therefore, the specific format of user schedule can be with as shown in figure 3, include reminded contents, alerting pattern and the correspondence of subscriber calendar
Reminder time, the prompting repeat type of subscriber calendar can also be included, reminded contents include schedule description and schedule place etc.
Information.Wherein, reminder time can be that user directly sets, and can also be according to calendar events set by user and to shift to an earlier date more
The reminder time being calculated is reminded long.The alerting pattern of subscriber calendar is desktop pop-up, mail reminder, short message prompting, movement
One or more in client terminals, user can select one or more of which as the mode of calendar prompting.
S204, the alerting pattern that acquisition reminder time has arrived at from the user schedule, as active user day
The current alerting pattern of journey, and the reminded contents are pushed into corresponding user terminal according to the current alerting pattern.
For example, as shown in figure 3, there are many alerting pattern in user schedule, therefore it is corresponding, user terminal also has more
Kind.The reminder time of a variety of alerting patterns may be inconsistent, it is therefore desirable to is scanned to user schedule, and find out needs and carry
Awake alerting pattern, such as shown in figure 3, if present system time 00 divides when being 2014 09 month 15 days 09, reminder time
Alerting pattern less than or equal to present system time is lettergram mode, then using lettergram mode as current alerting pattern, and presses
Reminded contents are pushed into mail terminal according to lettergram mode.
S205, receive the corresponding user terminal according to Yes/No receive push content and return calendar prompting success/
The information of failure.
For example, if reminded contents are pushed to mail terminal using lettergram mode, pushed away if mail terminal receives
It send content then to return to the successful information of calendar prompting, the letter of calendar prompting failure is returned if being not received by push content
Breath.
S206, when the information that the corresponding user terminal returns is calendar prompting success, carried according to set by user
Awake repeat type recalculates and updates the current alerting pattern corresponding reminder time, and by the prompting trigger in table when
Preceding user replaces with the reminder time reached at first in updated user schedule in the corresponding triggered time.
When the information that the corresponding user terminal returns is that calendar prompting fails, then sweeping for next period can be waited for
It retouches, pushes content again when scanning next time and realize calendar prompting.
Wherein, described to be recalculated according to prompting repeat type set by user and update the current alerting pattern correspondence
Reminder time, specifically include:
If user reminds the prompting repeat type that the current alerting pattern is set as single, by the user day
Current alerting pattern corresponding reminder time is updated to the time point after a current time in journey table;It (wherein, is set as most
Big time value is, because being single, later without executing again, to be set as maximum value table because current prompting has been performed
Show that the prompting will not be triggered again later;)
If user reminds the prompting repeat type that the current alerting pattern is set to repeat, according to the weight of setting
The multiple date calculates the next reminder time of the current alerting pattern, and by current alerting pattern described in the user schedule
Corresponding reminder time is updated to the next reminder time.
Wherein, time point after current time is optimal to be apart from current time far time, such as time format
Year-month-day-when-timesharing, it can be 9999-00-00-00-00, be set as apart from current time far time point to table
Show that current alerting pattern had been alerted, very long a very long time will not be performed later, or never execute.It can be with
Understand, the time point after current time can also be other numerical value, as long as ensureing to work as premise in very long a very long time
Awake mode will not be triggered.
S207, when/newly-built/deletion subscriber calendar, it is corresponding that the prompting is triggered into active user in table when user's update
Triggered time is updated to the time point before a current time.
Wherein, when user's update when/newly-built/deletion subscriber calendar, it is corresponding that the prompting is triggered into active user in table
Triggered time is updated to the time point before a current time, is for ensuring that/newly-built/the deletion subscriber calendar when user's update
The calendar prompting of each user can be triggered afterwards.Because it is to be less than or equal in the triggered time to be obtained to work as that triggering table is reminded in scanning
The user of preceding time, thus the time point before being set as a current time can ensure that active user is acquired.Tool
Body, for example, time format be year-month-day-when-timesharing, past time point can be 0001-00-00-00-00.When triggering
Between be to constantly update, after current prompting is triggered, will be updated to trigger the time of prompting next time.Therefore it is reminding
After being triggered, the triggered time be no longer a current time before time point, but trigger the time of prompting next time.
The embodiment of the present invention establishes a prompting triggering table, and triggering table is reminded in scanning first, when discovery has user's needs
When prompting, the user schedule of ability traverse user, rather than the schedule of all users is directly traversed, therefore more economize on resources,
It is more efficient.User terminal can return to the information for reminding success or failure after receiving push content, therefore next can be according to feelings
Condition handles trigger event, if not succeeding, in the scanning in lower period or can continue scanning arrives, therefore is reminding not
Prompting can be pushed again when success, prevent the calendar prompting caused by network condition is bad from unsuccessfully bringing damage to user
It loses, it is relatively reliable.
Fig. 5 is a kind of calendar prompting system that the embodiment of the present invention 3 provides, as shown in figure 5, including:
Schedule scan module 301 reminds triggering table for periodically scanning, and triggers to obtain in table from the prompting and touch
The user account that the hair time has arrived at;Wherein, the prompting triggering table includes the user account and correspondence for needing calendar prompting
Triggered time, the triggered time is time for being triggered of calendar prompting function of user;
Calendar notification module 302, the calendar notification module 302 include
Schedule Traversal Unit 3021, for traversing the user schedule corresponding to the user account obtained, the user day
Journey table includes reminded contents, alerting pattern and the corresponding reminder time of subscriber calendar;
Schedule push unit 3022, for the prompting side that acquisition reminder time has arrived at from the user schedule
Formula pushes to the reminded contents as the current alerting pattern of active user's schedule, and according to the current alerting pattern
Corresponding user terminal.
Wherein, the method for the module Yu embodiment 1 of the present embodiment corresponds, specifying information reference implementation example 1, herein not
It repeats again.The specific module sequence diagram of the present embodiment is with reference to Fig. 6.
The embodiment of the present invention establishes a prompting triggering table, and triggering table is reminded in scanning first, when discovery has user's needs
When prompting, the user schedule of ability traverse user, rather than the schedule of all users is directly traversed, therefore more economize on resources,
It is more efficient.
Fig. 7 is a kind of calendar prompting system that the embodiment of the present invention 4 provides, as shown in fig. 7, comprises:
Schedule scan module 401 reminds triggering table for periodically scanning, and triggers to obtain in table from the prompting and touch
The user account that the hair time has arrived at;Wherein, the prompting triggering table includes the user account and correspondence for needing calendar prompting
Triggered time, the triggered time is time for being triggered of calendar prompting function of user;
Calendar notification module 402;
Schedule update module 403, it is/newly-built/for when user's update that when deleting subscriber calendar, the prompting is triggered in table
Active user is updated to the time point before a current time the corresponding triggered time.
Specifically, as shown in figure 8, the calendar notification module 402 includes:
Schedule Traversal Unit 4021, for traversing the user schedule corresponding to the user account obtained, the user day
Journey table includes reminded contents, alerting pattern and the corresponding reminder time of subscriber calendar;
Schedule push unit 4022, for the prompting side that acquisition reminder time has arrived at from the user schedule
Formula pushes to the reminded contents as the current alerting pattern of active user's schedule, and according to the current alerting pattern
Corresponding user terminal;
Calendar prompting feedback reception unit 4023 is received for receiving the corresponding user terminal according to Yes/No and is pushed away
It send content and returns to the information that calendar prompting succeeds/fails;
Reminder time updating unit 4024, the information for being returned when the corresponding user terminal are calendar prompting success
When, it is recalculated according to prompting repeat type set by user and updates the current alerting pattern corresponding reminder time;
Triggered time updating unit 4025 is replaced in the corresponding triggered time for the prompting to be triggered active user in table
For the reminder time reached at first in updated user schedule.
Further, the reminder time updating unit 4024 includes:
First update subelement 40241, the information for being returned when the corresponding user terminal are calendar prompting success
When, it, will be in the user schedule if user reminds the prompting repeat type that the current alerting pattern is set as single
Current alerting pattern corresponding reminder time is updated to the time point after a current time;
Second update subelement 40242, the information for being returned when the corresponding user terminal are calendar prompting success
When, if user reminds the prompting repeat type that the current alerting pattern is set to repeat, according to the repetition day of setting
Phase calculates the next reminder time of the current alerting pattern, and current alerting pattern described in the user schedule is corresponded to
Reminder time be updated to the next reminder time.
Wherein, the method for the module Yu embodiment 2 of the present embodiment corresponds, specifying information reference implementation example 2, herein not
It repeats again.The specific module sequence diagram of the present embodiment is with reference to Fig. 9.
The embodiment of the present invention establishes a prompting triggering table, and triggering table is reminded in scanning first, when discovery has user's needs
When prompting, the user schedule of ability traverse user, rather than the schedule of all users is directly traversed, therefore more economize on resources,
It is more efficient.User terminal can return to the information for reminding success or failure after receiving push content, therefore next can be according to feelings
Condition handles trigger event, if not succeeding, in the scanning in lower period or can continue scanning arrives, therefore is reminding not
Prompting can be pushed again when success, prevent the calendar prompting caused by network condition is bad from unsuccessfully bringing damage to user
It loses, it is relatively reliable.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.