Example #1
0
        public static bool GetBuddyIsOnlineAndAccount(string contactName, out Account account_out)
        {
            account_out = null;

            try {
                foreach (Account account in GetConnectedAccounts ()) {
                    if (account.HasContact(contactName) )
                    {
                        account_out = account;
                        return true;
                    }
                }
            } catch (Exception e) {
                    Console.WriteLine ("Could not get Empathy contacts: {0}", e.Message);
                    Console.WriteLine (e.StackTrace);
            }
            return false;
        }
 public EmpathyAccountItem(Account account)
 {
     Account = account;
     Proto = Account.proto.ToLower();
 }