Package com.google.gdata.data.extensions

Examples of com.google.gdata.data.extensions.Reminder


   * @param myEntry         add Reminder to this Entry
   * @param reminderMinutes Remind x Minutes before event
   * @param method          what method to use
   */
  private void addReminder(EventEntry myEntry, int reminderMinutes, Reminder.Method method) {
    Reminder reminder = new Reminder();
    reminder.setMinutes(reminderMinutes);
    reminder.setMethod(method);
    myEntry.getReminder().add(reminder);
  }
View Full Code Here


            throw new SmsSendException("Can't add calendar event.", e);
        }
    }

    private static void setupReminder(CalendarEventEntry entry) {
        Reminder reminder = new Reminder();
        reminder.setMinutes(1);
        reminder.setMethod(Reminder.Method.SMS);
        entry.getReminder().add(reminder);
    }
View Full Code Here

      Boolean exists = false;
      Boolean update = false;
      Integer batchid = 0;

        Method methodType = Method.ALERT; //Method.EMAIL;
        Reminder reminder = new Reminder();
        reminder.setDays( REMINDER_DAYS );
        reminder.setMethod(methodType);
      CalendarEventFeed batchRequest = new CalendarEventFeed();

      // Copy contacts with title and birthday and check if event exists
      for (ContactEntry contact : conFeed.getEntries()) {
View Full Code Here

   * @throws ServiceException If the service is unable to handle the request.
   * @throws IOException Error communicating with the server.
   */
  private static CalendarEventEntry addReminder(CalendarEventEntry entry,
      int numMinutes, Method methodType) throws ServiceException, IOException {
    Reminder reminder = new Reminder();
    reminder.setMinutes(numMinutes);
    reminder.setMethod(methodType);
    entry.getReminder().add(reminder);
  
    return entry.update();
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.extensions.Reminder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.