using System; using System.Collections.Generic; using System.Text; namespace P4API { /// /// P4Integration objects hold details about the integrations that have /// been performed on a particular revision. Used primarily with the /// P4Revision class /// public class P4Integration { internal P4Integration(string how, string file, int srev, int erev) { _how = how; _file = file; _srev = srev; _erev = erev; } private string _how; /// /// Returns the type of the integration record - how that record was created. /// public string How { get { return _how; } } private string _file; /// /// Returns the path to the file being integrated to/from. /// public string File { get { return _file; } } private int _srev; /// /// Returns the start revision number used for this integration. /// public int StartRev { get { return _srev; } } private int _erev; /// /// Returns the end revision number used for this integration. /// public int EndRev { get { return _erev; } } /// /// Representation of the integration record. /// /// String representing the integration record. public override string ToString() { return String.Format("Integration (how = {0} file = {1} srev = {2} erev = {3})", _how, _file, _srev, _erev); } } }