Пример #1
0
        public ConnectionBase(string username, string password, string account, GnipSources dataSource)
        {
            Username   = username;
            Password   = password;
            Account    = account;
            DataSource = dataSource;
            DataFormat = GnipDataFormat.Json;

            Timeout     = 30000;
            UseEncoding = true;
        }
Пример #2
0
        private void cbService_SelectedIndexChanged(object sender, EventArgs ea)
        {
            _headers.Clear();
            tvSelector.Nodes.Clear();
            TreeNode root = new TreeNode();

            GnipSources source = (GnipSources)Enum.Parse(typeof(GnipSources), cbSource.Text);

            _settings.source = source;
            Type outputType = GnipStreamProcessor.GetObjectTypeByService(source);

            PopulateTreeWithTheFields(outputType, root);
            TraceHeaders();
            tvSelector.Nodes.Add(root);
            tvSelector.ExpandAll();
        }
Пример #3
0
 public EnterpriseConnection(string username, string password, string account, GnipSources dataSource)
     : base(username, password, account, dataSource)
 {
     Timeout     = 60000;
     DataFormat  = GnipDataFormat.XML;
     UseEncoding = false;
 }
Пример #4
0
 public Twitter1PercentConnection(string username, string password, string account, GnipSources dataSource = GnipSources.Twitter)
     : base(username, password, account, dataSource)
 {
 }
Пример #5
0
 public static Type GetObjectTypeByService(GnipSources service)
 {
     return(_types[service]);
 }
Пример #6
0
 public SandBoxConnection(string username, string password, string account, GnipSources dataSource)
     : base(username, password, account, dataSource)
 {
     IsLive = true;
 }