Moyosoft Products | Services | Download | Contact us    
Java Outlook Connector
Products  >  Java Outlook Connector  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

AddressEntry.getFreeBusy

public java.lang.String getFreeBusy(java.util.Date start, int minPerChar)

Community comments


Free/busy string format
Vote up  |  Vote down
AddressEntry user = ...;

String freeBusyInfo = user.getFreeBusy(new Date(), 30);

for(int i=0; i<freeBusyInfo.length(); i++)
{
  switch(freeBusyInfo.charAt(i))
  {
  case '0' : System.out.println("Free"); break;
  case '1' : System.out.println("Tentative"); break;
  case '2' : System.out.println("Busy"); break;
  case '3' : System.out.println("OutOfOffice"); break;
  }
}


Powered by JavaDocPlus