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; }
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(); }
public EnterpriseConnection(string username, string password, string account, GnipSources dataSource) : base(username, password, account, dataSource) { Timeout = 60000; DataFormat = GnipDataFormat.XML; UseEncoding = false; }
public Twitter1PercentConnection(string username, string password, string account, GnipSources dataSource = GnipSources.Twitter) : base(username, password, account, dataSource) { }
public static Type GetObjectTypeByService(GnipSources service) { return(_types[service]); }
public SandBoxConnection(string username, string password, string account, GnipSources dataSource) : base(username, password, account, dataSource) { IsLive = true; }