コード例 #1
0
        public override IEnumerable <Item> Perform(IEnumerable <Item> items, IEnumerable <Item> modItems)
        {
            EmpathyAccountItem account = items.First() as EmpathyAccountItem;

            account.Account.EnableAccount();

            yield break;
        }
コード例 #2
0
        public override bool SupportsItem(Item item)
        {
            if (!(item is EmpathyAccountItem))
            {
                return(false);
            }
            EmpathyAccountItem accountItem = (item as EmpathyAccountItem);

            return(accountItem.Account.IsConnected());
        }