Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="client">A handle to the client</param>
        /// <param name="sources">The sources controller</param>
        /// <param name="path">The path to the source</param>
        public SourceController(Client client, SourcesController sources, string path)
            : base(client)
        {
            Sources = sources;

            //Remove the "/" if it starts with it
            Path = path.StartsWith("/") ? path.Substring(1) : path;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="client">A handle to the client</param>
        /// <param name="sources">The sources controller</param>
        /// <param name="path">The path to the source</param>
        public SourceController(Client client, SourcesController sources, string path)
            : base(client)
        {
            Sources = sources;

            //Remove the "/" if it starts with it
            Path = path.StartsWith("/") ? path.Substring(1) : path;
        }