Exemplo n.º 1
0
        public string writeSettings(InstagramSettings settings)
        {
            XmlSerializer     xmlSerializer     = new XmlSerializer(typeof(InstagramSettings));
            StringWriter      stringWriter1     = new StringWriter();
            StringWriter      stringWriter2     = stringWriter1;
            InstagramSettings instagramSettings = settings;

            xmlSerializer.Serialize((TextWriter)stringWriter2, (object)instagramSettings);
            stringWriter1.Close();
            return(stringWriter1.ToString());
        }
Exemplo n.º 2
0
        public ITrPlugin NewInstance(IRipper w, string config)
        {
            InstagramBlog instagramBlog = new InstagramBlog();

            this.TumblrSettings = this.readSettings(config);
            InstagramRipper instagramRipper = new InstagramRipper(this);

            instagramRipper.MyRipper = w;
            InstagramSettings tumblrSettings = this.TumblrSettings;

            instagramRipper.Settings = tumblrSettings;
            this.BlogRipper          = instagramRipper;
            return((ITrPlugin)instagramBlog);
        }
Exemplo n.º 3
0
        public Dictionary <string, PluginOption> GetControlPanel(string s)
        {
            InstagramSettings instagramSettings = this.readSettings(s);

            return(new Dictionary <string, PluginOption>()
            {
                {
                    "Photos",
                    (PluginOption) new PluginOptionBoolean("Get Photos", instagramSettings.doPhotos)
                },
                {
                    "Videos",
                    (PluginOption) new PluginOptionBoolean("Get Videos", instagramSettings.doVideos)
                }
            });
        }