Beispiel #1
0
        public blogger.BlogPhoto[] GetPhotos(String nickname, String password)
        {
            if (String.IsNullOrEmpty(nickname))
            {
                throw new ArgumentNullException("nickname");
            }
            if (String.IsNullOrEmpty(password))
            {
                throw new ArgumentNullException("password");
            }

            var member    = Member.GetMemberViaNicknamePassword(nickname, password);
            var ids       = GetPhotoIDs(member.MemberID);
            var idsLength = ids.Length;
            var result    = new blogger.BlogPhoto[idsLength];

            for (var i = 0; i < idsLength; i++)
            {
                result[i] = GetPhoto(member.MemberID, ids[i]);
            }

            return(result);
        }
        public blogger.BlogPhoto[] GetPhotos(String nickname, String password)
        {
            if (String.IsNullOrEmpty(nickname))
                throw new ArgumentNullException("nickname");
            if (String.IsNullOrEmpty(password))
                throw new ArgumentNullException("password");

            var member = Member.GetMemberViaNicknamePassword(nickname, password);
            var ids = GetPhotoIDs(member.MemberID);
            var idsLength = ids.Length;
            var result = new blogger.BlogPhoto[idsLength];

            for (var i = 0; i < idsLength; i++)
                result[i] = GetPhoto(member.MemberID, ids[i]);

            return result;
        }