using System; using System.Collections; using System.Collections.Specialized; using System.Text; namespace P4API { public class P4BaseRecordSet { internal P4ResultClientUser ResultClientUser; protected ArrayList StringOutputs; protected ArrayList InfoOutputs; protected ArrayList ErrorOutputs; protected ArrayList TaggedOutputs; protected string _InputText; private Hashtable FormInputDictionary; internal string TextOutput; internal string SpecDef; internal byte[] BinaryOutput; internal P4BaseRecordSet() { StringOutputs = new ArrayList(); InfoOutputs = new ArrayList(); ErrorOutputs = new ArrayList(); TaggedOutputs = new ArrayList(); this.ResultClientUser = new P4ResultClientUser(this); } internal void AddInfo(string S) { StringOutputs.Add(S); } internal void AddString(string S) { InfoOutputs.Add(S); } internal void AddError(string S) { ErrorOutputs.Add(S); } internal void AddTag(Hashtable S) { P4Record r = new P4Record(S); TaggedOutputs.Add(r); } public bool HasErrors() { return (!(ErrorOutputs.Count == 0)); } public string[] Errors { get { return (string[])ErrorOutputs.ToArray(typeof(string)); } } public string ErrorMessage { get { string ret = ""; foreach (string s in Errors) { ret += s + "\n"; } return ret; } } public string[] Warnings { get { throw new System.NotImplementedException(); } } public string InputText { get { return _InputText; } set { _InputText = value; } } internal Hashtable FormInput { get { return FormInputDictionary; } set { FormInputDictionary = value; } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 5432 | Shawn Hladky | Refactoring step 2 -- rename source files | ||
#5 | 5431 | Shawn Hladky |
Refactoring... step 1. |
||
#4 | 5427 | Shawn Hladky | P4.Net -- several fixes and added sample application | ||
#3 | 5411 | Shawn Hladky | WIP -- forms are working now. | ||
#2 | 5373 | Shawn Hladky | P4.Net: Still WIP, but some things starting to work | ||
#1 | 5349 | Shawn Hladky |
Initial check-in for the new API interface. Nothing works yet, but it should compile at least. |