public void Init()
        {
            //the first line of config file is the login,
                        //and the second one is the password
                        using (StreamReader sr = new StreamReader ("config")) {
                                login_config [0] = sr.ReadLine ();
                                login_config [1] = sr.ReadLine ();
                        }

                        fotki = new FotkiService (login_config [0], login_config [1]);
                        albums = fotki.GetAlbums ();
        }
 internal static UploadQueue Instance(FotkiService fotki)
 {
     if (instance == null)
                         instance = new UploadQueue (fotki);
                 return instance;
 }
 private UploadQueue(FotkiService fotki)
 {
     this.fotki = fotki;
                 photos_to_upload = new Queue<Photo> ();
 }
 public void GetPhotos()
 {
     fotki = new FotkiService (config [0]);
                 PhotoCollection photos;
                 photos = fotki.GetPhotos ();
 }
 public void CreateFotkiServiceWithWrongPassword()
 {
     fotki = new FotkiService (config [0], wrong_config [1]);
 }
 public void CreateFotkiServiceWithWrongLogin()
 {
     fotki = new FotkiService (wrong_config [0]);
 }
 public void CreateFotkiServiceWithPassword()
 {
     fotki = new FotkiService (config [0], config [1]);
 }
 public void CreateFotkiServiceWithLoginOnly()
 {
     fotki = new FotkiService (config [0]);
 }
예제 #9
0
 internal Photo(FotkiService fotki, string xml)
 {
     this.fotki = fotki;
     InitPhoto (xml);
 }