Click here to Skip to main content
15,892,809 members
Articles / Programming Languages / XML

Silverlight 1.1 Fun and Games

Rate me:
Please Sign up or sign in to vote.
4.91/5 (126 votes)
1 Nov 200727 min read 385K   818   238  
Silverlight 1.1 Fun and Games
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1378
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.1378.
// 
#pragma warning disable 1591

namespace SilverlightProject1.FlickrService {
    using System;
    
    
    /// <remarks/>
    public partial class WebService : System.Windows.Browser.Net.SoapHttpClientProtocol {
        
        /// <remarks/>
        public WebService() {
            this.Url = "http://localhost:49505/WebSite1/WebService.asmx";
        }
        
        /// <remarks/>
        public PhotoInfo[] GetFlickr(int pageIndex, int numOfImageToFetch) {
            object[] results = this.Invoke("GetFlickr", new System.Windows.Browser.Net.SoapHttpClientProtocol.ServiceParameter[] {
                        new System.Windows.Browser.Net.SoapHttpClientProtocol.ServiceParameter("pageIndex", pageIndex),
                        new System.Windows.Browser.Net.SoapHttpClientProtocol.ServiceParameter("numOfImageToFetch", numOfImageToFetch)}, typeof(PhotoInfo[]));
            return ((PhotoInfo[])(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetFlickr(int pageIndex, int numOfImageToFetch, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetFlickr", new System.Windows.Browser.Net.SoapHttpClientProtocol.ServiceParameter[] {
                        new System.Windows.Browser.Net.SoapHttpClientProtocol.ServiceParameter("pageIndex", pageIndex),
                        new System.Windows.Browser.Net.SoapHttpClientProtocol.ServiceParameter("numOfImageToFetch", numOfImageToFetch)}, typeof(PhotoInfo[]), callback, asyncState);
        }
        
        /// <remarks/>
        public PhotoInfo[] EndGetFlickr(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((PhotoInfo[])(results[0]));
        }
    }
    
    /// <remarks/>
    public partial class PhotoInfo {
        
        private string idField;
        
        private string ownerField;
        
        private string titleField;
        
        private string secretField;
        
        private string serverField;
        
        private string farmField;
        
        private bool isPublicField;
        
        private bool isFriendField;
        
        private bool isFamilyField;
        
        /// <remarks/>
        public string Id {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        public string Owner {
            get {
                return this.ownerField;
            }
            set {
                this.ownerField = value;
            }
        }
        
        /// <remarks/>
        public string Title {
            get {
                return this.titleField;
            }
            set {
                this.titleField = value;
            }
        }
        
        /// <remarks/>
        public string Secret {
            get {
                return this.secretField;
            }
            set {
                this.secretField = value;
            }
        }
        
        /// <remarks/>
        public string Server {
            get {
                return this.serverField;
            }
            set {
                this.serverField = value;
            }
        }
        
        /// <remarks/>
        public string Farm {
            get {
                return this.farmField;
            }
            set {
                this.farmField = value;
            }
        }
        
        /// <remarks/>
        public bool IsPublic {
            get {
                return this.isPublicField;
            }
            set {
                this.isPublicField = value;
            }
        }
        
        /// <remarks/>
        public bool IsFriend {
            get {
                return this.isFriendField;
            }
            set {
                this.isFriendField = value;
            }
        }
        
        /// <remarks/>
        public bool IsFamily {
            get {
                return this.isFamilyField;
            }
            set {
                this.isFamilyField = value;
            }
        }
    }
}

#pragma warning restore 1591

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)

- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence

Both of these at Sussex University UK.

Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2016
  • Codeproject MVP 2016
  • Microsoft C# MVP 2015
  • Codeproject MVP 2015
  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog

Comments and Discussions