示例#1
0
        private void NotifyPhotoUploaded(Member member, PhotoCollection photoCollection)
        {
            System.Diagnostics.Debug.Assert(member != null, "member != null");
            var memberAccount = MemberAccount.GetMemberAccountByMemberID(member.MemberID);

            if (MemberAccount.IsTwitterReady(memberAccount))
            {
                if (TwitterService.CanPost(MemberAccountActivity.GetLastActivity(member.MemberID, 1 /* Twitter */, 2 /* PhotoGallery */)))
                {
                    TwitterService.NotifyPhotoUploaded(memberAccount.Username, memberAccount.Password, member.WebMemberID, photoCollection.WebPhotoCollectionID);
                    MemberAccountActivity.SetLastActivity(member.MemberID, 1 /* Twitter */, 2 /* PhotoGallery */);
                }
            }
        }